• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why JInternalFrame cannot display in JApplet?

 
Dongqing Wu
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

You can change your name here:
here

You can also find the naming policy here:
http://www.javaranch.com/name.jsp
Thank You!
 
Dongqing Wu
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic