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

Structure Of JavaTextComponent

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

NameFunction
JTextFieldJTextField is a lightweight component that allows the editing of a single line of text.
JPasswordFieldJPasswordField 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.
JFormattedTextFieldJFormattedTextField 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

NameFunction
JTextAreaA 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

NameFunction
JTextPaneA text component that can be marked up with attributes that are represented graphically.
JEditorPaneA text component to edit various kinds of content.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值