JTextField changes size when text value is changed
843805Sep 28 2005 — edited Sep 29 2005I 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?