First page Back Continue Last page Graphics
Using Java Standard Classes
To use a class from the Java Standard Library, you must import it:
Often, you need more than one class from a package. For example, instead of importing each of:
- javax.swing.JButton,
- javax.swing.JPanel, and
- javax.swing.JFileChooser
you can just do: