Re: AW: AW: another JFrame question

2003-07-31 Thread Aleksandr Kravets
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

AW: AW: another JFrame question

2003-07-31 Thread Salvador Richter
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

Re: AW: another JFrame question

2003-07-31 Thread Aleksandr Kravets
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) > {

AW: another JFrame question

2003-07-31 Thread Salvador Richter
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;

RE: another JFrame question

2003-07-31 Thread David Barron
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

another JFrame question

2003-07-31 Thread Aleksandr Kravets
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

Re: JFrame question

2003-07-30 Thread Aleksandr Kravets
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? >

RE: JFrame question

2003-07-30 Thread Farwell, Paul
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

RE: JFrame question

2003-07-30 Thread Joel Kamentz
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

Re: JFrame question

2003-07-30 Thread Aleksandr Kravets
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

RE: JFrame question

2003-07-30 Thread Farwell, Paul
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

JFrame question

2003-07-30 Thread Aleksandr Kravets
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