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 Difference between JDialog and JFrame - URGENT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Difference between JDialog and JFrame - URGENT" Watch "Difference between JDialog and JFrame - URGENT" New topic

Difference between JDialog and JFrame - URGENT

koray guclu
Ranch Hand

Joined: Feb 23, 2001
Posts: 59
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="<BR rel="nofollow">" TARGET=_blank><BR></A> mail:<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.
I agree. Here's the link:
subject: Difference between JDialog and JFrame - URGENT
It's not a secret anymore!