Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to create new dialog like JOptionPAne  RSS feed

 
Rohit Kumar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to create a custom dialog which has diffent labels, radio buttons, checkboxs, cumbo box etc.

I wann this dialog to work same like JOptionPane, means the control (while debuging) should stop, when this dialog is opened, and depending on the option i choose it shoud move further.

Currently, the control moves on even when the dialog is open.

Any suggestions?
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html

> Currently, the control moves on even when the dialog is open.

you're missing:
dialog.setModal(true);
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!