Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Why JInternalFrame cannot display in JApplet?

 
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.
 
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 ]
 
Can you shoot lasers out of your eyes? Don't look at this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic