This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes split component and communication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "split component and communication" Watch "split component and communication" New topic
Author

split component and communication

mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 246
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
Kemal Sokolovic
Bartender

Joined: Jun 19, 2010
Posts: 825
    
    5

Please BeForthrightWhenCrossPostingToOtherSites (link).


The quieter you are, the more you are able to hear.
 
jQuery in Action, 2nd edition
 
subject: split component and communication
 
Similar Threads
JTree ------odd thing
JTree
jTree with the TreeModel
JTree
Updating a JTree