• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Applet components visible

 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am designing an Applet. It has a tree, a button and a text box. But, when the applet loads, none of these components is visible. Wat do i need to do if i need to make these visible?

Thanks in advance
Kejal Shah
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,
well have you added this components in applet using add()method or not if you have not added in the applet then they will notbe visible .
By default the buttons ,textbox, textfield except frame are visible so you dont have to do anything you just add these components in applet.
Button b1 = new Button("One");
Button b2 = new Button("two");
Button b3 = new Button("three");
public void init(){
add(b1);
add(b2);
add(b3);
}
Thanks I hope it is now clear to you.
 
reply
    Bookmark Topic Watch Topic
  • New Topic