sujitopics
Programmer
Dear friends,
please help me.
I have to close B_Frame (Child frame) from A_Frame (Parent) with a button click.
In A_Frame.java (Parent Frame) I used like this :
public void closeChildFrame()
{
System.out.println("close()"
B_Frame.hide();
B_Frame.dispose();
}
Compilation error :
non-static method hide() cannot be referenced from a static context B_Frame.hide();
^
non-static method dispose() cannot be referenced from a static context
B_Frame.dispose();
please help me.
your kind cooperation would be greatly appreciated.
Thanks in advance.
please help me.
I have to close B_Frame (Child frame) from A_Frame (Parent) with a button click.
In A_Frame.java (Parent Frame) I used like this :
public void closeChildFrame()
{
System.out.println("close()"
B_Frame.hide();
B_Frame.dispose();
}
Compilation error :
non-static method hide() cannot be referenced from a static context B_Frame.hide();
^
non-static method dispose() cannot be referenced from a static context
B_Frame.dispose();
please help me.
your kind cooperation would be greatly appreciated.
Thanks in advance.