A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
JOptionPane without a button
Joined: Jun 05, 2001
Dec 01, 2004 08:52:00
Is it possible to instantiate a JOptionPane with either no button or have
the button invisible.?
Joined: Jul 11, 2001
Dec 01, 2004 12:08:00
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.
GenRocket - Experts at Building Test Data
I agree. Here's the link:
subject: JOptionPane without a button
JOptionPane Dialog box - JOptionPane - Dialog box - not responding to Tab keys
JDialog without close button
Making JOptionPane disappear after Ok is pressed
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014