AWT Tutorials



Share on Google+Share on Google+

AWT Tutorials
1 Answer(s)      6 years and 8 months ago
Posted in : Applet

How can i create multiple labels using AWT????

View Answers

February 16, 2011 at 11:37 AM

Java Applet Example multiple labels


   import javax.swing.*;
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;

    public class AppletExample extends Applet implements ActionListener {
      TextField input1,input2,output;
      Label label1,label2,label3;
      Button b1;
      int num1,num2, sum = 0;
      public void init(){
        label1 = new Label("Number 1: ");
        input1 = new TextField(5);
        label2 = new Label("Number 2: ");
        input2 = new TextField(5);
        label3 = new Label("Sum : ");
        output = new TextField(10);
        b1 = new Button("Add");
      public void actionPerformed(ActionEvent ae){
          num1 = Integer.parseInt(input1.getText());
          num2 = Integer.parseInt(input2.getText());
          sum = num1+num2;
        catch(NumberFormatException e){


<APPLET ALIGN="CENTER" CODE="AppletExample.class" width = "260" height = "200"></APPLET>


Related Tutorials/Questions & Answers:
AWT Tutorials
AWT Tutorials  How can i create multiple labels using AWT????   Java Applet Example multiple labels 1) import javax.swing.*; import java.applet.*; import java.awt.*; import
AWT  How to set size of button in awt
JDBC in awt applet  how to display data using JDBC in awt/applet
Java AWT Applet example  how to display data using JDBC in awt/applet
JDBC and AWT to display data  how to display data using JDBC in awt/applet
JDBC in awt  how to display data using JDBC in awt/applet
AWT basics
? Here we have provided you the links to our AWT tutorials. AWT stands... good GUI for windows applications. Here are the links to AWT Tutorials: AWT... AWT tutorials Thanks
AWT & SWING  What is diffennce between AWT & SWING
AWT programmes - Swing AWT
AWT programmes  I need few programs for menus in AWT. how to open a filed dialog window, and how to save a image in the save window when we press... has all AWT programms which must open,save and make changes to a particular
AWT-swings tutorial - Swing AWT
AWT-swings tutorial  hello sir, i am learnings swings and applets.. i want some tutorials and some examples related to swings.. thank you sir..waiting for your answer.  Hi friend, I am sending you a link
awt in java
awt in java  using awt in java gui programming how to false the maximization property of a frame
Java AWT
Java AWT  What interface is extended by AWT event listeners
awt jdbc
awt jdbc  programm in java to accept the details of doctor (dno,dname,salary)user & insert it into the database(use prerparedstatement class&awt
tutorials - EJB
ejb tutorial for beginners free  Can anyone give me the reference of EJB tutorials for beginners
more information,Examples and Tutorials on Swing,AWT visit to :
awt - Swing AWT
awt  dear sir my proble is , i have applet code which is stock market chart this code made using "AWT" . in this chart one textbox when user.../java/awt/ Thanks
Photoshop tutorials
Photoshop tutorials  Hi, Where to learn Photoshop? Thanks   Hello, Check Photoshop tutorials home page. Thanks
Java AWT
Java AWT  What is meant by controls and what are different types of controls in AWT
JSP Tutorials
JSP Tutorials  Hi, I am confident in core java. I have learned if from Now I want to learn JSP. Can anyone tell me JSP tutorials url... Now you can learn Java Server pages at our JSP Tutorials section
awt swings - Swing AWT
awt swings  hello sir, My requirement is to insert captured image from cam onto a frame and from that place i hve to save it in the database(MySql).its urgent is a part of my project..if code is available
java tutorials
java tutorials  Hi, Much appreciated response. i am looking for the links of java tutorials which describes both core and advanced java concepts in detail with examples in a systematic order.few links i found are discussing
other tutorials, such as C++: Annotations by Frank Brokken and Karel Kubat...; The CPlusPlus Language Tutorial These tutorials explain the C++ language.... We have a series of online courses and tutorials that will teach you either
JSP Tutorials - Page 3
JSP Tutorials - Page 3
Photoshop - Photoshop Tutorials
Photoshop - Photoshop Tutorials
JAVA AWT BASE PROJECT  suggest meaningful java AWT-base project
java awt calender
java awt calender  java awt code for calender to include beside a textfield
awt list item* - Swing AWT
awt list item*  how do i make an item inside my listitem not visible  Hi friend, import java.awt.*; import java.awt.event.... information. Thanks
Java AWT event hierarchy
Java AWT event hierarchy  What class is the top of the AWT event hierarchy?  The java.awt.AWTEvent class is the highest-level class in the AWT event-class hierarchy
Roseindia Tutorials website Tutorials brings you the best tutorials for different computing platforms and programming languages like Java Tutorials, JSP Tutorials, Hibernate Tutorials, Struts Tutorials, JSF Tutorials, MySQL Tutorials, Spring
java - Swing AWT
What is Java Swing AWT  What is Java Swing AWT


Advertisement null