If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Threaded View

problem accessing the parent class

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".

Code:

Interfata f = new Interfata();
f.setVisible(true);

Then, in Main class I wrote this function

Code:

public static void setLook(int tip)

to change the appearance of the application, but I don't know how to access it from f (Interfata object).
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.
Thanks!