This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between JDialog and JFrame - URGENT

 
koray guclu
Ranch Hand
Posts: 59
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic