How can i get options from JOptionPane

Hi, I know there is a method getOptions, but it is retuning me always null whatever constructor i use :( . Please help me ..........
[146 byte] By [BHARGAVAa] at [2007-11-27 2:05:11]
# 1
can you specify the code ....
deepak_cuceka at 2007-7-12 1:50:14 > top of Java-index,Desktop,Core GUI APIs...
# 2
Yeah, sure. I am just giving the block of code as im trying this from script editorJOptionPane jp = new JOptionPane("Hello", JOptionPane.INFORMATION_MESSAGE,
BHARGAVAa at 2007-7-12 1:50:14 > top of Java-index,Desktop,Core GUI APIs...
# 3
if you need yes or no option i thing it will be better..just try following snippet...int a;a=JOptionPane.showConfirmDialog("hello");a=0 if you click yes a=1 if you click nois this enough
deepak_cuceka at 2007-7-12 1:50:14 > top of Java-index,Desktop,Core GUI APIs...
# 4

@deepak,

thnx for the reply. But my actual problem is, i want to add one extra button called 'Details' along with OK button. I want to set the options. So first, i want to get the OK option and then add one more to the list. I am not getting the options array. Its reurning null.

Also, i don't undersand the use of setting the options as showOptionsDialog again needs the options parameter.

Any light on this would be very much helpful.

BHARGAVAa at 2007-7-12 1:50:14 > top of Java-index,Desktop,Core GUI APIs...
# 5
[url http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html#create]How to Use Option Panes[/url]
camickra at 2007-7-12 1:50:14 > top of Java-index,Desktop,Core GUI APIs...
# 6
thank you crackr ... though the documentation does not help my problem directly. I got the solution. Actaully, i wanted to get the options from JOptionPane.
BHARGAVAa at 2007-7-12 1:50:14 > top of Java-index,Desktop,Core GUI APIs...
# 7
Oops, sorry for the wrong name cramickr!
BHARGAVAa at 2007-7-12 1:50:14 > top of Java-index,Desktop,Core GUI APIs...