Core Java| JSP| Servlets| XML| EJB| JEE5| Web Services| J2ME| Glossary| Questions?

 

 

 

 

 

 

 

 

 

 

 

 

 

Search Tutorials

Latest Questions
Comments
 
Checkbox 
 

A checkbox is again a label which is displayed as a pushbutton as shown in the example below. This pushbutton can either be checked or unchecked. Therefore, the state of the checkbox is either true or false. However, the initial state is false which is th

 

Checkbox

                         

A checkbox is again a label which is displayed as a pushbutton as shown in the example below. This pushbutton can either be checked or unchecked. Therefore, the state of the checkbox is either true or false. However, the initial state is false which is the default one. The example below shows the checkbox whose state gets toggled <<<<<<< checkbox.shtml on clicking.

 

 

======= on clicking.

>>>>>>> 1.2
import java.awt.*; 
import java.applet.Applet; 
 
public class MyCheckbox extends Applet { 
  public void init() { 
    Checkbox c = new Checkbox("Choose this option"); 
    add(c); 
  


Here is the Output:

C:\newprgrm>javac MyCheckbox.java

C:\newprgrm>appletviewer MyCheckbox.html

 

Download this example.

 

                         

» View all related tutorials
Related Tags: c class make method sed boolean value ole set oo frame if boo to ram bool argument e il not

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

5 comments so far (
post your own) View All Comments Latest 10 Comments:

tell me in java programing how can we select multiple programe with once and deactivate it with same?

Posted by anu on Wednesday, 12.17.08 @ 12:59pm | #82887

can you help me create a checkbox using java programming...
give me some pointers where i can easyly understand it on how to add some checkbox to may code....

Posted by ruben on Monday, 10.6.08 @ 09:49am | #80918

awt package,util package,not working package.lang package,io package

Posted by rajaprabu on Tuesday, 02.5.08 @ 15:35pm | #47288

awt package,util package,not working package.lang package,io package

Posted by rajaprabu on Tuesday, 02.5.08 @ 15:34pm | #47287

send to my e_mail

Posted by amal on Monday, 11.12.07 @ 10:24am | #36941

Training Courses
Tell A Friend
Your Friend Name
Software Solutions
Least Viewed
Most Rated
Recently Viewed
Search Tutorials

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company | iPhone Development Company in India | Flex Development Company in India | Java Training Delhi | Java Training at Noida |

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.