Hi,
I'm having a small doubt in swings.pl consider two java classes.
First java class:
JFrame -> frame1 and when some action is performed it calls the method in 2nd java function with "frame1" as input parameter.
Second java class:
In Second java class i need to get the components that are used in frame1.
I did the following but i dont know how to proceed further
Container content1= frame1.getConte ntPane();
Component[] comp = content1.getCom ponents();
JPanel f1Panel = (JPanel)comp[0];
How to retreive the components from the panel "f1Panel"?
-Thanks & Regards,
Hamsa
I'm having a small doubt in swings.pl consider two java classes.
First java class:
JFrame -> frame1 and when some action is performed it calls the method in 2nd java function with "frame1" as input parameter.
Second java class:
In Second java class i need to get the components that are used in frame1.
I did the following but i dont know how to proceed further
Container content1= frame1.getConte ntPane();
Component[] comp = content1.getCom ponents();
JPanel f1Panel = (JPanel)comp[0];
How to retreive the components from the panel "f1Panel"?
-Thanks & Regards,
Hamsa
Comment