File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes How to create a new window from a java app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to create a new window from a java app" Watch "How to create a new window from a java app" New topic
Author

How to create a new window from a java app

N Ganesh
Greenhorn

Joined: Jan 27, 2006
Posts: 5
I want to create a new window from a java application.

My main class is a JFrame with many components. So when start my application, one window corresponding to this JFrame is displayed.

Now apart from this window, I want create one more window which can hold some other components.

Can anybody please help me out on this.


N Ganesh
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
Welcome to JavaRanch.

What's stopping you from creating another JFrame and showing it?


Ping & DNS - updated with new look and Ping home screen widget
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Either that, or a JDialog. The latter won't appear in the task bar, and can be made modal (that is, it can block the parent window while it's open, if you like).


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
N Ganesh
Greenhorn

Joined: Jan 27, 2006
Posts: 5
Thanks guys that helped me a lot. I just need to create a new JFrame
Mathias Nilsson
Ranch Hand

Joined: Aug 21, 2004
Posts: 367
To create a new JFrame...


SCJP1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create a new window from a java app
 
Similar Threads
Where's my ProgressMonitor content?
Two JFrames in one app / event handling
How can I get the feature ALWAYS_ON_TOP with the swing JFrames.
Best strategy for handling actions across multiple windows?
How to make a popup Window, not Menu