🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #10623

Getting a default button to operate in a JDialog class

#10623
From: Brett M. Bergquist
Date: Sat, 21 Aug 1999 00:00
6 lines
681 bytes
Does anyone know how to get a default button to operate in a JDialog class.
I use the following:

    getRootPane().setDefaultButton(button1);

but this does not seem to work.  Any ideas.
Technical Details
Message-ID: <7pml2n$at614@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,22a61e578f86865d,start
X-Google-Attributes: gid111d45,public
From: "Brett M. Bergquist" <bbergquist@snet.net>
Subject: Getting a default button to operate in a JDialog class
Date: 1999/08/21
Message-ID: <7pml2n$at614@forums.borland.com>
X-Deja-AN: 515531709
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
Newsgroups: borland.public.jbuilder.java.swing