Hello These days I have developed a MIS application based on JApplet. But as I finished the programmer and have test in web pages, I find the JInternalFrame cannot display! What reason on earth? I hava consult many of books, but I cannot find a solution of this problem. On browser I use the Java2 plug-in. I am very anxious of it always. please give me a hand , thanks very very much.
wudongqing, If you can provide the error messages you're getting or a stack trace, it would be easier to figure out what the problem is. Also, please change your name to comply with the naming policy to which you agreed when you registered here..
For your publicly displayed name, use a first name, a space, and a last name.
Thank you for you reply.But there is no error appeared.Everythink is ok except the JInternetFrame does not appear. I try to trace the code by add Code "System.out.println("..")" before and after the code "JDesktop jdesktop.add(anJnternalFrame)",it can output correctly.I also check the Java2 plug-in's console,there is even no error!I am very pulzzed. Can you have a test for me?Thank you very much.
posted 18 years ago
Well it's hard to guess what might be going on, but I will offer a few suggestions. First, the JInternalFrames really want to be added to a JDesktopPane. You should have a JDesktopPane be the sole child of your JApplet, and then add the JInternalFrame to the JDesktopPane. Also, make sure you set the size of the JInternalFrame, and set it to visible. Here is a tutorial at the Sun site that explains how to work with Internal Frames [ May 17, 2002: Message edited by: Rob Ross ]
Can you shoot lasers out of your eyes? Don't look at this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!