Book description
Swing Hacks helps Java developers move beyond the basics of Swing, the graphical user interface (GUI) standard since Java 2. If you're a Java developer looking to build enterprise applications with a first-class look and feel, Swing is definitely one skill you need to master. This latest title from O'Reilly is a reference to the cool stuff in Swing. It's about the interesting things you learn over the years--creative, original, even weird hacks--the things that make you say, "I didn't know you could even do that with Swing!" Swing Hacks will show you how to extend Swing's rich component set in advanced and sometimes non-obvious ways. The book touches upon the entire Swing gamut-tables, trees, sliders, spinners, progress bars, internal frames, and text components. Detail is also provided on JTable/JTree, threaded component models, and translucent windows. You'll learn how to filter lists, power-up trees and tables, and add drag-and-drop support. Swing Hacks will show you how to do fun things that will directly enhance your own applications. Some are visual enhancements to make your software look better. Some are functional improvements to make your software do something it couldn't do before. Some are even just plain silly, in print only to prove it could be done. The book will also give you give you a small glimpse of the applications coming in the future. New technology is streaming into the Java community at a blistering rate, and it gives application developers a whole new set of blocks to play with. With its profusion of tips and tricks, Swing Hacks isn't just for the developer who wants to build a better user interface. It's also ideally suited for client-side Java developers who want to deliver polished applications, enthusiasts who want to push Java client application boundaries, and coders who want to bring powerful techniques to their own applications. Whatever your programming needs, Swing Hacks is packed with programming lessons that increase your competency with interface-building tools.
Publisher resources
Table of contents
- Front Cover
- Copyright
- Contents
- Credits
- Preface
-
Chapter 1. Basic JComponents
- Create Image-Themed Components
- Don’t Settle for Boring Text Labels (1/2)
- Don’t Settle for Boring Text Labels (2/2)
- Fill Your Borders with Pretty Pictures
- Display Dates in a Custom Calendar
- Add a Watermark to a Text Component
- Watermark Your Scroll Panes
- Put a NASA Photo into the Background of a Text Area
- Animate Transitions Between Tabs
- Blur Disabled Components
- Building a Drop-Down Menu Button
- Create Menus with Drop Shadows
- Add Translucence to Menus
-
Chapter 2. Lists and Combos
- Filter JLists
- Add a Filter History
- Make JLists Checkable
- Make Different List Items Look Different (1/2)
- Make Different List Items Look Different (2/2)
- Reorder a JList with Drag-and-Drop (1/2)
- Reorder a JList with Drag-and-Drop (2/2)
- Animate Your JList Selections
- Turn Methods into List Renderers
- Create a Collections-Aware JComboBox (1/2)
- Create a Collections-Aware JComboBox (2/2)
-
Chapter 3. Tables and Trees
- Size Your Columns to Suit Your JTable’s Contents
- Add Column Selection to JTables
- Let Your JTables Do the Sorting (1/3)
- Let Your JTables Do the Sorting (2/3)
- Let Your JTables Do the Sorting (3/3)
- Create a JDBC Table Model
- Export Table Data to an Excel Spreadsheet
- Search Through JTables Easily
- Animate JTree Drops
- Chapter 4. File Choosers
- Chapter 5. Windows, Dialogs, and Frames
- Chapter 6. Transparent and Animated Windows
- Chapter 7. Text
- Chapter 8. Rendering
- Chapter 9. Drag-and-Drop
- Chapter 10. Audio
-
Chapter 11. Native Integration and Packaging
- Launch External Programs on Windows
- Open Files, Directories, and URLs on Mac OS X
- Make Mac Applications Behave Normally
- Control iTunes on Mac OS X
- Control iTunes Under Windows
- Construct Single-Launch Applications
- Stuff Stuff in JARs
- Make Quick Look and Feel Changes
- Create an Inverse Black-and-White Theme
-
Chapter 12. Miscellany
- Display a Busy Cursor
- Fun with Keyboard Lights
- Create Demonstrations with the Robot Class
- Check Your Mail with Swing
- Don’t Block the GUI
- Code Models That Don’t Block
- Fire Events and Stay Bug Free
- Debug Your GUI
- Debug Components with a Custom Glass Pane
- Mirror an Application
- Add Velocity for Dynamic HTML
- Get Large File Icons
- Make Frames Resize Dynamically
- Index (1/4)
- Index (2/4)
- Index (3/4)
- Index (4/4)
- Other Java Resources from O'Reilly
- Back Cover
Product information
- Title: Swing Hacks
- Author(s):
- Release date: June 2005
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596009076
You might also like
article
Have ChatGPT Ask You Questions
ChatGPT Shortcuts shows future prompt engineers how to harness the full potential of the state-of-the-art AI …
video
GenAI Essentials for Everyone - Overview
Our team of experts has hand-selected and organized the most crucial concepts and practical applications of …
book
Java GUI Development: The Authoritative Solution
Java GUI Development covers the Java 2 AWT, JFC, and Swing Toolkit technologies for GUI programming. …
book
JavaFX 9 by Example
Create media-rich client applications using JavaFX 9 and the Java 9 platform. Learn to create GUI-based …