CS 112 - Fall 2012, Lab 09 Haohan Zhu. Boston University Slideshow Title Goes Here CS 112 - Fall 2012, Lab 09 2 11/20/2015 GUI - Graphical User Interface.

Slides:



Advertisements
Similar presentations
Introduction to Swing Components Chapter 14. Part of the Java Foundation Classes (JFC) Provides a rich set of GUI components Used to create a Java program.
Advertisements

Java Software Development Paradigm Lecture # 12. Basics of GUI.
User Interface Design CSCI 201L Jeffrey Miller, Ph.D. HTTP :// WWW - SCF. USC. EDU /~ CSCI 201 USC CSCI 201L.
Fall 2007CS 225 Graphical User Interfaces Event Handling Appendix C.
Lecture 16: GUI programming JFrame windows (p.247) Containers and layout managers (p.290) Inheriting GUI components (p.330) Chapter 12: GUI programming.
Understanding SWING Architecture CS 4170 UI Design Hrvoje Benko Oct. 9, 2001.
Creating a GUI with Swing. Introduction Very useful link: Swing – is a part of JFC (Java Foundation.
CPSC150 Week 12 Graphical User Interfaces Chapter 11.
GUI Programming in Java Tim McKenna GUI Programming Concepts l conventional programming: sequence of operations is determined by the program.
Introduction to Java Swing “We are the sultans of swing” – Mark Knopfler.
CS3 - AWT/Swing1 The Abstract Windowing Toolkit Since Java was first released, its user interface facilities have been a significant weakness –The Abstract.
A.k.a. GUI’s.  If you want to discuss your Lab 2 grade come see me this week. ◦ Office: 436 ERB. One hour prior to class ◦ Open to Appointments MWF 
GUI Programming in Java
Java Swing © Walter Milner 2005: Slide 1 Java Swing Walter Milner.
Java Swing, Events and MVC Optional Readings: Eckel’s Thinking in Java: Chap 14 (
Introduction to GUI in Java 1. Graphical User Interface Java is equipped with many powerful,easy to use GUI component such as input and output dialog.
Object Oriented Programming Ders 11: Interfaces Mustafa Emre İlal
MIT AITI 2003 Lecture 17. Swing - Part II. The Java Event Model Up until now, we have focused on GUI's to present information (with one exception) Up.
Introduction to Swing Components Chapter 14.  Part of the Java Foundation Classes (JFC)  Provides a rich set of GUI components  Used to create a Java.
Java Programming: Advanced Topics 1 Common Elements of Graphical User Interfaces Chapter 6.
GUI Chapter 10 Graphics context and objects Creating a window based application JFrame, JTextField, JButton Containers and Controls Graphics commands Layout.
Chapter 9: Visual Programming Basics Object-Oriented Program Development Using Java: A Class-Centered Approach.
GUIs in Java Swing, Events CS2110, SW Development Methods Readings: MSD, Chapter 12 Lab Exercise.
1 Outline 1 Introduction 2 Overview of Swing Components 3 JLabel 4 Event Handling 5 TextFields 6 How Event Handling Works 7 JButton 8 JCheckBox and JRadioButton.
CS Lecture 00 Swing overview and introduction Lynda Thomas
Object Oriented programming Instructor: Dr. Essam H. Houssein.
ITEC 109 Lecture 27 GUI. GUIs Review Sounds –Arrays hold sample values –Creating a keyboard –Sound effects Homework 3 –The big two –Due after break –Lab.
SWING 101. IF YOU GET LOST - IMPORTANT LINKS  Swing articles:
CSCI Swing1 The Abstract Windowing Toolkit Since Java was first released, its user interface facilities have been a significant weakness –The Abstract.
GUI Basics. What is GUI? A graphical user interface (GUI) is a type of user interface item that allows people to interact with programs in more ways than.
1 / 67 COP 3503 FALL 2012 SHAYAN JAVED LECTURE 14 Programming Fundamentals using Java 1.
Swing / Session1 / 1 of 30 Module Introduction Distributed Computing in Java.
Java GUI. Graphical User Interface (GUI) a list a button a text field a label combo box checkbox.
CS 4244: Internet Programming User Interface Programming in Java 1.0.
Swing. Introduction to Swing What is Swing? “ Swing is a diverse collection of lightweight components that can be used to build sophisticated user interfaces.”
5-Jan-16 R Ramesh Swing. 5-Jan-16 R Ramesh An Introduction to Java Foundation Classes (JFC) A suite of libraries to assist programmers create enterprise.
Review_6 AWT, Swing, ActionListener, and Graphics.
Basics of GUI Programming Chapter 11 and Chapter 22.
1 Chapter 16: Creating Windows. 2 Basics of GUI Programming How to create a Window. TryWindow.java You always need a JFrame component before creating.
Creating a Window. A basic window in Java is represented by an object of the class Window in the package java.awt.
Ajmer Singh PGT(IP) JAVA IDE Programming - I. Ajmer Singh PGT(IP) GUI (Graphical User Interface) It is an interface that uses a graphic entities along.
Sadegh Aliakbary Sharif University of Technology Fall 2011.
Java Swing, Events Readings: Just Java 2: Chap 19 & 21, or Eckel’s Thinking in Java: Chap 14 Slide credits to CMPUT 301, Department of Computing Science.
1CS480: Graphical User Interfaces. Dario Salvucci, Drexel University. Lecture 3: Layout Basics.
Chapter 10 - Writing Graphical User Interfaces1 Chapter 10 Writing Graphical User Interfaces.
Graphical User Interface (GUI)
CIS 270—Application Development II Chapter 11—GUI Components: Part I.
Java Swing and Events Chris North cs3724: HCI. Presentations nadine edwards, steve terhar Vote: UI Hall of Fame/Shame?
Introduction to Swing Mr. Crone. What is Swing? a collection of pre-made Java classes used to create a modern graphical user interface.
1 A Quick Java Swing Tutorial. 2 Introduction Swing – A set of GUI classes –Part of the Java's standard library –Much better than the previous library:
Introduction to Swing Mr. Crone. What is Swing? a collection of pre-made Java classes used to create a modern graphical user interface.
Chapter 6 Building Java GUIs. MVC Model View Controller The model passes its data to the view for rendering The view determines which events are passed.
Java Swing. Note - this presentation.. often needs to refer to source code which is too big to put on a slide So the source code is in a separate Word.
GUI 1: JFC and Swing Basics OOP tirgul No
Java Swing What is swing? Swing is a ”Lightweight” GUI ToolKit for Java Different from AWT / SWT Toolkits for GUIs Few lines of code to produce GUI elements.
A Quick Java Swing Tutorial
Graphical User Interfaces
Provision for GUIs in Java
Provision for GUIs in Java
Graphical user interface with Swing by jose maria gonzalez pinto
University of Central Florida COP 3330 Object Oriented Programming
A Quick Java Swing Tutorial
Ellen Walker Hiram College
Event Driven Programming and Graphical User Interface
GUIS: Graphical User Interfaces
תכנות מכוון עצמים בשפת JAVA
Week 8 Swing NetBeans GUI Builder
A Quick Java Swing Tutorial
Advanced Programming in Java
Graphical User Interface
Presentation transcript:

CS Fall 2012, Lab 09 Haohan Zhu

Boston University Slideshow Title Goes Here CS Fall 2012, Lab /20/2015 GUI - Graphical User Interface  JFC - Java Foundation Classes  An API for providing a graphical user interface (GUI) for Java programs.  Include AWT, Swing and Java 2D.

Boston University Slideshow Title Goes Here CS Fall 2012, Lab /20/2015 GUI widget toolkit  Swing  Primary Java GUI widget toolkit  AWT  Original platform-independent windowing, graphics, and user-interface widget toolkit.  SWT

Boston University Slideshow Title Goes Here CS Fall 2012, Lab /20/2015 Swing  Top-Level Containers  JFrame, JDialog, and Japplet

Boston University Slideshow Title Goes Here CS Fall 2012, Lab /20/2015 Swing  General-Purpose Containers  JPanel, JScrollPane, JSplitPane, and so on  Special-Purpose Containers  JInternalFrame, JLayeredPane and Root pane

Boston University Slideshow Title Goes Here CS Fall 2012, Lab /20/2015 JPanel  JPanel()  Creates a new JPanel with a double buffer and a flow layout.  JPanel(LayoutManager layout)  Create a new buffered JPanel with the specified layout manager  setLayout(LayoutManager layout)

Boston University Slideshow Title Goes Here CS Fall 2012, Lab /20/2015 LayoutManage  Interface  FlowLayout  BorderLayout  GridLayout  …

Boston University Slideshow Title Goes Here CS Fall 2012, Lab /20/2015 Jcomponent  All Swing components whose names begin with "J" descend from the JComponent class  JButton  JCheckBox  JComboBox  JRadioButton  JTextField  Jtable  …

Boston University Slideshow Title Goes Here CS Fall 2012, Lab /20/2015 Jbutton  ActionListener  Interface  ActionListener.html ActionListener.html  actionPerformed(ActionEvent e)  ActionEvent  Class  Click a button, create an event

Boston University Slideshow Title Goes Here CS Fall 2012, Lab /20/2015 JOptionPane  JOptionPane.showMessageDialog();

Boston University Slideshow Title Goes Here CS Fall 2012, Lab /20/2015 Practice  Finish the code  Learn how to write a GUI