🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Modal windows and getting their input back to the main window

#561
From: Scott Powell
Date: Fri, 04 Mar 2005 22:23
17 lines
1525 bytes
Hi,

I've got the Java Certification training book and am looking over windowing
stuff.

But I can't find anything that tells me how, if Form1 opens Form2 (say a
login window), how Form1 finds out what data was entered to Form2.

I don't know if there's a "built-in" way (form2.getParent().setUsername()
seems unlikely given types), I need to use an event listener or if people
typically pass Form1 to Form2 as a typed argument and then
form2.myParentFormWithIKnowWillHaveASentUsernameMethod.setUsername(username)
.

Thanks for your help.

Scott
Technical Details
Message-ID: <4228e0d8$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed.inode.at!newsfeed.utanet.at!newscore.univie.ac.at!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,9deb20d8c75a3c05,start
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Scott Powell" <spowell@rpsweb.com>
From: "Scott Powell" <spowell@rpsweb.com>
Newsgroups: borland.public.jbuilder.java.language
Subject: Modal windows and getting their input back to the main window
Date: Fri, 4 Mar 2005 14:23:20 -0800
Lines: 19
Organization: RPS
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.224
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.224
NNTP-Posting-Host: 64.80.153.236
Message-ID: <4228e0d8$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1109975256 64.80.153.236 (4 Mar 2005 14:27:36 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed.inode.at!newsfeed.utanet.at!newscore.univie.ac.at!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail