This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have created a panel with two components, one a JTextField, the second a JButton. I have set the size of the panel to be the same height as the JTextField, but when I display the panel, it resizes the Panel to be the height of the JButton. I use GridBag layout. How do I resize the button so that it has the height and width I want, while keeping the JTextField the same size? Thanks, Matt