I've searched for this question but didn't really find a clear, helpful answer. I'm building my first Java UI apps1 (using Swing) and I was wondering one thing: how can I force the resizing of windows to happen scaled? It's something aesthetically important for my upcoming program. Could anyone help me with this? Thanks! And guys, I'm not asking for 'just give me a solution', I KNOW you guys hate that, I just need someone helping me reach it!
- It's a little Boggle game. I have a grid with
JButton
instances to simulate the dices of Boggle (these need to be clicked to form words), and when I resize the window I want the dices to keep being square, they get rectangular and that's not really how it should be.