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
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 myDial
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)
> {
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)
{
cont = cont.getParent();
if(cont instanceof Frame) return (Frame)cont;
}
return (Frame)null;
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
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
ailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2003 5:33 PM
> To: Farwell, Paul
> Cc: Swing Forum
> Subject: Re: JFrame question
>
> Strange, because when my applet downloads a jar file, there is no status
> bar. Is
> that frame also regular JFrame or something else?
>
um
Subject: Re: JFrame question
Strange, because when my applet downloads a jar file, there is no status
bar. Is
that frame also regular JFrame or something else?
"Farwell, Paul" wrote:
> The only way to get rid of the status bar message (that I am aware of) is
to
> sign your app
just live
with the banner.
Joel
-Original Message-
From: Farwell, Paul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 5:24 PM
To: 'Aleksandr Kravets'; Swing Forum
Subject: RE: JFrame question
The only way to get rid of the status bar message (that I am aware of) is
y design for any heavyweight window as
> a (reputed) security feature.
>
> -Original Message-
> From: Aleksandr Kravets [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2003 5:22 PM
> To: Swing Forum
> Subject: JFrame question
>
> Hi,
>
> When I call JFrame
PM
To: Swing Forum
Subject: JFrame question
Hi,
When I call JFrame from my Applet, JFrame appears with a status bar
saying 'Java Applet Window'. Is there a way to get rid off this status
bar?
thanks,
Alex K
___
Advanced-swing mailing l
Hi,
When I call JFrame from my Applet, JFrame appears with a status bar
saying 'Java Applet Window'. Is there a way to get rid off this status
bar?
thanks,
Alex K
___
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced
12 matches
Mail list logo