Java Look-and-Feel Design Guidelines

Slides:



Advertisements
Similar presentations
Introduction to Java 2 Programming
Advertisements

Introduction to Computers Section 6A. home The Operating System (OS) The operating system (OS) is software that controls the interaction between hardware.
Foundation Level Course
Operating Systems First Program to load. Controls Hardware And software. Enable User to operate PC( Personal Computer) –Examples: DOS: Disk Operating.
XP Exploring the Basics of Microsoft Windows XP1 Exploring the Basics of Windows XP.
Exploring the Basics of Windows XP. Objectives Start Windows XP and tour the desktop Explore the Start menu Run software programs, switch between them,
Interaction Styles Interface Widgets. What are Interaction Styles?  A Collection of interface objects and associated techniques from which an interaction.
1 GUI Elements in Java Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Basic Editing Lesson 2- Part 2. Navigating and Searching Through a Document Find command options, the mouse, scroll bars, and various keystroke and keyboard.
Exploring the Basics of Windows XP
Introduction to Java Swing “We are the sultans of swing” – Mark Knopfler.
Chapter 2 Developing a Web Page. A web page is composed of two distinct sections: –The head content –The body Creating Head Content and Setting Page Properties.
Java Software Solutions Lewis and Loftus Chapter 10 1 Copyright 1997 by John Lewis and William Loftus. All rights reserved. Graphical User Interfaces --
3461A Readings from the Swing Tutorial. 3461A Overview  The follow is the Table of Contents from the trail “Creating a GUI with JFC/Swing” in the “The.
Java Programming: Advanced Topics 1 Common Elements of Graphical User Interfaces Chapter 6.
Productivity Programs Common Features and Commands.
Computing Fundamentals Module Lesson 3 — Changing Settings and Customizing the Desktop Computer Literacy BASICS.
1. Chapter 4 Customizing Paragraphs 3 More Paragraph Changes Highlight a paragraph in Word by applying borders and shading. Sort paragraphs to control.
Microsoft Office XP Illustrated Introductory, Enhanced Started with Windows 2000 Getting.
Object-Oriented Program Development Using Java: A Class-Centered Approach, Enhanced Edition.
Creating Windows. How can we use Java to create programs that use windows (GUI applications)? How can we use Java to create programs that use windows.
The Excel model for information processing The Excel model is a grid of cells in which items of information are stored and processed. Any information that.
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
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.
INFORMATION SYSTEM – SOFTWARE TOPIC: GRAPHICAL USER INTERFACE.
Oct 091 Example Program DemoInputValidation1.java DemoInputValidation2.java.
Introduction to Swing Mr. Crone. What is Swing? a collection of pre-made Java classes used to create a modern graphical user interface.
Introduction to Swing Mr. Crone. What is Swing? a collection of pre-made Java classes used to create a modern graphical user interface.
Pasewark & Pasewark 1 Windows Vista Lesson 1 Windows Vista Basics Microsoft Office 2007: Introductory.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
Fundamentals of Windows Mouse n 4 Basic Operations: –Pointing –Clicking –Double Clicking –Dragging.
Moving Goalposts Sam Rowley Ray Reid
The New User Interface MEDITECH Training & Education.
Dive Into® Visual Basic 2010 Express
Jeopardy Word-1 Word-2 Word-3 Word-4 Word-5 Q $100 Q $100 Q $100
Microsoft Word 2016 Lesson 1.
Creating a Presentation
Computer Literacy BASICS
Working with Data Blocks and Frames
Chapter 9: Graphical User Interfaces
OVERVIEW Objectives Follow a design document to create a small personal Web site Follow a design document to create pages in a large commercial Web site.
Microsoft Excel.
Basic Controls and Plugins
1. Introduction to Visual Basic
Understand Windows Forms Applications and Console-based Applications
Microsoft Excel 2003 Illustrated Complete
Chap 7. Building Java Graphical User Interfaces
Graphical User Interfaces -- Introduction
Exploring the Basics of Windows XP
Microsoft Excel All editions of Microsoft office.
Lesson 21 Getting Started with PowerPoint Essentials
Chapter 2 – Introduction to the Visual Studio .NET IDE
Microsoft Office Ribbon
Windows xp PART 1 DR.WAFAA SHRIEF.
Tutorial 3 – Creating a Multiple-Page Report
COMMON CONTROLS A control is a child window that an application uses in conjunction with another window to enable user interaction. Controls are most often.
Exploring the Basics of Windows XP
Benchmark Series Microsoft Word 2016 Level 1
Productivity Programs Common Features and Commands
Microsoft Office Ribbon
Lesson 19 Organizing and Enhancing Worksheets
Chapter 4 Enhancing the Graphical User Interface
Microsoft Windows 7 Basics
Human and Computer Interaction (H.C.I.) &Communication Skills
Chapter 4 Enhancing the Graphical User Interface
Graphical User Interface
Microsoft Excel 2007 – Level 2
An Introduction to the Windows Operating System
Presentation transcript:

Java Look-and-Feel Design Guidelines Eileen Kraemer University of Georgia CSCI 4800/600

An online book … The Java Look-and-Feel Design Guidelines, Second Edition are available online Target audience: the designer who chooses the interface elements, lays them out in a set of components, and designs the user interaction model for an application

Focus of the book …. design guidelines for software that uses the Swing classes together with the Java look and feel. on creating cross-platform GUI (graphical user interface) applications and applets in the JavaTM programming language. on design issues and human-computer interaction in the context of the Java look and feel. guidelines are appropriate for GUI applications and applets on PCs and network computers; doesn’t address the problem of S/W that runs on consumer electronic devices.

What is the “Java Look and Feel”? First of all, what is a “look-and-feel”? The appearance and behavior of a complete set of GUI components. Why do we need a Java look-and-feel? Want to have Java applications that have a consistent look and behavior across multiple platforms The goal of the Java look-and-feel is to provide a distinctive platform-independent appearance and standard behavior.

Java look-and-feel Flush 3D style Drag texture Color model surfaces appear to be in the same plane as the surrounding canvas border has a bevel Drag texture Color model

Elements of the Java L&F Style of use/appearance of: Windows Menus Toolbars editor panes dialog boxes alert boxes

Java L&F Windows Platform-specific borders, title bar, and window controls “Metal” look and feel window contents – menu bar, toolbar, editor pane, etc. Here’s the code

Menus, the Menu Bar Provide access to and info about application’s primary functions Later: guidelines for creation of such menus

Drop-down menus Menu separators divide choices into logical groupings Titles highlighted in blue (default Java look and feel theme) Can use keyboard shortcuts instead of the mouse. Mnemonics – another way to access menu items..

Keyboard shortcuts keystroke combinations that activate a menu item from the keyboard even if the menu for that command is not currently displayed. usually consist of a modifier key and a character key, like Control-Z, plus a few special keys such as F1 and Delete. Don’t post menus; rather, perform the indicated actions directly.

Mnemonic an underlined alphanumeric character in a menu title, menu item, or other interface component. reminds the user how to activate the equivalent command by simultaneously pressing the Alt key and the character key that corresponds to the underlined letter or numeral. See example code for both shortcuts and mnemonics

Guidelines for shortcuts … Specify keyboard shortcuts for frequently used menu items; don’t need a shortcut for every command  Display shortcuts using the standard abbreviations for key names (such as Ctrl for the Control key), separated by hyphens. Know the common shortcuts across platforms; use them.  Don’t use the Meta key (the Command key on the Macintosh platform) for a shortcut, except as an alternate for Control. It isn’t available on some target platforms.

Java L&F Toolbar displays command and toggle buttons that offer immediate access to the functions of many menu items. divided into functional areas Flush 3D style

Java L&F Editor Pane Editor pane inside a scroll pane

Java L&F Dialog Boxes use the borders and title bars of the platform they are running on dialog box contents have the Java look and feel Windows, Mac, CDE

Java L&F Alert boxes Windows, Mac, CDE

Java Foundation Classes An extension to the original Abstract Window Toolkit (AWT), Includes: the Swing classes, which define a complete set of GUI components for JFC applications pluggable look and feel designs the Java Accessibility API, all implemented without native code (code that refers to the functions of a specific operating system or is compiled for a specific processor). components include: windows and frames, panels and panes, dialog boxes, menus and toolbars, buttons, sliders, combo boxes, text components, tables, list components, and trees.

The Java 2 SDK contains the AWT, Contains a JFC that also includes the class library that provides the standard application programming interfaces for building GUIs for Java programs. Contains a JFC that also includes the Java 2D API drag and drop other enhancements

Support for Accessibility features of the Java 2 SDK that support people with special needs: the Java Accessibility API provides “hooks” for an assistive technology to interact and communicate with JFC components ( screen readers and screen magnifiers.) the Java Accessibility Utilities provides support in locating the objects that implement the Java Accessibility API. (These utilities are necessary for developers who develop only assistive technologies, not mainstream applications.) keyboard navigation, mnemonics, keyboard shortcuts (also called "accelerators"), customizable colors and fonts, and dynamic GUI layout. A “pluggable” look and feel architecture that can be used to build both visual and nonvisual designs, such as audio and tactile UIs

Accessibility, continued Keyboard navigation enables users to use the keyboard to move between components, open menus, highlight text, and so on. makes an application accessible to people who find it difficult or impossible to use a mouse.

Support for Internationalization J2SDK provides internationalized text handling and resource bundles. support for the bidirectional display of text lines J2SDK provides resource bundles locale-sensitive sorting support for localized numbers, dates, times, and messages.

User Interface Components of the JFC Swing, a complete set of user interface components, including windows, dialog boxes, alert boxes, panels and panes, and basic controls. Each JFC component contains a model (the data structure) a user interface (the presentation and behavior of the component)

Major JFC UI Components See table of components

Java L&F - Recommendations Don’t specify look and feel explicity. cross-platform l&f allows app to appear and perform the same everywhere simplifies the app's development and doc Java look and feel is used by default. If error occurs while specifying name of any l&f, the Java l&f is used by default. Available Look and Feel Designs: Metal Windows CDE/Motif