answersLogoWhite

0

import java.awt.*;

import java.awt.event.*;

public class DataEntry {

public static void main(String[] args) {

Frame frm=new Frame("DataEntry frame");

Label lbl = new Label("Please fill this blank:");

frm.add(lbl);

frm.setSize(350,200);

frm.setVisible(true);

frm.addWindowListener(new WindowAdapter(){

public void windowClosing(WindowEvent e){

System.exit(0);

}

});

Panel p = new Panel();

Panel p1 = new Panel();

Label jFirstName = new Label("First Name");

TextField lFirstName = new TextField(20);

Label jLastName =new Label("Last Name");

TextField lLastName=new TextField(20);

p.setLayout(new GridLayout(3,1));

p.add(jFirstName);

p.add(lFirstName);

p.add(jLastName);

p.add(lLastName);

Button Submit=new Button("Submit");

p.add(Submit);

p1.add(p);

frm.add(p1,BorderLayout.NORTH);

}

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

You are a web developer and you have to design a website for a company your task is to design a registration page layout for this website in HTML?

first of create alayout regarding the organisation requirements using the HTML controls


How do you write a c program to design calculator using loop?

Wr


Database Design?

form_title=Database Design form_header=Transform your company by incorporating a new database design. What program will the database be used with?=_ Please explain what you will be using the database for?="" Do you have a database that you're already using?= () Yes () No


How do you put a video from YouTube onto an iPod?

Download the video using YouTube Downloader. This program is free and no registration is required. Learn more or download this program at the related link below.


How do you design a computer using c plus plus?

C++ is used to write programs, not to design computers. If you want to design computers, use a CAD program specifically intended to aid in electronics design.


What is affine registration using mutual information?

Registration between related individuals using information shared by each.


ID Cards Creator Program?

Design multiple Plastic ID cards using ID Card Designer Software.


Could you write a java program that randomly generate a number plate for a car registration using the random method from Maths class eg NLF810?

yes, use for loop;;


Which websites offer assistance with brochure design?

If you have a program such as Microsoft Publisher, you can design these brochures with little or no assistance at all, as the program will walk you through the steps by using a template. I also found that the brighthub site offers some great information for designing brochures.


Where can one make some wardrobe designs?

"You can make a wardrobe design by hand using pencil and paper. Or if you are computer savvy, you can use a program like photoshop or even paint to design wardrobes."


What are age restrictions for using sites that require registration?

Minimum Age for RegistrationThe minimum age for using sites that require registration is usually 13.


Find out a car registration number using the chassis number?

You can not find a car registration number using the chassis number. You can only identify it by using the VIN, or vehicle identification number.