problem accessing the parent class
Hei, I have the following problem within my java application:
I have a Main class that executes when I open the containing .jar file.
In Main I create a new JFrame, then I show it, in the following way: I have a class that extends JFrame, named "Interfata".
Then, in Main class I wrote this function
Interfata f = new Interfata();
to change the appearance of the application, but I don't know how to access it from f (Interfata object).
public static void setLook(int tip)
Practically, I need to access from a class, one function that resides in the class that instanciated that class.
If anyone has a modality to solve this, I would apreciate it very much.