Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JTextField changes size when text value is changed

843805Sep 28 2005 — edited Sep 29 2005
I have a main panel with two sub panels. The sub panels are horizontally next to each other. Each sub panel has rows of JLabel/JTextField pairs.

The layout of the components is fine. The main panel uses GridBagLayout. The sub panels fill the contents of the main panel. The JTextFields fill the sub panels horizontally.

However, when the text is changed in the JTextFields they shift in size. This causes the panels to shift in size. What is causing the JTextFields to change in size?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 27 2005
Added on Sep 28 2005
7 comments
289 views