Please post all code that is part of the problem on the forum. No links.
Create an instance of the frame and use the reference to that instance to call its methods.
Type: Posts; User: Norm
Please post all code that is part of the problem on the forum. No links.
Create an instance of the frame and use the reference to that instance to call its methods.
Are you asking how to use the new statement to create an instance of a class?
The posted code is full of usages of the new statement. For example:
lblName = new JLabel ("Name: "); // create...
Do you want to create an instance of a new class in the button's listener method? Use the new statement with a constructor for the class to be created.