Home | Ajax | BioInformatics | Dojo | EAI | EJB | Hibernate | J2ME | Java | Java Glossary | Java Servlets | JavaScript | Jboss | JDBC | JDO | Jmeter | JSF | JSP | JUnit | Maven | MySQL | Spring Framework | SQL | Struts | Technology | WAP | Web Services | XML


 
  
 
Programming Tutorials: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML
 

 
Facing Programming Problem?
Ask Questions?, Browse Latest Questions, Question-Answer Guidelines
Java
  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification
  Java Applet
Questions
Comments

How to create CheckBox On frame

                         

This is very simple java program. In this section, you will learn how to create CheckBox on the frame. In the Java AWT, top-level windows are represented by the CheckBox class. This program provides you complete illustration with the full description. If you are fresher in java awt programming then you can learn in very efficient manner.

In this section, you will see how to create and show the checkbox component on the frame. Here, explanation for the procedure of inserting checkboxes on the Java AWT Frame. You can understand very easily by trying the given complete code of the program.

Program Description:

There is class named CheckBox is used in the program for creating a checkbox component. This class is explained as follows:

CheckBox(): This is the constructors for CheckBox class used for creating checkbox. The constructor is taking here a String type parameter that is the label of checkbox.

Here is the code of this program:

import java.awt.*;
import java.awt.event.*;
public class CheckBoxDemo{
  public static void main(String[] args){
    Frame frame= new Frame("Checkbox");
    Checkbox check=new Checkbox("Welcome");
    Checkbox check1=new Checkbox("Roseindia");
    frame.add(check);
    frame.add(check1);
    frame.setLayout(new FlowLayout());
    frame.setSize(300,200);
    frame.setVisible(true);
    frame.addWindowListener(new WindowAdapter(){
      public void windowClosing(WindowEvent e){
        System.exit(0);
      }
    });
  }
}

Output for the above program:

    

Download this example.

                         

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 
Latest Searches:
header
JFreechart Library: Hi
struts <param name
visual C 6.0
jsp bean get property
j2me programing code
java deployment
Photoshop tutorial : A
inter servlet communic
check character
jsp code to manipulate
java constants
Class
text editor
tabindex
Insert Data into Datab
Date
vector toarray
dynamic insert value J
how to change url
multithrading
wrapper calss
Designing Star sign sy
how to take two diment
Class Variables and Me
insert image in databa
multiple radio buttons
h:panelgrid
network
Photoshop Digital Art
how can create panel g
jsf custom tags
storing text data to a
Take user input using
exampls
matches()
struts portlets
retreiving data from a
POI
jQuery To Hide the Div
average numbers
Struts 2
video streaming UDP
servlet
is error page
Beep Java
java mail with attachm
converting string to d
Create
read odd rows in excel
show current directory
MouseListener
midlet for loading pag
program in java which
JSP:File Input Paramet
how to call pl/sql fro
lucene search example
DOM
how to download jdk1.4
how to insert a new fi
Java Count Vowels in t
click
java bank examples
Cloudscape Tutorials
jpanel borderlayout
A
validate using picture
Javascript Mouse Trick
java web services
jtidy
'string variable in sw
ArrayList
jframe with jmenu
multipage
Define JSP
iBatis Stored Procedur
how to scale image usi
Passing Parameters in
delete data to text fi
binary recursio
Java String toLowerCase Example
Java String toCharArray Example
Java String substring Example
Java String indexOf Example
Java String startsWith Example
Java String hashCode Example
Java String matches Example
Java String length Example
Java String lastIndexOf Example
Java String isEmpty Example
Java String equalsIgnoreCase Example
Java String equals Example
Java String endsWith Example
Java String copyValueOf Example
Java String contentEquals Example
  EAI Articles
  Java Certification
Tell A Friend
Your Friend Name
Search Tutorials

 

 
 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

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 | 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.