Article View: borland.public.jbuilder.java.swing
Article #7514Best way to show pop-up window?
From: Steve Swett
Date: Mon, 15 Jan 2001 22:23
Date: Mon, 15 Jan 2001 22:23
14 lines
1425 bytes
1425 bytes
In an applet: My main pane shows information about a student, including a list of parental contacts in a JTable. When the user double-clicks a parent's name, I'd like to display a new window that is centered on the screen, but is a bit smaller than the main pane. The only things in the new window would be several label components and an OK button. After the user would view the information and press an OK button, the pop-up window would go away and the main pane would be shown once again. What is the best way to do something like that? I'm pretty new with Java, so I don't know whether I should be looking at a dialog, option pane, or a card layout solution. (or something else) TIA
Technical Details
Message-ID:
<3a6377a0_2@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!199.176.229.81Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,267d9c3d9ca6f479,start X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2001-01-15 14:26:04 PST From: "Steve Swett" <swett@ncats.net> Newsgroups: borland.public.jbuilder.java.swing Subject: Best way to show pop-up window? Date: Mon, 15 Jan 2001 17:23:02 -0500 Lines: 17 X-Newsreader: Microsoft Outlook Express 4.72.3155.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 NNTP-Posting-Host: 199.176.229.81 Message-ID: <3a6377a0_2@dnews> X-Trace: 15 Jan 2001 14:20:16 -0800, 199.176.229.81 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!199.176.229.81