• Post Reply Bookmark Topic Watch Topic
  • New Topic

Warning!  RSS feed

 
Paul Keohan
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the best component to use for popup warnings? I can type in a piece of text but I want to give a warning if the piece of text already exists in a list.
Thanks.
Paul
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JOptionPane.showMessageDialog(this, "Danger Will Robinson, Danger", "Warning", JOptionPane.ERROR_MESSAGE);
That should do it.
 
Paul Keohan
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Works great.
Thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!