JEditorPane - The Editor Pane Class

This chapter provides tutorial notes and example codes on the editor pane class. Topics include a simple text editor pane; saving text from the editor pane to a file; editing HTML content and Chinese characters in editor pane; using file chooser dialog boxes.


These sections are omitted from this Web preview version. To view the full content, see information on how to obtain the full version this book.

Creating a Simple Plain Text Editor Pane

Saving Text from an Editor Pane

Editing HTML in an Editor Pane

Editing Unicode Characters in an Editor Pane

javax.swing.JFileChooser - File Chooser Dialog Box


Sample programs listed in this chapter have been tested with JDK 1.3.1 to JDK 10.

Table of Contents

 About This Book

 JDK (Java Development Kit)

 Introduction of Java Swing Package

 Graphics Environment of the Local System

 JFrame - Main Frame Class

 JLabel - Swing Label Class

 JButton - Swing Button Class

 JRadioButton - Swing Radio Button Class

 JTextField - Swing Text Field Class

 Menu Bar, Menus, Menu Items and Listeners

 Creating Internal Frames inside the Main Frame

 Layout of Components in a Container

 LookAndFeel and UIManager

 Option Dialog Boxes

JEditorPane - The Editor Pane Class

 SwingWorker - The Background Task Worker

 AWT (Abstract Windows Toolkit)

 References

 Full Version in PDF/EPUB