Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JOptionPane without a button

 
Barry Brashear
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to instantiate a JOptionPane with either no button or have
the button invisible.?

Thanks.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope. Easiest way to get what you want is to use a JDialog. You can just create a class that extends JDialog. Treat everything in that class just like coding for a JFrame and don't put any buttons on it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic