Two Laptop Bag
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Display a Frame in a frame" Watch "Display a Frame in a frame" New topic

Display a Frame in a frame

Sofie Deceuninck

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

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.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: Display a Frame in a frame
It's not a secret anymore!