Introduction p. 1 JFC Architecture p. 5 Introduction to JFC p. 7 The JFC 1.2 Extension p. 8 Swing p. 9 Drag and Drop p. 16 Accessibility p.

Similar documents
Swing. By Iqtidar Ali

Java IDE Programming-I

Swing UI. Powered by Pentalog. by Vlad Costel Ungureanu for Learn Stuff

Introduction to the JAVA UI classes Advanced HCI IAT351

Is image everything?

Chapter 12 GUI Basics

Supporting Materials

Lecture 18 Java Graphics and GUIs

Introduction to Graphical Interface Programming in Java. Introduction to AWT and Swing

Handout 14 Graphical User Interface (GUI) with Swing, Event Handling

CSE 143. Event-driven Programming and Graphical User Interfaces (GUIs) with Swing/AWT

Chapter 6: Graphical User Interfaces

Tool Kits, Swing. Overview. SMD158 Interactive Systems Spring Tool Kits in the Abstract. An overview of Swing/AWT

CSE 331 Software Design & Implementation

Graphical User Interface (GUI) components in Java Applets. With Abstract Window Toolkit (AWT) we can build an applet that has the basic GUI

CS 251 Intermediate Programming GUIs: Components and Layout

Java Graphical User Interfaces

PROGRAMMING DESIGN USING JAVA (ITT 303) Unit 7

Summary Chapter 25 GUI Components: Part 2

Chapter 13 GUI Basics. Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved.

China Jiliang University Java. Programming in Java. Java Swing Programming. Java Web Applications, Helmut Dispert

Chapter 12 GUI Basics. Motivations. The design of the API for Java GUI programming

John Zukowski's Definitive Guide to Swing for Java 2

The Abstract Windowing Toolkit. Java Foundation Classes. Swing. In April 1997, JavaSoft announced the Java Foundation Classes (JFC).

CS111: PROGRAMMING LANGUAGE II

CSE 331. Event-driven Programming and Graphical User Interfaces (GUIs) with Swing/AWT

JTcl and Swank. Bruce A. Johnson, Tom Poindexter, & Dan Bodoh. What s new with Tcl and Tk on the JVM. Wednesday, October 26, 11

Advanced Java Programming. Swing. Introduction to Swing. Swing libraries. Eran Werner, Tel-Aviv University Summer, 2005

Announcements. Introduction. Lecture 18 Java Graphics and GUIs. Announcements. CSE 331 Software Design and Implementation

WIMP Elements. GUI goo. What is WIMP?

Contents Introduction 1

CSE 331. Event- driven Programming and Graphical User Interfaces (GUIs) with Swing/AWT

Rizvi College of Arts, Science & Commerce Bandra (W), Mumbai Teaching Plan Academic Year

JBuilder 8.0 JFC and Swing Programming

Swing. Component overview. Java UI, summer semester 2017/2018 1

Part 3: Graphical User Interface (GUI) & Java Applets

Packages: Putting Classes Together

Widgets. Overview. Widget. Widgets Widget toolkits Lightweight vs. heavyweight widgets Swing Widget Demo

Graphics. Lecture 18 COP 3252 Summer June 6, 2017

Computer Science 210: Data Structures. Intro to Java Graphics

Publisher : O'Reilly Pub Date : November 2002 ISBN : Pages : 1278

Learn Java Programming, Dr.Hashamdar. Getting Started with GUI Programming

BASICS OF GRAPHICAL APPS

GUI Basics. Object Orientated Programming in Java. Benjamin Kenwright

Graphical User Interfaces (GUIs)

Java 1.9 Swing Index

CSE 331 Software Design & Implementation

Java: Graphical User Interfaces (GUI)

2010 가을학기부산대학교정보컴퓨터공학부 OVERVIEW OF GUI PROGRAMMING

All the Swing components start with J. The hierarchy diagram is shown below. JComponent is the base class.

MODEL UPDATES MANIPULATES USER

Graphical User Interface (GUI)

Java 1.8 Swing with Eclipse Oxygen Index

Java 1.8 Swing with Eclipse Mars Index

Java 1.8 Swing with Eclipse Neon Index

Java 11 Swing with Eclipse Index

Basics of programming 3. Java GUI and SWING

Java 11 Swing Index. Section Title Page

2110: GUIS: Graphical User Interfaces

core 2 Basic Swing GUI Controls in Java 2

core programming Basic Swing GUI Controls in Java Marty Hall, Larry Brown

GUI Design. Overview of Part 1 of the Course. Overview of Java GUI Programming

Java Swing. based on slides by: Walter Milner. Java Swing Walter Milner 2005: Slide 1

Introduction to Graphical User Interfaces (GUIs) Lecture 10 CS2110 Fall 2008

Index SELF-STUDY. Symbols

Containers. Atomic Components. Containment Hierarchy. Example Example 3.3 (revisited) Example DemoSwing.java

CS410G: GUI Programming. The Model/View/Controller Pattern. Model. Controller. View. MVC is a popular architecture for building GUIs

user-friendly and easy to use.

Java Swing. Lists Trees Tables Styled Text Components Progress Indicators Component Organizers

CS 4300 Computer Graphics

GUI Components Continued EECS 448

Top-Level Containers

Lab 4. D0010E Object-Oriented Programming and Design. Today s lecture. GUI programming in

Graphical User Interfaces

Control Flow: Overview CSE3461. An Example of Sequential Control. Control Flow: Revisited. Control Flow Paradigms: Reacting to the User

CPS122 Lecture: Graphical User Interfaces and Event-Driven Programming

Visit for more.

Event Driven Programming

Widget. Widget is a generic name for parts of an interface that have their own behaviour. e.g., buttons, progress bars, sliders, drop-down

1.00 Lecture 14. Lecture Preview

Graphical User Interfaces. Swing. Jose Jesus García Rueda

Class 14: Introduction to the Swing Toolkit

Certified Eclipse Bundle

Object Oriented Programming

Window Interfaces Using Swing Objects

GUI Programming. Chapter. A Fresh Graduate s Guide to Software Development Tools and Technologies

Certified Eclipse Bundle

INTRODUCTION TO (GUIS)

Graphical User Interfaces. Comp 152

SD Module-1 Advanced JAVA

Human-Computer Interaction IS4300

Widgets. Widgets Widget Toolkits. 2.3 Widgets 1

SD Module-1 Advanced JAVA. Assignment No. 4

Discipline : MCA. Semester : IV. Subject : Advanced Java Programming. Lesson Plan Duration : 15 weeks (from January 2018 to April 2018)

Better GUI Controls Originals of Slides and Source Code for Examples:

Week Chapter Assignment SD Technology Standards. 1,2, Review Knowledge Check JP3.1. Program 5.1. Program 5.1. Program 5.2. Program 5.2. Program 5.

CSE 1325 Project Description

Graphical interfaces & event-driven programming

Outline. Topic 9: Swing. GUIs Up to now: line-by-line programs: computer displays text user types text AWT. A. Basics

Topic 9: Swing. Swing is a BIG library Goal: cover basics give you concepts & tools for learning more

Transcription:

Introduction p. 1 JFC Architecture p. 5 Introduction to JFC p. 7 The JFC 1.2 Extension p. 8 Swing p. 9 Drag and Drop p. 16 Accessibility p. 17 MVC Architecture p. 19 The MVC Architecture p. 20 Combined View and Control in JFC p. 21 Factory Design Pattern p. 25 Singleton Pattern p. 31 JComponent p. 35 Top of the JFC Visual Component Hierarchy p. 36 Client Properties p. 37 ToolTip Support p. 38 Border Property p. 39 Size Preferences p. 41 Keystroke Handling p. 41 Scrolling Support p. 46 Focus Transversal Support p. 46 Property Listener Support p. 48 Pluggable Look-and-Feel Support p. 50 Miscellaneous Features p. 51 JFC Programming Techniques p. 55 Thread Safety Requirements of JFC p. 56 The Repaint Manager p. 59 Actions p. 64 JFC Components p. 73 Basic Components p. 75 Separator p. 76 Borders p. 76 Icons p. 106 Label Components p. 110 The Button Hierarchy p. 121 The ButtonModel Interface p. 122 JFC Button Hierarchy p. 128 Simple Buttons: The JButton Class p. 131 Using Actions with Buttons p. 136 JToggleButton p. 141 Check Boxes p. 145

Radio Buttons p. 147 Text Components p. 153 The JTextField Class p. 154 The JPasswordField Class p. 157 The JTextArea Class p. 160 Document Model p. 164 The JEditorPane Class p. 173 Frame Windows p. 189 The JFrame Class p. 190 JApplet p. 206 The JWindow Class p. 208 Menus and Toolbars p. 215 Creating Menus p. 216 Types of Menu Items p. 228 Placing Menus p. 247 Creating Toolbars p. 261 JList, JComboBox, and Bound Controls p. 267 Rubber Stamp Drawing p. 268 Using the JList Class p. 272 Combo Boxes p. 288 Bounded Components p. 299 The JSlider Control p. 304 Tree Component p. 321 Using the JTree Component p. 322 The swing, tree Package p. 327 Table Component p. 359 Table Elements p. 360 A Simple Table p. 361 Table Selection Models p. 365 Column Creation and Resizing Modes p. 367 Models and Support Classes Used by the JTable Class p. 369 Scrolling a Table p. 406 Container Components p. 409 JPanel and Box Classes p. 411 The JPanel Class p. 412 The Box Class p. 413 The JBox Class p. 427 JTabbedPane Class p. 431 JTabbedPane Class Usage p. 432 Scrolling Components p. 445 The JViewport Class p. 446

The JScrollPane Class p. 449 JComponent Scrolling Support p. 456 Split Pane p. 461 The JSplitPane Class p. 462 Internal Frames p. 483 The JInternalFrame Class p. 484 The JDesktopPane Class p. 490 Integrating JInternalFrame and JDesktopPane Usage p. 493 Dialog Boxes p. 503 JOptionPane p. 505 Common JOptionPane Configuration p. 506 Predefined Dialog Boxes p. 509 Rolling Your Own p. 520 Internal Frame Versions p. 529 Choice Dialog Boxes p. 535 The JFileChooser Class p. 536 The JColorChooser Class p. 557 JDialog p. 571 JDialog Configuration p. 572 JDialog Modality p. 573 Closing Options p. 574 JDialog Class Usage Example p. 574 Progress Monitor p. 587 Using the ProgressMonitor p. 588 Example of ProgressMonitor Usage p. 590 Extending JFC Components p. 595 Extending Existing Components p. 597 The Pluggable Look-and-Feel (.plaf) Architecture p. 598 Creating a Custom Look-and-Feel p. 613 Customizing Existing Look-and-Feels p. 614 Creating a Look-and-Feel p. 635 The Multiplexing Look-And-Feel p. 675 Building a Custom Component p. 679 Creating a Custom Component p. 680 Advanced JFC Concepts p. 715 ToolTips and Debug Graphics p. 717 ToolTips Basics p. 718 ToolTips Example p. 721 Using Debug Graphics p. 728 Focus Managers p. 735 About Focus and Focus Managers p. 737

How Swing's Default Focus Manager Works p. 737 Managing Focus from Components p. 738 Using the Focus Manager p. 752 Writing a Custom Focus Manager p. 754 Custom Cursors p. 763 Toolkit Methods for Custom Cursors p. 764 Component Methods for Cursors p. 765 Example Using a Custom Cursor p. 765 Overview of CustomCursorDemo Example p. 767 Creating Images for Custom Cursors p. 769 Undo and Redo p. 771 Supporting Basic Undo Operations p. 772 A Basic Undo Example p. 775 Supporting Undo with Swing Text Components p. 783 Keyboard Navigation p. 789 About Accelerators, Mnemonics, and Shortcuts p. 790 Using Mnemonics p. 791 Using Menu Accelerators p. 795 Using Shortcuts (Hot Keys) p. 799 Keyboard Navigation with Action Objects p. 803 Using Mnemonics with Labels p. 807 Pluggable Look-and-Feel p. 809 Overview of Pluggable Look-and-Feel p. 810 Using the UI Manager p. 813 Timers p. 837 Timer Basics p. 838 Example Using Periodic and One-Shot Timers p. 841 Example Illustrating Timer Resolution p. 847 Swing Utilities p. 855 The SwingUtilities Class p. 856 The SwingConstants Class p. 863 Accessibility p. 865 About Accessibility and Assistive Technologies p. 866 Overview of JDK Support for Accessibility p. 867 Supporting Accessibility in JFC Applications p. 869 Supporting Accessibility in Custom Components p. 872 Creating Assistive Technologies p. 881 Drag and Drop p. 883 Overview of JFC Drag and Drop p. 884 Implementing a Drop Target p. 886 Implementing a Drag Source p. 898

Appendixes JFC Class Reference p. 915 The Joys of Object-Oriented Class Libraries p. 916 Developing with OO Class Libraries p. 917 New UI Developments in the JDK 1.1 p. 917 java.awt p. 924 javax.swing p. 1035 com.foley.chart Package Source Code p. 1185 FAxis Class p. 1186 FAxisUI Class p. 1202 FChart Class p. 1209 FChartLayoutManager Class p. 1218 FChartUI Class p. 1221 MetalFAxisUI Class p. 1226 MetalFChartUI Class p. 1230 WindowsFAxisUI Class p. 1231 WindowsFChartUI Class p. 1234 com.foley.utility Source Code p. 1237 AButton.java p. 1238 ActionFocusListener.java p. 1241 AlbumCollectionItem.java p. 1242 AlbumTreeRenderer.java p. 1243 AlbumTypes.java p. 1245 ApplicationFrame.java p. 1245 ApplicationMouseListener.java p. 1250 ColorEditor.java p. 1252 ExitAction.java p. 1259 FPartialEtchedBorder.java p. 1261 ImageLoader.java p. 1263 JavaFileView.java p. 1265 JBox.java p. 1267 MDIFrame.java p. 1268 MetalNonExpandingTreeUI.java p. 1273 NonExpandingTreeUI.java p. 1275 NoOpAction.java p. 1276 OutlandishTheme.java p. 1277 PercentSlider.java p. 1278 PrintAction.java p. 1280 SetJavaLookAndFeelAction.java p. 1282 SetLookAndFeelAction.java p. 1283 SetMotifLookAndFeelAction.java p. 1286

SetWindowsLookAndFeel.java p. 1287 SimpleListCellRenderer.java p. 1288 SliderValuePanel.java p. 1290 SplashWindow.java p. 1292 TableMap.java p. 1294 TableSorter.java p. 1296 TextFilterDocument.java p. 1301 TreeLeafEditor.java p. 1302 TwoStateInterface.java p. 1303 WindowsNonExpandingTreeUI.java p. 1304 Index p. 1307 Table of Contents provided by Blackwell's Book Services and R.R. Bowker. Used with permission.