Placing 2 GUIs side-by-side

Hi, very new to java and GUIs in general. I have a gui and I want to create a new gui which appears to the side of that gui. I want it to be locked onto the 1st gui and basically be an extension to it so that when 1 moves so does the other. they are 2 seperate classes and i do not have access to the 1st gui's code but i can extend its classes. am i speaking any sense?! is this possible?

any help appreciated.

cheers, paul

[444 byte] By [kilgoura] at [2007-11-26 17:29:40]
# 1

> i do not have access to the 1st gui's

> code but i can extend its classes.

How can you extend something that you don't have the code for? You must have something, maybe a Jar?

Anyway, when you say GUI do you mean JFrame, please be more specific. What do you want to happen if the "1st gui" is maximized?

zadoka at 2007-7-8 23:57:37 > top of Java-index,Java Essentials,New To Java...
# 2

sorry, i am able to use the code, i was merely meaning i can't actually edit it to add another jframe for example i.e. the classes for that gui have been given to me.

they will be 2 seperate gui classes each being a jframe, i simple want the 2 to be aligned at the start (expanding doesn't matter) i could do this through trial and error so that they matched up when the program first ran by putting in different values for its .setBound() but I was wanting an automatic way of doing this. was also wondering whether it would be possible so that when you moved the 1st gui the 2nd would move along side it i.e they were locked?

paul

kilgoura at 2007-7-8 23:57:37 > top of Java-index,Java Essentials,New To Java...
# 3
with any luck, those 2 JFrames were written by somebody half-competent, and the actual components will be JPanels or something. you can then stick them side-by-side inside a single JFrame as you see fit. got any documentation for this code?
georgemca at 2007-7-8 23:57:37 > top of Java-index,Java Essentials,New To Java...
# 4
Well, when you create an instance of the 1st frame and set it to visible. Then you can grab the size and set it on your 2nd frame. Right?
zadoka at 2007-7-8 23:57:37 > top of Java-index,Java Essentials,New To Java...