JButton Positioning Issues
问题 Okay, I have a Jpanel which is shown as white in the below image using an overlay layout. It holds a ScrollPane holding an image ("No Image Available") and a JButton ("Comment"). I want to position this button in the bottom right hand corner of the JPanel. I have tried multiple layout approaches and I cant seem to get it to work. At most the button moves about 3/4 of the way South-East and I have no idea why. Any help is greatly appreciated.. 回答1: There are a lot of possible solutions using