File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
I agree. Here's the link:
subject: Frames
It's not a secret anymore!