🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Weird dialog boxes Shock Horror!

#12666
From: Phillipus
Date: Thu, 19 Nov 1998 00:00
31 lines
1475 bytes
Has anyone come across the mysterious case of dialog boxes /
JOptionPanes displaying the wrong title bars?

I'm using JDK 1.1.6 & 1.1.7 with Swing 1.0.3.

I call:

    int result = JOptionPane.showConfirmDialog(myApp,  "Are you sure you
want to delete this message?",
                "Delete e-mail message", JOptionPane.YES_NO_OPTION);

and I get the correct box, message and title.

Then I call:

     JOptionPane.showMessageDialog(myApp, "Sorry - only one case
allowed!", "Enter case", JOptionPane.PLAIN_MESSAGE);

And I get a box with "Sorry - only one case allowed!" as the message BUT
"Delete e-mail message" as the title!!!

Basically it seems I get the title message of the previous (or first)
JOptionPane each time.

Furthermore, anyone used the ProgressMonitorInputStream?  This also
displays the wrong title instead of "Progress..." Sometimes I get
"Input" and most of the time it doesn't paint itself anyway!

Weirdness!!!

Phillipus
Technical Details
Message-ID: <3653F524.B9A891EC@bangor.ac.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,750460920fab1817,start
X-Google-Attributes: gid111d45,public
From: Phillipus <p.beauvoir@bangor.ac.uk>
Subject: Weird dialog boxes Shock Horror!
Date: 1998/11/19
Message-ID: <3653F524.B9A891EC@bangor.ac.uk>
X-Deja-AN: 413464408
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing