• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JApplet size issue with netbeans.

 
Jay Orsaw
Ranch Hand
Posts: 356
Android Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an issue where my applet is only opening up in a 200x350 window. When I look at the tag this is the <applet codebase="classes" code="d/d.class" width=350 height=200>
</applet>

Now I assume I can set it any which way when I put it on the page, but it's kind of annoying when I'm trying to debug and run the 400x700 app when it keeps opening so small... I keep trying to set all of the parameters in my panel/applet and nothing... I sthere a way to fix this?
 
Nam Ha Minh
Ranch Hand
Posts: 504
Eclipse IDE Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm, looks like it doesn't relate to NetBeans at all?
 
Jay Orsaw
Ranch Hand
Posts: 356
Android Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nam Ha Minh wrote:Hmm, looks like it doesn't relate to NetBeans at all?


Originally I was going to post this in the Applet section, but I'm using Netbeans and figured it would have to do with that? Every time I run it, it runs with the TAG size.... It doesn't run in any size that I set it too, and I cannot change it To my knowledge.
 
Nam Ha Minh
Ranch Hand
Posts: 504
Eclipse IDE Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jay Orsaw wrote:

Originally I was going to post this in the Applet section, but I'm using Netbeans and figured it would have to do with that? Every time I run it, it runs with the TAG size.... It doesn't run in any size that I set it too, and I cannot change it To my knowledge.


That's true. Applet Tag's size specifies the container for the applet. So if you want to resize the applet, you have to update size attributes in its tag also.
 
Jay Orsaw
Ranch Hand
Posts: 356
Android Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nam Ha Minh wrote:
Jay Orsaw wrote:

Originally I was going to post this in the Applet section, but I'm using Netbeans and figured it would have to do with that? Every time I run it, it runs with the TAG size.... It doesn't run in any size that I set it too, and I cannot change it To my knowledge.


That's true. Applet Tag's size specifies the container for the applet. So if you want to resize the applet, you have to update size attributes in its tag also.


The only thing is there was no "TAG" option in the netbeans properties or anything... Where is the tag within the IDE? There was somthing called "STUB" I believe which had a resize function....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic