Document Information

Preface

1.  Introduction

2.  Troubleshooting AWT

3.  Troubleshooting Java 2D

4.1 General Debugging Tips for Swing

4.2 Specific Debugging Tips for Swing

4.2.1 Incorrect Threading

4.2.2 Overlapping Children of a JComponent

4.2.3 Updating the Display

4.2.4 Changing the Model

4.2.5 Adding or Removing Components

4.2.6 Overriding Opaque

4.2.7 Permanent Changes to a Graphics

4.2.8 Custom Painting and Double Buffering

4.2.9 Opaque Content Pane

4.2.10 Performance: Call to Renderer for Each Cell

4.2.11 Possible Leaks

4.2.12 Mixing Heavyweight and Lightweight Components

4.2.13 Tips for Using Synth

4.2.14 Tracking Activity on Event Dispatch Thread

4.2.15 Differing Default Layout Managers

4.2.16 Listener Objects Dispatched to Deepest Component

4.2.17 Adding a Component to Content Pane

4.2.18 Drag and Drop Support in Swing

4.2.19 One Parent at a Time for a Component

4.2.20 Problem With JFileChooser and Shortcuts on Windows

5.  Internationalization

6.  Troubleshooting Java Sound

7.  Troubleshooting Java Plug-in

8.  Submitting Bug Reports

A.  Java 2D Properties

B.  Fatal Error Log

 
Troubleshooting Guide for Java SE 6 Desktop Technologies

Chapter 4

Troubleshooting Swing

This chapter provides information and guidance on some specific procedures for troubleshooting some of the most common issues that might be found in the Java SE Swing API.

Company Info Contact Terms of Use Privacy Copyright 1994-2008 Sun Microsystems, Inc.