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

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Frames" Watch "Frames" New topic


dhanasekaran mani

Joined: Aug 29, 2006
Posts: 6
iam having a class called which uses frames and menus, when Click the menu item name file, new class called is executed, but it opens in a new window, i want the container to display the execution of

help me.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
use a CardLayout()

whatever displays in, is card(0), then, instead of a frame for, use a JPanel, then add as card(1)

the actionListener for the menuItem just has, to display

more info
subject: Frames