File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between JDialog and JFrame - URGENT

 
koray guclu
Ranch Hand
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic