Article View: comp.lang.java.programmer
Article #433Re: Pop up a message box in applet
From: Rashid420
Date: Mon, 29 Jun 1998 00:00
Date: Mon, 29 Jun 1998 00:00
48 lines
3148 bytes
3148 bytes
I believe you will need to create a Frame or JFrame to "popup" a window. Personally, I think it is a bad idea to popup windows from applets. I can never guarantee there "modality" and given the inconsistent support in browsers, I stay away from then. I recommend having a CardPanel for your main applet UI with an "error" panel that you can switch too. The error panel would describe the error and could have controls to specify actions to be taken on the error. In the simplest case, the error panel would simply have a "Back" button to take you to the "screen" where the error occurred, or to some place where the user should interact after the error occurred. I repeat, this is my recommendation. Is anyone at Sun reading this? PLEASE ENDORSE IT! In article <6n6nh9$bd1$1@nnrp1.dejanews.com>, morris_newsgroup@yahoo.com wrote: > > I have an applet which accepts input from users through a GUI. I'm trying to > pop up a message box with only an OK button when users make an error. Is > this doable in applet or I can only do this in an application instead. I > think this is a general java gui question. By the way, I'm using JBuilder2 > and found that when I dropped a message component onto my applet. I can't > find a frame which the message component can use. In other words, there was > nothing in the frame property of the message component. I tried to create a > frame inside the applet source code and it seemed to have some security > errors when I ran the applet in the browser. > > Does anyone know anything about this? It may not be just a JBuilder2 > question. In general, I would like to know if it's possible that I can pop up > a message box with either just a message or a text box which users can enter > something in an applet. > > Sample code would be helpful if this is possible. > > Thanks for your help in advance, > Morris > > -----== Posted via Deja News, The Leader in Internet Discussion ==----- > http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum > -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
Technical Details
Message-ID:
<6n8fe7$do1$1@nnrp1.dejanews.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6n6nh9$bd1$1@nnrp1.dejanews.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10a146,afddcc2748cf26d8 X-Google-Attributes: gid10a146,public X-Google-Thread: fa3e3,afddcc2748cf26d8 X-Google-Attributes: gidfa3e3,public X-Google-Thread: f74b3,afddcc2748cf26d8 X-Google-Attributes: gidf74b3,public X-Google-Thread: 10fd6d,afddcc2748cf26d8 X-Google-Attributes: gid10fd6d,public From: Rashid420@my-dejanews.com Subject: Re: Pop up a message box in applet Date: 1998/06/29 Message-ID: <6n8fe7$do1$1@nnrp1.dejanews.com> X-Deja-AN: 367113130 References: <6n6nh9$bd1$1@nnrp1.dejanews.com> X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT) X-Http-Proxy: tti3 (MSProxy/1.0) for 200.200.200.119 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Mon Jun 29 16:29:59 1998 GMT Newsgroups: comp.lang.java.programmer,borland.public.jbuilder.java.language,comp.lang.java.gui,borland.public.jbuilder.ide