Article View: borland.public.jbuilder.java.swing
Article #11911Re: Problem with JDialog
From: C. Callaway
Date: Sat, 13 Mar 1999 00:00
Date: Sat, 13 Mar 1999 00:00
22 lines
1140 bytes
1140 bytes
Thanks, it works now.
������ wrote in message <7ceu12$qtt13@forums.borland.com>...
>Before d.show,u should add two lines:
>
> d.setSize(...);
> d.setLocation(...);
>
>C. Callaway wrote in message <7cd4dt$plh3@forums.borland.com>...
>>Does anybody know why this code doesn't work? It runs fine, but the dialog
>>doesn't show up on the screen.
>>
>> JDialog d = new JDialog(this, "Dialog");
>> d.getContentPane().setLayout(new BorderLayout());
>> JLabel label = new JLabel("Label");
>> d.getContentPane().add(label, BorderLayout.NORTH);
>> d.show();
>>
>>Thanks,
>
>
>
Technical Details
Message-ID:
<7cf9p1$re310@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7cd4dt$plh3@forums.borland.com> <7ceu12$qtt13@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,7deed2bf7163d312 X-Google-Attributes: gid111d45,public From: "C. Callaway" <cqcallaw@iname.com> Subject: Re: Problem with JDialog Date: 1999/03/13 Message-ID: <7cf9p1$re310@forums.borland.com> X-Deja-AN: 454728217 References: <7cd4dt$plh3@forums.borland.com> <7ceu12$qtt13@forums.borland.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing