Hi,
When my Applet loads a JFrame, a user can click inside an Applet and
JFrame will hide. Is there a way to keep JFrame visible until user
closes it and if JFrame looses focus, JFrame is visible a top of Applet
anyway?
thanks,
Alex
___
Advanced-swing
Why not use a Jdialog instead?
-Original Message-
From: Aleksandr Kravets [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 9:46 AM
To: Swing Forum
Subject: another JFrame question
Hi,
When my Applet loads a JFrame, a user can click inside an Applet and
JFrame will hide. Is
thanks Salvador,
But where exectly do I have to put this code?
Alex
Salvador Richter wrote:
Maybe JDialog will not be modal even if you say it to be modal.
therefore you can attach your dialog to the browsers frame
use
Container cont = 'your applet';
while(cont != null)
{
Hi Alex,
you have to use JDialog instead of JFrame
and then do it like this
public Frame getBrowserFrame()
{
Container cont = 'your applet';
while(cont != null)
{
cont = cont.getParent();
if(cont instanceof Frame) return (Frame)cont;
}
return (Frame)null;
}
JDialog
thanks!
Salvador Richter wrote:
Hi Alex,
you have to use JDialog instead of JFrame
and then do it like this
public Frame getBrowserFrame()
{
Container cont = 'your applet';
while(cont != null)
{
cont = cont.getParent();
if(cont instanceof Frame) return (Frame)cont;
Thanks, rmp and Pat. Your suggestions are going to be
a great help.
--Erik O.
--- Prescott, Ralph [EMAIL PROTECTED]
wrote:
To improve the user experience, I'd like
to immediately load enough data for the
user to visually chew on for a while,
then lazy load the rest of it (the lion's share).
Hi,
In our application, we came across a problem while implementing context sensitive help... we are using the Java help..and when the html file (help document) is large (say 25K or above), a null pointer exception occurs..Please suggest an alternative other than splitting the html files