Book description
This book shows you how to use Swing to add a GUI to your Jython scripts, with an emphasis on the WebSphere Application Server wsadmin utility. In fact, we're going to teach you Swing using Jython, and we're going to do it in a way that, hopefully, that makes your scripts easier for people to use, more robust, more understandable, and therefore easier to maintain.
Table of contents
- Cover
- Title
- Copyright
- Dedication
- Contents at a Glance
- Contents
- About the Author
- About the Technical Reviewers
- Introduction
- Chapter 1: Components and Containers
- Chapter 2: Interactive Sessions vs. Scripts
- Chapter 3: Building a Simple Global Security Application
- Chapter 4: Button Up! Using Buttons and Labels
-
Chapter 5: Picking a Layout Manager Can Be a Pane
- The Absolute Layout Manager Does Not Corrupt Absolutely
- Going with the Flow: The FlowLayout Manager
- South of the Border: The BorderLayout Manager
- What’s in the Cards? Using the CardLayout Manager
- Splitting Up Is Easy to Do: Using Split Panes
- Can I Run a Tab? Using a TabbedPane
- Are You Boxed In? Using the BoxLayout Manager
- Gridlock, Anyone? Using the GridLayout Manager
- Shaking Things Up: The GridBagLayout Manager
- Looking at Other Layout Managers
- Summary
- Chapter 6: Using Text Input Fields
- Chapter 7: Other Input Components
- Chapter 8: Selectable Input Components
- Chapter 9: Providing Choices, Making Lists
- Chapter 10: Menus and MenuItems
- Chapter 11: Using JTree to Show the Forest:Hierarchical Relationships of Components
- Chapter 12: Motion to Take from the Table: Building Tables
- Chapter 13: Keystrokes, Actions, and Bindings, Oh My!
-
Chapter 14: It’s the Event of the Year: Events in Swing Applications
- If an Event Occurs and No One Hears It . . .
- Using Listener Methods
- Put Your Listener Where Your Component Is
- Adapt or Die: Using Adapter Classes
- Listening for Keyboard Events
- Most Objects Never Really Listen
- Looking for a Listener in a Haystack
- Using a ComponentAdapter to Monitor Changes
- Monitoring the Input Fields
- Using a PropertyChangeListener
- Using an InputVerifier
- Summary
-
Chapter 15: Nuts to Soup: Using Jsoup to Enhance Applications
- Using Existing Classes: Creating an HTML Retrieval Application from Scratch
- Wouldn’t It Be Nice: Using Java Libraries
- Working with the Jsoup Library
- Jsoup Call May Appear to Hang
- From a Combo Box to a List Box
- Adding a TextArea to Show the HTML
- Rendering HTML
- Modifying the HTML Text
- Identifying the Sections
- Fixing the Great Divide
- Filtering the List
- Using Jsoup to Pick Up the Tab: Adding a JTabbedPane
- Adding Tabbed Editor Panes to the Javadoc Application
- What Improvements/Enhancements Remain?
- Summary
- Chapter 16: Conversing with a User with Dialog Boxes
- Chapter 17: Specialized Dialog Boxes
- Chapter 18: Monitoring and Indicating Progress
- Chapter 19: Internal Frames
- Chapter 20: Building a Graphical Help Application
-
Chapter 21: A Security Configuration Report Application
- Generating the Administration Console Report
- The Scripting Report Method
- First Attempt
- Second Attempt, Ignoring the Last Delimiter
- Adding a Table Model and Cell Renderer
- Adjusting Column Widths
- Adding a Frame Resize Listener
- Which Rows Are Visible?
- Table Alignment in the Viewport
- Table Row Filtering
- Finding Text
- Section Visibility
- Progress Indicator
- Summary
-
Chapter 22: WASports: A WebSphere Port Application
- Using the Administration Console
- The AdminTask.listServerPorts() Method
- The AdminTask.reportConfiguredPorts() Method
- Using AdminConfig Methods
- Step 0: Creating a WASports Application
- Step 1: Adding an Empty Internal Frame
- Step 2: Adding an Empty JSplitPane to the Internal Frame
- Step 3: Adding a Cell Hierarchy Tree to the JSplitPane
- Step 4: Updating the Right Pane
- Step 5: Displaying Cell and Node Details
- Step 6: Displaying Server Port Number Information
- Step 7: Computing Table Column Widths
- Step 8: Adding Menu Items
- Step 9: Implementing Save and Discard
- Step 10: Implementing the Export Functionality
- Step 11: Implementing the Import Functionality
- What’s Left?
- Summary
- Index
Product information
- Title: Swing for Jython: Graphical Jython UI and Scripts Development using Java Swing and WebSphere Application Server
- Author(s):
- Release date: December 2014
- Publisher(s): Apress
- ISBN: 9781484208175
You might also like
book
Scripting in Java: Integrating with Groovy and JavaScript
Scripting in Java teaches you how to use the Java Scripting API and JavaScript to execute …
book
JavaFX Essentials
Create amazing Java GUI applications with this hands-on, fast-paced guide Develop amazing gestures ?based applications and …
book
Mastering JavaFX 10
Design modern, rich interfaces for Java apps using JavaFX 10 About This Book Become a pro …
book
Jython Essentials
Jython is an implementation of the Python programming language written in 100% pure Java, so it …