View Single Post
  #1 (permalink)  
Old 07-20-2007, 11:14 PM
dcojocaru dcojocaru is offline
Member
 
Join Date: Jul 2007
Posts: 2
dcojocaru is on a distinguished road
Sharing variables between 2 custom components. Please help.
Hi,

I'm a beginner in java and I have a problem.
I need to use 2 classes, defined in 2 separate files, in a thisrd, main class.
Actually I copy/paste the 2 classes (are made as swing jpanels with controls, textboxes, combos, etc) in the main class, so in the main class they appear as components.
I need to read a value from one ( a combobox selected item), and use it in the second one.

how could this be done ?
Reply With Quote
Sponsored Links