Skip to main content

Specialized Dialog Boxes

  • Chapter
  • First Online:
Swing for Jython
  • 883 Accesses

Abstract

In Chapter 16, you saw how to create a completely customized dialog box using the JDialog class. You also saw how to take advantage of the JOptionPane methods to quickly and easily display some simple, generalized dialog boxes. Now you are going to look at some dialog boxes that can be used to make your life as a developer significantly easier. You’ll be able to use dialog boxes that have been designed, implemented, and tested for you. The chapter begins by looking at the JFileChooser class, which the Swing developers were kind enough to provide for creating dialog boxes. These are great examples of the kind of user input that can be performed by dialog boxes. Keep these in mind when you encounter a situation where you want to provide your own dialog boxes.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 59.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    See http://docs.oracle.com/javase/8/docs/api/javax/swing/JDialog.html .

  2. 2.

    See http://docs.oracle.com/javase/8/docs/api/javax/swing/JOptionPane.html .

  3. 3.

    See http://docs.oracle.com/javase/8/docs/api/javax/swing/JFileChooser.html .

  4. 4.

    Note: The FileSystemView roots attribute is read-only, so this class works around that limitation by using a variable named Roots instead.

  5. 5.

    See http://docs.oracle.com/javase/8/docs/api/javax/swing/filechooser/FileFilter.html .

  6. 6.

    See http://docs.oracle.com/javase/8/docs/api/javax/swing/filechooser/FileNameExtensionFilter.html .

  7. 7.

    See http://docs.oracle.com/javase/tutorial/uiswing/components/filechooser.html .

  8. 8.

    See http://docs.oracle.com/javase/8/docs/api/javax/swing/JColorChooser.html .

  9. 9.

    See http://docs.oracle.com/javase/8/docs/api/javax/swing/colorchooser/ColorSelectionModel.html .

  10. 10.

    See http://docs.oracle.com/javase/8/docs/api/javax/swing/colorchooser/DefaultColorSelectionModel.html .

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Robert A. Gibson

About this chapter

Cite this chapter

Gibson, R.A. (2015). Specialized Dialog Boxes. In: Swing for Jython. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0817-5_17

Download citation

Publish with us

Policies and ethics