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

Label

                         

A displayed label object is known as the Label. Most of the times label is used to demonstrate the significance of the other parts of the GUI. It helps to display the functioning of the next text field. A label is also restricted to a single line of text as a button. The example below shows the significance of Label.


In this example, we have added two labels in the applet as shown.

 

 

import java.awt.*; 
import java.applet.Applet; 
 
public class MyLabel extends Applet 
  public void init() { 
    add(new Label("label one"))
  add(new Label("label two", Label.RIGHT))
  

Here is the output: 

C:\newprgrm>javac MyLabel.java

C:\newprgrm>appletviewer MyLabel.html

 

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:
line break in javascri
sort collection
swings tutorial
Mysql and jsp
Date
struts file upload
Java Count Vowels in t
clear grid dojo
MPEG4/MP3 Streaming En
multiple ajax combo
upload files using ser
POST METHOD
How to deploy a java p
java cancel button
where we place plug-in
binary recursio
product of all even nu
Linux Caixa Mа???а??
java programm for arra
html:img
image map jsp program
dojo tree
generic
Janino -- an Embedded
to find the max of thr
Why Virtual Dedicated
ListIterator listItera
clear grid
FCKediter
activate
Fireworks Text Effects
selectOneRadio
Reading File into Byte
checkbox button enable
Refresh
pthread.h
database and netbeans
jpa spring
Photoshop Drawing 3D P
socket
writing data to file
compare two arraylist
set value to httpsessi
struts internationalis
procedure in mysql
Javascript Date and Ti
How to send sms to mob
Photoshop Photo Effect
java program that conv
Web Hosting Tutorials
Isertion Sort
login window
jdbc insert
user login servletsusi
request.setAttribute
static class
align checkboxlist in
calling a method from
WHERE Statement in SQL
Combattons la programm
Icon
substring
explanation
panelGrid
sample source code to
<c:forEach> in JSTL
Session in Servlet
Java and JSF database
synchronized
'string variable in sw
text color
persistent cookie
login screen swing
mysql-connector-java-3
how to execute update
java inheritance
how to pass same varia
pagination javascrip
JSP in error page
equilateral triangle p
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.