GUI and Event-Driven Programming - Purdue University
Chapter 14
GUI and Event-Driven Programming
CS 180 Prof. Sunil Prabhakar Department of Computer Science Purdue University
Objectives
This week we will discuss GUI development
Define a subclass of JFrame to implement a customized frame window.
Write event-driven programs Arrange GUI objects on a window using layout
managers and nested panels Write GUI application programs that use
JButton, JLabel, ImageIcon, JTextField, JTextArea, JCheckBox, JRadioButton, JComboBox, JList, and JSlider objects from the javax.swing package
menus mouse events
Graphical User Interface
In Java, GUI-based programs are implemented by using classes from the javax.swing and java.awt packages.
The Swing classes provide greater compatibility across different operating systems. They are fully implemented in Java, and behave the same on different operating systems.
3
Sample GUI Objects
Various GUI objects from the javax.swing package.
4
Subclassing JFrame
To create a customized frame window, we define a subclass of the JFrame class.
The JFrame class contains rudimentary functionalities to support features found in any frame window.
5
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- graphical user interfaces
- pyautogui documentation
- chapter14 graphical user interfaces
- using microsoft visual studio to create a graphical user
- gui and event driven programming purdue university
- gui input and output miami university
- chapter 13 turtle graphics
- creating graphical user interface gui programs with
- ese 150 lab 12 user interface
Related searches
- health and wellness event ideas
- sign and drive event 2019
- current event questions and answers
- current event trivia and answers
- programming and coding for beginners
- java programming problems and solutions
- programming languages and their uses
- introduction to java programming and data structures
- types and programming language pdf
- owl purdue edu research and citation mla
- adverse event and adverse reaction
- java programming questions and answers