要掩盖Text Box控件中文本,需要将控件的Text Mode属性设置为()。
Irnport java.applet.*;
Import java.awt.*;
Import javax.swing.*;
Import java.awt.event.*;
publicclassC0601extendsAppletimplementsItemListener
{
();
Strings[]={"足球","排球","篮球","乒乓球"};
JRadioButtonbox[]=newJRadioButton[4];
JTextFieldtext=newJTextField(20);
publicvoidinit()
{
setSize(400,70);
ButtonGroupgroup=newButtonGroup();
for(inti=0;i<4;i++)
{
box[i]=newJRadioButton(s[i]);
group.add(box[i]);
pan.add(box[i]);
box[i].addItemListener(this);
}
add(pan);
add(text);text.setBackground(Color.cyan);
}
publicvoid()(ItemEvente)
{
text.setText("你选择了:
"+((JRadioButton)e.getItemSelectable()).getText());
}
}
A.android:text=@string/"hello"
B.android:text=@string:"hello"
C.android:text="@string/hello"
D.android:text=@string/hello
A.在标签中,显示ListBox控件中选中的项的文本
B.在标签中,显示ListBox控件中没有选中的项
C.判断ListBox控件中选择的文本是否与标签控件的文本信息相等
D.代码"Label1.Text=ListBox1.Text"有错误