From owner-freebsd-java Tue Feb 16 16:36:36 1999 Delivered-To: freebsd-java@freebsd.org Received: from WEBBSD1.turnaround.com.au (webbsd1.turnaround.com.au [203.39.138.49]) by hub.freebsd.org (Postfix) with ESMTP id 7293B10FE3 for ; Tue, 16 Feb 1999 16:36:06 -0800 (PST) (envelope-from J_Shevland@TurnAround.com.au) Received: from tasshev (dhcp110.turnaround.com.au [192.168.1.110] (may be forged)) by WEBBSD1.turnaround.com.au (8.8.7/8.8.7) with SMTP id LAA03707; Wed, 17 Feb 1999 11:37:03 +1100 (EST) (envelope-from J_Shevland@TurnAround.com.au) Reply-To: From: "Joe Shevland" To: "Vince Vielhaber" , Subject: RE: somewhat new to java questions Date: Wed, 17 Feb 1999 11:31:56 +1100 Message-ID: <001e01be5a0c$ec29eab0$6e01a8c0@tasshev.turnaround.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Importance: Normal In-Reply-To: Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org G'day, -- Joe Shevland Principal Consultant Turnaround Solutions Pty. Ltd. Ph: +61-03-6224-9146 * Fax: +61-03-6223-2556 -- The best way to save face... is to keep the lower half shut -Anonymous > -----Original Message----- > From: owner-freebsd-java@FreeBSD.ORG > [mailto:owner-freebsd-java@FreeBSD.ORG]On Behalf Of Vince Vielhaber > Sent: Wednesday, February 17, 1999 9:58 AM > To: freebsd-java@FreeBSD.ORG > Subject: somewhat new to java questions > > > > Being fairly new to java but not new to C or C++, I'm finding myself > running into a few walls. Most of which I find my way around, however > right now I need to do two things that aren't making themselves obvious > by any stretch of the imagination. Perhaps they can't be done. > > Background: It's an Applet that's run from the browser. > > 1) I check the lengths of the data in a few TextFields and if they're > not at least a certain length I need to pop up a box that says so and > after they click on OK they can fix it. In both Windows and OS/2-PM > I had a function called MessageBox. Is there something similar here? Not in Java 1.0.2. But you can create a Frame class or Dialog class that behaves exactly the same (you can even modal-ise it without a parent Frame with a bit of work). > 2) After all the boxes have been filled in and the Send button is > pressed, I need to tell the browser to go to another URL (possibly > a cgi). Is there something that will tell the browser to do it? Yip, get the AppletContext from the Applet parent class. There's a method (can't recall off the top of my head) that redirects the browser, ... showPage( URL foo ) or showURL( URL foo ) I think. > I'm not really sure that this is what this list is about, but the traffic > is rather low here so I thought I'd at least give this one a try. Sounds fair, good to see a bit of traffic. HTH > Thanks in advance, > > Vince. > -- > ========================================================================== > Vince Vielhaber -- KA8CSH email: vev@michvhf.com flame-mail: /dev/null > # include TEAM-OS2 > Online Campground Directory http://www.camping-usa.com > Online Giftshop Superstore http://www.cloudninegifts.com > ========================================================================== > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message