• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet - Object of zero size

 
Roger F. Gay
Ranch Hand
Posts: 408
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm embedding an applet in a web-page, but have no reason for it to display. So, I set height and width to 0. Instead of disappearing after that annoying pop-up (Press SPACEBAR or ENTER ...), I'm left with a dot - as though the dimensions are actually height and width = 1.

Is that a problem you've encountered? How can I get rid of the dot? (And while we're at it, is there a graceful way to get rid of the annoying pop-up?)
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've done this in the past, and no dot was visible. But that is a pathological edge case, and as such may vary for each browser implementation and/or version.

The way to remove the popup is to use a decent browser - I think only IE has this problem. (Sorry, couldn't help it )
 
Roger F. Gay
Ranch Hand
Posts: 408
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been researching on the web and have also tried running in Opera and Firefox. I understand that the problem is limited to MSIE; and also read that MS doesn't want to fix it. Obviously though - developing the application doesn't mean that I get to decide what browsers users will be running. MSIE is still the most popular I suppose. I'm not sure I have to live with it though. When I run on a different machine (not the server), I don't get the pop-up. Microsoft asked once whether I wanted to allow the application, I said yes, and it was nice from then on (but still the little dot).

I've also read that some of these effects disappear when the applet is signed. I'm still in development, and doing the signature work is not a priority at this point. I've never worked with signature technology before. It looks like it's not hard - once you know how. But I keep reading that I need to put the applet in a jar file and sign the jar. I just don't want the extra steps while I'm still working on the applet.
[ August 28, 2007: Message edited by: Roger F. Gay ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic