The Swing Text Components

Despite all the complexity and power Swing’s text components provide, it’s still pretty simple to do most things. Now it’s shows each of the six Swing text components, plus an extra JTextArea (to show a different wrapping style) and an extra JEditorPane (to show a different EditorKit).
Here the code:
// TextComponentSampler.java
//
import javax.swing.*;
import javax.swing.text.*;
import javax.swing.border.*;
import java.awt.*;
[...]