• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

split component and communication

 
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 825
5
Python Ruby Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please BeForthrightWhenCrossPostingToOtherSites (link).
 
reply
    Bookmark Topic Watch Topic
  • New Topic