🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15975

Re: Non modal dialogs

#15975
From: Tor Iver Wilhelmsen
Date: Mon, 12 Apr 1999 00:00
8 lines
794 bytes
Leo Cohen <lcohen@cs.virginia.edu> writes:

> So here's the question: how do I get the program to wait for input right
> after the setVisible(true)?

Make it modal: setModal(true). If you want to have it non-modal, add
listeners to the dialog's buttons, and set actionCommand propertieson
them that identify them to the listener.
Technical Details
Message-ID: <u1zhqtfcb.fsf@sds.no>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <370E19E1.6DBBFED2@cs.virginia.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,eb338574bbeeb2b8
X-Google-Attributes: gidf74b3,public
From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no>
Subject: Re: Non modal dialogs
Date: 1999/04/12
Message-ID: <u1zhqtfcb.fsf@sds.no>
X-Deja-AN: 465394566
Sender: towi@SDSA1761
References: <370E19E1.6DBBFED2@cs.virginia.edu>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language