Article View: borland.public.jbuilder.java.api
Article #1882showOptionDialog
From: Ant�nio Ferreira
Date: Tue, 31 Jul 2001 13:40
Date: Tue, 31 Jul 2001 13:40
16 lines
1224 bytes
1224 bytes
Hi,
I use the following code in my java program (1.2-jbuilder professional 3):
Object[] options = { "OK", "CANCEL" };
JOptionPane.showOptionDialog(null, "Click OK to continue", "Warning",
DEFAULT_OPTION, WARNING_MESSAGE,
null, options, options[1]);
Shouldn't the inicial focus go to "CANCEL"? In my code it doesn't. Must I
do anything else?
I appreciate all your help.
Thanks,
Ant�nio Jos� Ferreira
Technical Details
Message-ID:
<3b66b4a3_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!129.240.148.23!uio.no!newsfeed1.uni2.dk!newssuck.uni2.dk!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 1089d0,de21dca1d6ef0001,start X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-07-31 06:43:19 PST From: "Ant�nio Ferreira" <antonio.ferreira@artesis.co.pt> Newsgroups: borland.public.jbuilder.java.api Subject: showOptionDialog Date: Tue, 31 Jul 2001 14:40:50 +0100 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 NNTP-Posting-Host: 195.22.4.72 Message-ID: <3b66b4a3_2@dnews> X-Trace: dnews 996586659 195.22.4.72 (31 Jul 2001 06:37:39 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!129.240.148.23!uio.no!newsfeed1.uni2.dk!newssuck.uni2.dk!dnews