Professional Documents
Culture Documents
LABORATORY EXERCISE
nd
2 SEMESTER: AY: 2021 – 2022
Name: ________________________ Schedule: __________________________ Score: ________
Subject: IPT101 Int. Prog. & Tech. 1 Instructor: _________________________ Date: _________
LABORATORY EXERCISE 1
JOptionPane: Easy Input, Output with Dialog Box
Learning Objectives
To determine how JOptionPane use in input and output of information.
To understand the use of JOptionPane f Java NetBeans.
Background
NetBeans have similarities of GUI (Graphical User Interface) to the other application, their
differences are their architecture and usage, because NetBeans are normally use for Java
Development.
Materials/Resources
PC/Internet
Pen
Java (NetBeans / Alice)
Web Browser (Internet Explorer, Mozilla, Google Chrome, and Etc.) Word-processing
program
Laboratory Activity
Import javax.swing.JOptionPane;
QUESTIONS
3. Base of the given pseudocode, what did you observe? And why?
- Base of the given pseudocode, i observe that the program will not
run just because it need to check it and analyze the program so
that the placement of variables are in the right place so that it will
run.
Ramon Magsaysay Memorial College
LABORATORY EXERCISE
nd
2 SEMESTER: AY: 2021 – 2022
Name: ________________________ Schedule: __________________________ Score: ________
Subject: IPT101 Int. Prog. & Tech. 1 Instructor: _________________________ Date: _________
Output / Results
Ramon Magsaysay Memorial College
LABORATORY EXERCISE
nd
2 SEMESTER: AY: 2021 – 2022
Name: ________________________ Schedule: __________________________ Score: ________
Subject: IPT101 Int. Prog. & Tech. 1 Instructor: _________________________ Date: _________
Conclusion
JOptionPane makes it easy to pop up a standard dialog box that prompts users for a value or informs
them of something. The JOptionPane class is used to provide standard dialog boxes such as message
dialog box, confirm dialog box and input dialog box. These dialog boxes are used to display information
or get input from the user.