一、Jpanel

  1、面板:容器类组件

  2、用途:与Layout配合使用,JFrame—>JPanel—>Layout

二、JTextField

  1、文本框

  2、JPasswordField:密码框

  3、构造函数

  (1)JTextField()

  (2)JTextField(int columns)

  (3)JTextField(String text)

  4、常用方法

  (1)SetText(string): 设置文本域中的文本值
  (2)GetText()   : 返回文本域中的输入文本值

  (3)setEditable(Boolean): 设置文本域是否为只读状态

三、JLabel

  1、标签

四、JButton

  1、按钮

 

相关文章:

  • 2022-12-23
  • 2021-12-31
  • 2021-12-02
  • 2021-11-20
  • 2021-09-14
  • 2021-08-21
  • 2021-08-07
  • 2021-11-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
  • 2022-12-23
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案