- 1
- 0
- 约1.09万字
- 约 51页
- 2016-12-07 发布于河南
- 举报
Java的GUI入门宝典
文本组件 JtextComponent 为所有 Swing 文本组件的根类 JAVA基础培训—Java的GUI编程 JTextField JTextComponent JEditorPane JTextArea JTextPane JPasswordField JTextField JTextField 组件允许输入或编辑单行文本 此类的构造函数包括: JTextField() JTextField(Document doc, String text, int columns) JTextField(int columns) JTextField(String text) JTextField(String text, int column JAVA基础培训—Java的GUI编程 … Container con = getContentPane(); con.setLayout(new FlowLayout()); JLabel jl = new JLabel(“文本域”); con.add(jl); JTextField tf = new JTextField(20); con.add(tf); … JTextArea JTextArea 组件用于接受来自用户的多行文本 它可实现可滚动界面 JTextArea 组件可使用下列构造函数创建: JTextArea() JTe
原创力文档

文档评论(0)