Article View: borland.public.jbuilder.java.swing
Article #12884Re: JOptionPane displaying.
From: Steve Meister
Date: Thu, 29 Oct 1998 00:00
Date: Thu, 29 Oct 1998 00:00
33 lines
1746 bytes
1746 bytes
In jdk1.1.6, there's a bug in the AWT that propagates up to Swing. Basically what happens is that the heavyweight frame is created too small (by only a couple pixels) for the component within it, so you end up seeing JOptionPanes that are slightly too small. You'll see labels with ellipses at the end "Like this..." The solution is to upgrade to jdk1.1.7. The bug is fixed there. Good luck! -- Steve St๏ฟฝphane wrote: > > hi, > > did anyone of you have this problem already : > > I'm using a JOptionPane to input a integer. The code is just... > String s = JOptionPane.showInput(null,"label of the > question","input",QUESTION_MESSAGE,null,null,null) > > The problem is that the first time the dialog input is shown, the size > of the dialog box is a bit too small, that is the label of the question > is nerver shown completely. > Then, if i close the box and call it again, the size of the dialog box > is perfect, and the same goes to the next calls. > > I would like to know how can i do to fix that... and if anyone of you > has any idea, i would be really grateful... > > thanks > > Steph ;)
Technical Details
Message-ID:
<3638D13E.93A47224@erols.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3638C5F6.E3158D@cs.tut.fi>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,e20da148cdc66fad X-Google-Attributes: gid111d45,public From: Steve Meister <steve.and.christiane@erols.com> Subject: Re: JOptionPane displaying. Date: 1998/10/29 Message-ID: <3638D13E.93A47224@erols.com> X-Deja-AN: 406429535 Content-Transfer-Encoding: 8bit References: <3638C5F6.E3158D@cs.tut.fi> X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Reply-To: nospam_steve.and.christiane@erols.com Newsgroups: borland.public.jbuilder.java.swing