Language:EN
Slides: 91
Words: 4566
Rating : ⭐⭐⭐⭐⭐
Price: $10.99
Page 1 Preview
the dialog returns null pearson education

The dialog returns null pearson education

Applicatio ns—Part 1

C H A P T E R
11
GUI

provide interaction with the user.

GUI’s accept input from:

present data to the user

allow interaction with the application.

allows creation of applications and applets with

GUI components.

Each version of Java for a particular operating

system has its own set of peer classes.

system.

can offer only components that are common to all the operating systems that support Java.

JFC, AWT, Swing

Swing components can be easily extended.

javax.swing and java.awt

In an application that uses Swing classes, it is necessary to use the following statement:

In an application that uses an AWT class, it is necessary to use the following statement.

import java.awt.*;

displays a message to the user or requests input.

A variety of dialog boxes can be displayed

user for input.

Confirm Dialog This is a dialog box that asks

The first argument can be a reference to a graphical

component.

The second argument is the message that is to be

displayed.

Message Dialogs

JOptionPane.QUESTION_MESSAGE

JOptionPane.PLAIN_MESSAGE

Copyright © 2015 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

The dialog boxes displayed by the

JOptionPane class are modal dialog boxes.

Input Dialogs

An input dialog is a quick and simple way to ask the user to enter data.

Input Dialogs

showInputDialog(Component parent, Object message, String title,
int messageType)

You are viewing 1/3rd of the document.Purchase the document to get full access instantly

Immediately available after payment
Both online and downloadable
No strings attached
How It Works
Login account
Login Your Account
Place in cart
Add to Cart
send in the money
Make payment
Document download
Download File
img

Uploaded by : Monica Anderson

PageId: ELI7556A69