I have a JTextField
and I want to add a label next to it, so that it looks like this...
+---------------+
TEAM 1: |Text field here|
+---------------+
This is the code where I am constructing the JTextField
s...
jb = new JButton(">> FIGHT <<");
jt0 = new JTextField("", 25);
jt1 = new JTextField("", 25);
jt2 = new JTextField("<< BATTLE VICTOR >>", 35);
Could someone please tell me how to add the label.
Just put a JLabel next to your JTextField.