🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #9659

Re: JOptionPane.showInternalConfirmDialog() getValue() method dosnt work??

#9659
From: Kingsley
Date: Fri, 11 Feb 2000 00:00
34 lines
1693 bytes
in my application the following code works fine for me. check if this can
help solve your problem!


      int toDelete = JOptionPane.showConfirmDialog(parent,
            "Do you want to delete profile permanently?",
"Confirmation", JOptionPane.YES_NO_OPTION);
      if (toDelete == JOptionPane.YES_OPTION) {
        list1.remove(item);
      }

kingsley

Muthu <Muthu@telebot.com> wrote in message
news:86960s$ibp7@bornews.borland.com...
> when i use showInternalConfirmDialog() overloaded method to show a dialog
> window, the getValue() method dosnt retrieves the value user has selected.
> insted it returns a message saying  "uninitializedValue"
>
> getValue() work fine on JDialog but why not for
showInternalConfirmDialog()
> ???
>
> how can i initialize the values ? i'v tryed follwing way but it didnt work
> out...
>
>
> JOptionPane pane = new JOptionPane();
> pane.showInternalConfirmDialog(jdtpn2,"Do you wont to save the
> query","Message",pane.YES_NO_CANCEL_OPTION);
> Object result = pane.getValue();
> System.out.println(result);
>
>
Technical Details
Message-ID: <8817ed$e3317@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <86960s$ibp7@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,569c179d91546360
X-Google-Attributes: gid111d45,public
From: "Kingsley" <kingsleys@hotmail.com>
Subject: Re: JOptionPane.showInternalConfirmDialog()   getValue() method dosnt work??
Date: 2000/02/11
Message-ID: <8817ed$e3317@bornews.borland.com>
X-Deja-AN: 584569256
References: <86960s$ibp7@bornews.borland.com>
X-Priority: 3
X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: McGraw-Hill
X-MSMail-Priority: Normal
Reply-To: "Kingsley" <kingsleys@hotmail.com>
Newsgroups: borland.public.jbuilder.java.swing