Results 1 to 6 of 6
- 02-23-2012, 05:47 PM #1
Senior Member
- Join Date
- Nov 2011
- Location
- Turkey
- Posts
- 380
- Blog Entries
- 24
- Rep Power
- 9
How can I make a JOptionPane undecorated ?
Is there a way?
I want this message to appear undecorated:
Java Code:int exitOption = JOptionPane.showConfirmDialog(null,"Are you sure you want to quit this amazing game and go back to your boring life?", "Quit", 0);
-
Re: How can I make a JOptionPane undecorated ?
You can extract the JDialog from the JOptionPane and either make that undecorated, or you could extract the JDialog, get its contentPane and put it in a JWindow.
- 02-23-2012, 06:17 PM #3
Senior Member
- Join Date
- Nov 2011
- Location
- Turkey
- Posts
- 380
- Blog Entries
- 24
- Rep Power
- 9
Re: How can I make a JOptionPane undecorated ?
so display a new JFrame, which is undecorated that holds a JOptionPane ?
-
Re: How can I make a JOptionPane undecorated ?
- 02-23-2012, 06:23 PM #5
Senior Member
- Join Date
- Nov 2011
- Location
- Turkey
- Posts
- 380
- Blog Entries
- 24
- Rep Power
- 9
Re: How can I make a JOptionPane undecorated ?
I am trying to understand what you mean by "JDialog extracted from the JOptionPane"
-
Re: How can I make a JOptionPane undecorated ?
Similar Threads
-
Undecorated JFrame background shadow
By md_suzon in forum AWT / SwingReplies: 6Last Post: 10-12-2011, 02:35 AM -
can i make a program to make keyboard and mouse idle or not responding for 10 second
By 3ammary in forum Advanced JavaReplies: 4Last Post: 07-23-2011, 09:08 PM -
Help with JOptionPane
By javaman1 in forum New To JavaReplies: 6Last Post: 11-13-2010, 11:40 PM -
need help for JOptionPane....
By keycoffee in forum New To JavaReplies: 1Last Post: 02-09-2010, 09:59 AM -
how to make joptionpane "always on top"
By kapilverma32 in forum Advanced JavaReplies: 2Last Post: 02-06-2009, 08:57 AM
Bookmarks