+ 2
How to make textbox in swing in java?
4 odpowiedzi
+ 8
JTextField m=new JTextField("Initial text");
Then add to panel,
x.add(m);
x is panel name.Also if you want to resize these things you gotta use gridBagConstraint and gridBagLayout, google those.
To set width of textbox:-
m.setColoumns(10);
+ 6
There are A LOT more things, difficult to write,I recommend google those.
+ 5
Or JTextArea the easiest textbox
+ 3
GZB.....Bhai