Hi all, I have a JPanel with a BoxLayout. I have a lable and then a JTextField. When the panel is created the layout looks good, but when I maximize the JFrame the JTextField becomes HUGE. How can I get the JTextField to stay one size? Any help would be appreciated. Thanks, Rob
posted 14 years ago
hi rod, Have you tried using the setPreferredSize() method.the BoxLayout gives preference to the size you set.and try using the setMinimumSize() also. I hope this helps.