This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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.
It is sorta covered in the JavaRanch Style Guide.
subject: Display a Frame in a frame