TextPanel
public class TextPanel extends JPanel {
setLayout(new BorderLayout());
JTextField textField = new JTextField();
JTextArea textArea = new JTextArea();
JTextPane textPane = new JTextPane();
MutableAttributeSet attr = new SimpleAttributeSet();
StyleConstants.setFontFamily(attr, "Serif");
StyleConstants.setFontSize(attr, 18); StyleConstants.setBold(attr, true);
textPane.setCharacterAttributes(attr, false);
add(textField, BorderLayout.NORTH); add(textArea, BorderLayout.WEST);
add(textPane, BorderLayout.SOUTH);