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: 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

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: 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

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 (Frame)cont;

RE: managing slow-loading data in a JTree

2003-07-31 Thread Erik Ostermueller
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).

help in help

2003-07-31 Thread Manoj Varghese K
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