posted 11 years ago
hi
i tried to split every area of a program.
I have a main class (Main.java) who extends JFrame.
Main class containt a left panel who contain two panels. The first one (Component) contain many TabelPanel and the second is named Property.
I have a center panel (design) and a bottom panel who contain a button. The design panel contain a jtree.
I take element from component panel and a do drag and drop to jtree. When i select a element in the jtree, i need to display information to the property panel.
When i click in the bottom (bottom panel), i need to iterate to jtree panel.
Instead to have reference everywhere, what is the best way to avoid that?
thanks