Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Functional Reactive Programming this week in the Other Languages 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
Ranch Hand
Posts: 15304
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