File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
split component and communication
Joined: Apr 05, 2005
Nov 25, 2012 07:32:53
i tried to split every area of a program.
I have a main class (Main.java) who extends
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?
Joined: Jun 19, 2010
Nov 25, 2012 09:19:47
The quieter you are, the more you are able to hear.
I agree. Here's the link:
subject: split component and communication
Updating a JTree
JTree ------odd thing
jTree with the TreeModel
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015