28.12.2012 Views

Core JFC Java Foundation Classes 2nd edition - Read

Core JFC Java Foundation Classes 2nd edition - Read

Core JFC Java Foundation Classes 2nd edition - Read

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 6-22 Implementing a simple status line 746<br />

Figure 7-1 A JOptionPane message dialog 764<br />

Figure 7-2 Variations on the JOptionPane message dialog 766<br />

Figure 7-3 Using a custom icon with JOptionPane 768<br />

Figure 7-4 The JOptionPane confirm dialog 770<br />

Figure 7-5 The JOptionPane option dialog 774<br />

Figure 7-6 The JOptionPane input dialog 775<br />

Figure 7-7 The JOptionPane input dialog with a combo box 776<br />

Figure 7-8 The JOptionPane input dialog with an object rather<br />

than a string 777<br />

Figure 7-9 The Swing JFileChooser Control 780<br />

Figure 7-10 Selecting more than one file in the file chooser 787<br />

Figure 7-1 I Using custom file filters 790<br />

Figure 7-12 Usng suffix-based file filters 794<br />

Figure 7-13 Filtering to show only <strong>Java</strong> source files 795<br />

Figure 7-14 Using a filter to show uncompiled <strong>Java</strong> source files .... 798<br />

Figure 7-15 Displaying an error message when attempting to open a<br />

file 801<br />

Figure 7-16 Displaying a file chooser with no control buttons 805<br />

Figure 7-17 Using a custom FileView to change display icons 811<br />

Figure 7-18 The Swing Color Chooser Dialog 813<br />

Figure 7-19 The Color Chooser HSB Tab 814<br />

Figure 7-20 The Color Chooser RGB Tab 815<br />

Figure 7-21 A Color Chooser with the Swatches and HSB tabs<br />

removed 825<br />

Figure 8-1 A basic confirmation dialog 839<br />

Figure 8-2 A dialog containing an image map 851<br />

Figure 8-3 A file preview dialog 864<br />

Figure 8-4 A color toolbox 879<br />

Figure 8-5 The JTabbedPane control 889<br />

Figure 8-6 The JTabbedPane control with tabs on the right 897<br />

Figure 8-7 Swing etched borders 902<br />

Figure 8-8 Swing soft bevel borders 904<br />

Figure 8-9 Compound borders 905<br />

Figure 8-10 Matte borders 908<br />

Figure 8-1 I Checkboxes and radio buttons 909<br />

Figure 8-12 A dialog with a default button 918<br />

Figures xvii

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!