Changing JButton positions relative to screen size
Joined: Apr 18, 2010
I'm fairly new to the GUI stuff in java but I'm wondering how I can get positions of JButtons within a frame to change with the screen size so that
they are always in the same place relative to the sizes. If you get what I mean, I'm finding it hard to explain.
At the moment i've just got 2 buttons on a frame next to each other. When I make it fullscreen the buttons are way over to the left.
Thanks in advance
Joined: Jun 09, 2003
sounds like you are using absolute postioning, or null layout, or perhaps an IDE generated layoutManager
study the various layoutMangers, and use the one best suited to your requirements