3.3 SWING 基本 组件 (1)标签 组件 ( JLabel ) 标签 组件 显示的是静态文本,在通常情况下是不能编辑的,能起到提示的作用 JLabel 组件 有三种构造函数: JLabel (): 创建空...
基于56个网页-相关网页
For example the text of a JLabel or JTextField will be used as its default accessible name.
例如,JLabel或JTextField文本将被用作其缺省的可访问名称。
Obtain a reference to the JLabel component and verify that the correct definition is there.
获得对JLabel组件的引用并检验是否显示了正确的释义。
To demonstrate, Listing 4 offers a JTextField component for input and a JLabel component for text display.
为了示范这一点,清单4提供了一个用于输入的JTextField组件和一个用于文本显示的JLabel组件。
应用推荐