🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#9650
From: Kingsley
Date: Thu, 10 Feb 2000 00:00
37 lines
1758 bytes
im using a JTextArea to display text messages. im appending strings line by
line.

as the message grows beyond a certain limit (say 40 lines of text or beyond
the viewing area) the messages at the top should get deleted and the new
messages should be appended to the bottom.

can any one give me possible solution or an idea !

thanks for even just considering it! and THANKS for the solution in
advance!!

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: <87vdpo$cr018@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/10
Message-ID: <87vdpo$cr018@bornews.borland.com>
X-Deja-AN: 584296917
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