Sharing variables between 2 custom components. Please help.
Hi,
I'm a beginner in java and I have a problem. I'm using Netbeans 5.5.1
I need to use 2 classes, defined in 2 separate files, in a third, 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.
what I need is to read a combo box from first component every time when it is updated and use it in second component , when a buton from second component is pushed.
I don't know haw could this be done.
Thanks,
Dan

