aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Display a Frame in a frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Display a Frame in a frame" Watch "Display a Frame in a frame" New topic
Author

Display a Frame in a frame

Sofie Deceuninck
Greenhorn

Joined: Feb 20, 2004
Posts: 11
When I push the button I want to make a new frame, but that must be openend in the original frame namely Test_hotelreservation. How is this possible?

Thanks for the replies in advance!
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

You can't add one Frame inside another... Swing adds the ability to do this by using JDesktopPane/JInternalFrames (link to tutorial here) but there is no way to do this in AWT. Not without doing it all yourself by faking the internal frames with custom Panels, etc. and doing a lot of work yourself.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Display a Frame in a frame