Object orientated problem
Hi i have two classes.
The first class extends a JFrame and implements various Listeners, i used it has my Gui.
The second class wants to be able to get the first classes x and y coords and height and width.
However when i try to create an object of the Gui class insided of my second class. Its creates another Gui.
How can i go about getting the Gui.getX() Gui.getY() etc without making another Gui appearing?
Is there a way inwhich i can just refence an exisiting objects attributes?
(its important i refence the original Gui object because its location may change, and creating a new Gui object would give me the defualt Gui startup location)