This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt 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 Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "split component and communication" Watch "split component and communication" New topic

split component and communication

mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 251

i tried to split every area of a program.

I have a main class ( 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?

Kemal Sokolovic

Joined: Jun 19, 2010
Posts: 825

Please BeForthrightWhenCrossPostingToOtherSites (link).

The quieter you are, the more you are able to hear.
I agree. Here's the link:
subject: split component and communication
It's not a secret anymore!