Java Swing Tutorials - Herong's Tutorial Examples - v4.32, by Herong Yang
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
Takeaways:
Sample programs listed in this chapter have been tested with JDK 1.3.1 to JDK 20 on Windows and macOS computers.
Table of Contents
Introduction of Java Swing Package
Graphics Environment of the Local System
JCheckBox - Swing Check Box Class
JRadioButton - Swing Radio Button Class
JTextField - Swing Text Field Class
JComboBox - Swing Combo Box Class
Menu Bar, Menus, Menu Items and Listeners
Creating Internal Frames inside the Main Frame
Layout of Components in a Container
►JEditorPane - The Editor Pane Class
SwingWorker - The Background Task Worker
AWT (Abstract Windows Toolkit)