🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1701

How to close a JOptionPane by program ?

#1701
From: Laurent Souriau
Date: Wed, 10 Oct 2001 15:43
16 lines
1953 bytes
        Hi everyone,


Here is my problem : I created a JOptionPane with the following lines
of code, and i would like to select by program one of the options,
or the CLOSED_OPTION. Is it possible and how ?

final JOptionPane toto = new JOptionPane("coucou");
Object[] options = new String[] {"jaune","vert","bleu"};
toto.showOptionDialog(this,"youhou","coucou",JOptionPane.YES_NO_CANCEL_OPTIO
N,1,null,options,options[0]);

Thank you

Laurent
email : lsouriau@club-internet.fr
Technical Details
Message-ID: <9q1q6g$hkk$1@s1.read.news.oleane.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!oleane.net!oleane!nnrp.oleane.net!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10a146,3265f80de2e3c1e7,start
X-Google-Attributes: gid10a146,public
X-Google-Thread: 113ae9,3265f80de2e3c1e7,start
X-Google-Attributes: gid113ae9,public
X-Google-Thread: 1089d0,3265f80de2e3c1e7,start
X-Google-Attributes: gid1089d0,public
X-Google-Thread: f74b3,3265f80de2e3c1e7,start
X-Google-Attributes: gidf74b3,public
X-Google-Thread: f631b,3265f80de2e3c1e7,start
X-Google-Attributes: gidf631b,public
X-Google-ArrivalTime: 2001-10-10 08:45:04 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!oleane.net!oleane!nnrp.oleane.net!not-for-mail
From: "Laurent Souriau" <lsouriau@club-internet.fr>
Newsgroups: borland.public.jbuilder.java.api,borland.public.jbuilder.java.language,comp.lang.java.help,comp.lang.java.programmer,fr.comp.lang.java
Subject: How to close a JOptionPane by program ?
Date: Wed, 10 Oct 2001 17:43:01 +0200
Organization: Guest of France Telecom Oleane's newsreading service
Lines: 18
Message-ID: <9q1q6g$hkk$1@s1.read.news.oleane.net>
NNTP-Posting-Host: aqsacom.rain.fr
X-Trace: s1.read.news.oleane.net 1002728464 18068 195.6.24.78 (10 Oct 2001 15:41:04 GMT)
X-Complaints-To: abuse@oleane.net
NNTP-Posting-Date: Wed, 10 Oct 2001 15:41:04 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400