That will set the column width of the JTextField to 15. If you wanted to put the number 15 in the text field, you have to do it as a String:
JTextField Text = new JTextField("15");
Type: Posts; User: aussiemcgr
That will set the column width of the JTextField to 15. If you wanted to put the number 15 in the text field, you have to do it as a String:
JTextField Text = new JTextField("15");
True. But have you considered the question: why do all the components need to be on the same panel with the same layout?
For example, you have a grid of number keys. Ideally, you would use something...