Java-GUI-JTextArea/JTextField/JTextPane

Due to that J.name.Class is more effecient than name.class between Swing & AWT , so i focus more on J.name.class

Alert : widget of J.name.Class and name.class can not connect with each other when you setup ActionListener

Structure

Java-GUI-JTextArea/JTextField/JTextPane_第1张图片

Text Controls

can display only one line of editable text.

Plain Text Areas

can display multiple lines of editable text.

Text Controls

can display editable text using more than one font.

Info

Text Controls

Name Function
JTextField JTextField is a lightweight component that allows the editing of a single line of text.
JPasswordField JPasswordField is a lightweight component that allows the editing of a single line of text where the view indicates something was typed, but does not show the original characters.
JFormattedTextField JFormattedTextField extends JTextField adding support for formatting arbitrary values, as well as retrieving a particular object once the user has edited the text.

Plain Text Areas

Name Function
JTextArea A JTextArea is a multi-line area that displays plain text. It is intended to be a lightweight component that provides source compatibility with the java.awt.TextArea class where it can reasonably do so.

Styled Text Areas

Name Function
JTextPane A text component that can be marked up with attributes that are represented graphically.
JEditorPane A text component to edit various kinds of content.

你可能感兴趣的:(-JavaDev)