This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Applets and the fly likes Invisible applet browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Invisible applet browser" Watch "Invisible applet browser" New topic

Invisible applet browser

jim, valenta
Ranch Hand

Joined: Mar 16, 2001
Posts: 47
I was wondering if anyone knew how to make the browser part of a JAVA applet invisible. I know in XML you can just save it then open in notepad then change visiblity to no. But when I tried it with my JAVA HTML page I couldn't find anything.
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

In the HTML you can specify width=0 and height=0 in the applet tag... However, I know that some browsers will not run the applet if you do this, or they will enlarge the applet panel in the browser to some default size... I tested this out in IE 4.0 here at work, and it will let you run a 0 width, 0 height applet. Though I remember working in an older version of Netscape a while back that wouldn't let you put "invisible" applets on a page... You can always set the background color of the applet to the background color of the page and make it small...


Write once, run anywhere, because there's nowhere to hide! - /. A.C.
jim, valenta
Ranch Hand

Joined: Mar 16, 2001
Posts: 47
what should I make small? The applet?
I agree. Here's the link:
subject: Invisible applet browser
Similar Threads
lotus java applet
applet run on one machine but throw an exception on the other
Hidden Applet?
Chat Servlet