Jump to content

java applet window size??

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1
stack

stack

    Learning Programmer

  • Members
  • PipPipPip
  • 42 posts
hi,
how can i change the defult java applet window size??

#2
stack

stack

    Learning Programmer

  • Members
  • PipPipPip
  • 42 posts
how can i change the size of java Applet window please??
because i want to insert images of different sizes on it.

#3
v0id

v0id

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,936 posts
Throw some width and height on your applet-tag?

<applet width="..." height="..." ...>
...
</applet>


#4
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
You can also edit the class file and use the setSize method on the Applet.

#5
stack

stack

    Learning Programmer

  • Members
  • PipPipPip
  • 42 posts
Thank you,,
i have another question please,,
how can i change the java applet window color? i don't want it to be gray i want to set it to another color,,if i use setBackground method the window remain gray??

#6
CygnetGames

CygnetGames

    Programmer

  • Members
  • PipPipPipPip
  • 119 posts
Try these tutorials.
They will teach you the basics of how to do things with java applets.

Java Applet Tutorial - Home
Java Applet Tutorial
Lesson: Applets (The Java™ Tutorials > Deployment)