Article View: borland.public.jbuilder.java.swing
Article #11912Re: Problem with JDialog
From: ������
Date: Sun, 14 Mar 1999 00:00
Date: Sun, 14 Mar 1999 00:00
16 lines
992 bytes
992 bytes
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:
<7ceu12$qtt13@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7cd4dt$plh3@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,7deed2bf7163d312 X-Google-Attributes: gid111d45,public From: "������" <hwh@eq-gd.ac.cn> Subject: Re: Problem with JDialog Date: 1999/03/14 Message-ID: <7ceu12$qtt13@forums.borland.com> X-Deja-AN: 454687870 References: <7cd4dt$plh3@forums.borland.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing