Hi,
I am building a game in which I have a few buttons set in a JPanel with a GridLayout. This panel is put on the East side of another JPanel which has a BorderLayout. When done this way, the buttons stretch themselves to take up all the vertical space in the JPanel. Here is a screenshot:
link
I wanted to fix these buttons so they would be a fixed height and not stretch like this, so at first I looked into using SWT and GridData objects to configure them. I know how to code it that way, but unfortunately I had some problems getting the SWT libraries to work right.
Is there a simpler way to tell these buttons not to stretch this way? Any help appreciated.