Im pretty sure this it is possible but im trying to declare multiple instances of the JTextField class on one line, rather than declaring them all on a separate lines for example.
JTextField field1 = new JTextField();
JTextField field2 = new JTextField();
JTextField field3 = new JTextField();
JTextField field4 = new JTextField();
JTextField field5 = new JTextField();
Im positive i have done this before but it has escaped me. I would like if possible to have something like f1, f2, f3, f4 = new JTextField();
Is it possible to declare them on a single line or am i imagining things
The suggested answer saying its repeated isnt correct, what the suggest answer is saying is not what im looking for. The suggested answers dont work with JTextField on a single line only. The ones suggest do state the same type of same value, i want same type with differing values.