This week's book giveaway is in the Programmer Certification forum. We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
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
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.