Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows in Windows GUI building

Status
Not open for further replies.

Chrissirhc

Programmer
May 20, 2000
926
GB
I just want to create frame with windows that stay in the frame and cannot come outside. Is it best with JFrame parent of JDialog. Then set the bounds some way. Is there an easy way to do this so that the Window inside appears inside and cannot come out. Is JDialog the only way I can get a window in a window?.

Chris

PS reposted this as the other one had a bad subject name
 
In the directory c:\jdk1.3\demo\jfc\SwingSet2 there is an example of the internal frames you are talking about with source code. It is very nice! As far as working with internal frames I have no experience with them.
 
Okay thanks. I am not using 1.3 at the momment but I will get it soon. I am using 1.2.2 does it work with this as well? I checked there is not a swing set2 but there is a swingset also found something called JinternalframeUI, but have a feeling its not what I am looking for. I can get another window on the screen using JDialog but it keeps on appearing out of the main window(JFrame) and I guess I could change the coordinates of where it is placed. As for keeping it in the window when I move the other window I do not have a clue. Except for updating it everytime I update the other main window which sounds difficult off hand. Need advice.

Chris
 
JDialog is a popup type window and is meant to look like that. If you search the java.sun.com website you will wind the jdk1.3 demos and there will be a most excellant demonstration of swings capabilities. If you want email me and I will send you the source along with the compiled binaries. BTW, most of the stuff from the jdk1.3 should work with 1.2.


[sig]<p>Troy Williams B.Eng.<br><a href=mailto:fenris@hotmail.com>fenris@hotmail.com</a><br><a href= > </a><br> [/sig]
 
Ended updownloading the JDK1.3 so I have seen the demo you are right. Quite impressive. Anyway Thanks for the help.

Chris [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top