Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet components visible

 
Kejal Shah
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • 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
 
Jasmine kaur
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic