posted 22 years ago
What I am going to do is have a main Panel which is a sperate class
MainPanel.class
The MainPanel creates a TabbedPane with each Panel being a seperate class. I want to create an object in the MainPanel.class(data object) and be able to reference that same instance of the object in all of the panel classes.
Such as
Main.java - creates an object, loades it's data.
Now in the:
APanel, BPanel, CPanel, DPanel classes I want to reference the same instances of the object and any changes updates to the object are reflected in no matter which panel you are, thus if APAnel sets for example the color property to yellow than the CPanel sees that the color is yelllow. All classes referencing the same object.
I hope I explained it better. Basicly I am setting up a configuration file and want all java classes in a package to reference the same object and see the same information.
thanks,
Dean