SlideShare a Scribd company logo
Event Handling in Netbeans IDE: 
Area of Triangle, Square and Rectangle 
User will input the following: 
o Length and Width of Rectangle 
o Side of Square 
o Base and Height of a Triangle 
The Program should display all the computed areas: 
Rectangle 
Length: meter 
Width: meter 
Square 
Side: meter 
Triangle 
Base: meter 
Height: meter 
COMPUTE 
Area of Rectangle: _____________ meter squared 
Area of Square: __________ meter squared 
Area of Triangle: ________ meter squared 
2. If your name is type, and the Enter button is clicked, it will display in the top, if not your name 
is being type, the display would be “UNIDENTIFIED” 
ENTER NAME: 
ANNA 
ANNA 
ENTER
ENTER NAME: 
UNIDENTIFIED 
MARY 
ENTER 
3. Create a Product user interface like the example below: 
Allows user to input the QUANTITY. 
o When the TOTAL button is clicked it will multiply the quantity with the price and get the total 
sum. 
o When the LESS button is clicked show the percentage of discount 
TOTAL =< 10K will get 5% discount 
TOTAL =<20K and >10k will get 10% discount 
TOTAL =< 30K and >20k will get 15% discount 
TOTAL >30k will get 20% discount 
o When the DISCOUNTED button is clicked the discounted amount is displayed 
PRODUCT ORDER 
ITEM PRICE QUANTITY AMOUNT 
VCD 1000 
DVD 3000 
TV 5000 
RADIO 500 
STEREO 2000 
1 
4 
3 
2 
1 
TOTAL 
LESS 
DISCOUNTED
PRODUCT ORDER 
ITEM PRICE QUANTITY AMOUNT 
VCD 1000 
DVD 3000 
TV 5000 
RADIO 500 
STEREO 2000 
1 
4 
3 
2 
1 
TOTAL 
LESS 
DISCOUNTED 
1000 
12000 
15000 
1000 
2000 
31000 
20% 
24000

More Related Content

PPT
Joke task
PPTX
Mobile photo
PDF
Alvin Texas Homes Market Report
PPTX
How to create a Pick a Path Story using Powerpoint
PPT
Title Bar Test
PPTX
Lesson One Fourth Quarter First Year High School Running A Presentation
PPTX
G+instructions v02
PPTX
Print screens for final cut pro
Joke task
Mobile photo
Alvin Texas Homes Market Report
How to create a Pick a Path Story using Powerpoint
Title Bar Test
Lesson One Fourth Quarter First Year High School Running A Presentation
G+instructions v02
Print screens for final cut pro

Similar to Event handling in netbeans ide (16)

DOC
Visual basic
PDF
This application is used to keep track of inventory information. A c.pdf
PDF
THE CUBE: Antique Store
DOCX
Cis 355 ilab 4 of 6
DOCX
CIS/355 ilab 4 of 6
DOCX
Final report mobile shop
PDF
Notes netbeans
PDF
The Cube - Class XII Project
DOCX
Automated Restaurant System (Command Design Pattern)PROBLEMY.docx
PPT
Visual basic intoduction
PPTX
Computer Programming Code Sample
DOCX
Bca project sample asp.net project topic for bca on small mobile shop system.
PPTX
Screen based controls in HCI
PDF
ARabia hossain project report.pdf
DOC
Clothing Store and Management System
DOCX
Basic calculator tutorial
Visual basic
This application is used to keep track of inventory information. A c.pdf
THE CUBE: Antique Store
Cis 355 ilab 4 of 6
CIS/355 ilab 4 of 6
Final report mobile shop
Notes netbeans
The Cube - Class XII Project
Automated Restaurant System (Command Design Pattern)PROBLEMY.docx
Visual basic intoduction
Computer Programming Code Sample
Bca project sample asp.net project topic for bca on small mobile shop system.
Screen based controls in HCI
ARabia hossain project report.pdf
Clothing Store and Management System
Basic calculator tutorial
Ad

More from learnt (20)

PPTX
Information System within the Organization
DOCX
Quiz2FinalPeriod
PPTX
Database Design
DOCX
Quiz1FinalsIS
PPTX
EBuss
DOCX
Gantt- Pert Chart Activities
DOCX
Quiz1FinalPeriod
PPTX
PertGanttchart
PPTX
Feasible
PPTX
Html1
DOCX
Quiz1Finals
PPTX
KindsofSites
PPTX
InformationSecurity
DOCX
Quiz3midterm
PPTX
modelingtools
DOCX
Decision exercises
DOCX
Kwiz2 midterm
PPTX
Modelingprogramstructure
DOCX
Quiz2 midterm
PPTX
Web browsers
Information System within the Organization
Quiz2FinalPeriod
Database Design
Quiz1FinalsIS
EBuss
Gantt- Pert Chart Activities
Quiz1FinalPeriod
PertGanttchart
Feasible
Html1
Quiz1Finals
KindsofSites
InformationSecurity
Quiz3midterm
modelingtools
Decision exercises
Kwiz2 midterm
Modelingprogramstructure
Quiz2 midterm
Web browsers
Ad

Event handling in netbeans ide

  • 1. Event Handling in Netbeans IDE: Area of Triangle, Square and Rectangle User will input the following: o Length and Width of Rectangle o Side of Square o Base and Height of a Triangle The Program should display all the computed areas: Rectangle Length: meter Width: meter Square Side: meter Triangle Base: meter Height: meter COMPUTE Area of Rectangle: _____________ meter squared Area of Square: __________ meter squared Area of Triangle: ________ meter squared 2. If your name is type, and the Enter button is clicked, it will display in the top, if not your name is being type, the display would be “UNIDENTIFIED” ENTER NAME: ANNA ANNA ENTER
  • 2. ENTER NAME: UNIDENTIFIED MARY ENTER 3. Create a Product user interface like the example below: Allows user to input the QUANTITY. o When the TOTAL button is clicked it will multiply the quantity with the price and get the total sum. o When the LESS button is clicked show the percentage of discount TOTAL =< 10K will get 5% discount TOTAL =<20K and >10k will get 10% discount TOTAL =< 30K and >20k will get 15% discount TOTAL >30k will get 20% discount o When the DISCOUNTED button is clicked the discounted amount is displayed PRODUCT ORDER ITEM PRICE QUANTITY AMOUNT VCD 1000 DVD 3000 TV 5000 RADIO 500 STEREO 2000 1 4 3 2 1 TOTAL LESS DISCOUNTED
  • 3. PRODUCT ORDER ITEM PRICE QUANTITY AMOUNT VCD 1000 DVD 3000 TV 5000 RADIO 500 STEREO 2000 1 4 3 2 1 TOTAL LESS DISCOUNTED 1000 12000 15000 1000 2000 31000 20% 24000