Post the code where you create an instance of the Tuna class using the new operator.
Compare that statement with the code that creates a new instance of the JLabel class in post#5
See how to...
Type: Posts; User: Norm
Post the code where you create an instance of the Tuna class using the new operator.
Compare that statement with the code that creates a new instance of the JLabel class in post#5
See how to...
When you create an instance of the Tuna class you would pass the String in its constructor the same way the String is passed to the JLabel class's constructor:
q1 = new JLabel(user1); // pass...
You could pass the String: user1 in the Tuna class's constructor.