permaculture playing cards*
The moose likes Beginning Java and the fly likes How to add components in applet programme 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 » Beginning Java
Bookmark "How to add components in applet programme" Watch "How to add components in applet programme" New topic

How to add components in applet programme

Athiveera Kugan

Joined: Mar 21, 2001
Posts: 15
Any body can Explain how to add components to appear on browser at first display?
I added components in init() method in applet, but the components are not displayed at first display. However it appears only after actuating the paint() method by minimising or maximising the applet viewer!
can anyone explaine in the forum why it is so ?
Thaning u in advance!

<I> s.a.kugan</I>
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Are you giving the Applet size in the html?
< APPLET code=AppletTest.class width=300 height=300>
The worlds most simple Applet-

[This message has been edited by Cindy Glass (edited July 19, 2001).]

"JavaRanch, where the deer and the Certified play" - David O'Meara
It is sorta covered in the JavaRanch Style Guide.
subject: How to add components in applet programme
Similar Threads
To put 2 applets on Web page
setting background image in applet
Simple method program