This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Difference between JDialog and JFrame - URGENT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Difference between JDialog and JFrame - URGENT" Watch "Difference between JDialog and JFrame - URGENT" New topic
Author

Difference between JDialog and JFrame - URGENT

koray guclu
Ranch Hand

Joined: Feb 23, 2001
Posts: 59
Hello,
I donot understan why should I use Jdialog
for example I made an application launcher that lauches other application by clicking on the buttons.
that application launches other applications by using JFrames
should I use Jdialog instead?

-----------------------------------------------------<BR> Koray GUCLU ~ the sky has no limit ~<BR> (B.s. Computer Engineer)<BR> Frankfurt am Main, Germany<BR> web : <A HREF="http://www.geocities.com/korayguclu/<BR rel="nofollow">" TARGET=_blank>http://www.geocities.com/korayguclu/<BR></A> mail: korayguclu@yahoo.com<BR>-----------------------------------------------------
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi Koray,
The advantage of Dialog over Frame is that Dialog can be made modal (waits for user interaction) and it will always remain on top of its parent.
The advantage or Frame over Dialog is that the Frame can act as a separate application without interaction with other frames.
It comes down to a personal preference and what you are trying to perform with the windows.
Regards,
Manfred.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between JDialog and JFrame - URGENT
 
Similar Threads
Swing Programming Question
Flexible Dialog Box
Two JDialogs with the same parent
JDialog from JinternalFrame
Top window: JFrame or JDialog