View Single Post
  #1 (permalink)  
Old 04-21-2008, 05:54 PM
Renegade85 Renegade85 is offline
Member
 
Join Date: Dec 2007
Posts: 25
Renegade85 is on a distinguished road
[SOLVED] Need help using variables between classes
Ok, so i'm doing a GUI for a program i'm making. It has 4 classes (MainPanel, Panel1, panel2, Panel3) and i have referenced panel2 in panel 3 in it's constructor i.e.

Code:
public Panel3(Panel2 panel2)
The objects are all created in the main class of the program i.e. MainPanel
I want to get the information put into Panel2 and use it in a method of Panel3. I can't seem to figure it out though

The info i want to take is from JLabels

Any help appreciated, thanks

Last edited by Renegade85 : 04-21-2008 at 06:10 PM.
Reply With Quote
Sponsored Links