Given the following expression about TextField which use a proportional pitch font.  TextField t = new TextField("they are good",40);     Which statement is true?() A、 The displayed string can use multiple fonts.B、 The maximum number of characters in a line will be 40.C、 The displayed width is exactly 40 characters.D、 The user can edit the characters.

Given the following expression about TextField which use a proportional pitch font.  TextField t = new TextField("they are good",40);     Which statement is true?() 

  • A、 The displayed string can use multiple fonts.
  • B、 The maximum number of characters in a line will be 40.
  • C、 The displayed width is exactly 40 characters.
  • D、 The user can edit the characters.

相关考题:

下列 ()是创建一个标识有“OK”的按钮的语句。 A.TextField b=new TextField(“OK”);B.Button b=new Button(“OK”);C.TextArea b=new TextArea(“OK”);D.Checkbox b=new Checkbox(“OK”);

命令()用来删除由createTextField创建的文本字段。 A、MovieClip.createTextFieldB、TextField.removeTextFieldC、TextField._alphaD、TextField._border

命令()用来动态创建文本框。 A、MovieClip.createTextFieldB、TextField.removeTextFieldC、TextField._alphaD、TextField._border

给出下列关于一个使用适当的字符间距的字体的TextField的表达式,则( )选项的叙述是对的。 TextField t=new TextField("they are good",40);A.被显示的字符可以使用多朴字体B.一行中最大的字符数是40C.显示的宽度正好是40个字符宽D.用户可以编辑字符

创建一个标识有“关闭”按钮的语句是( )。A.TextField b=new TextField("关闭");B.Button b=new Burron("关闭");C.Checkbox b=new Checkbox("关闭");D.Label b=new Label("关闭");

下列选项中可以创建一个标识有“关闭”的按钮语句的是( )。A.TextField b = new TextField("关闭");B.TextArea b=new TextArea("关闭");C.Button b = new Button("关闭");D.Checkbox b = new Checkbox("关闭");

下面Applet在窗口中实现一个不可编辑的TextField,并且显示“ok”。在横线处填入正确的语句。import java.applet.Applet;import java.awt.t;public class Test extends Applet {TextField tf;public void init () {setLayout (new GridLayout(1,0);tf=new TextField("ok");【 】add(tf);}}

下列______是创建一个标识有“关闭”按钮的语句。 ( )A.TextField b=new TextField("关闭");B.TexArea b=new TexArea("关闭");C.Button b=new Button("关闭");D.Checkbox b=new Checkbox("关闭");

在程序中,使用适当的布局管理器,在Frame框的North位置添加一句提示信息,在South位置添加一个单行文本框,在这个文本框中输入的内容将会显示在Center位置。运行结果如下图所示。注意:请勿修改main()主方法和其他已有语句内容,仅在横线处填入适当语句。import java.awt.*;import java.awt.event.*;public class simple extends Frame{public static void main(String[] args){simple frame=new simple("simple");frame.init();frame.setSize(300,300);frame.show();}public simple(String name){super(name);addWindowListener(new WindowAdapter(){ public void windowClosing(WindowEvent e){______;}} );}public void init(){setLayout(new______);Label labelTitle=new Label("在本文框中输入字符串, 可以早Frame中间显示");Label showTextLabel=new Label();TextField textField=new TextField("请在这里输入字符串");textField.addActionListener(new AddStringListener(showTextLabel,textField));add("North", labelTitle);add("Center", showTextLabel);add("South", textField);}}class AddStringListener implements ActionListener{Label label;TextField textField;public AddStringListener(Label label, TextField textField){this.label=label;this.textField=textField;}public void actionperformed(ActionEvent e){label.setText(textField.getText());}}

以下程序中,使用适当的布局管理器,在Frame框的“North”位置添加一句提示信息,在“South”位置添加一个单行文本框,在这个文本框中输入的内容将会显示在“Center”位置。运行结果如下图所示。注意:请勿改动main()主方法和其他已有语句内容,仅在横线处填入适当语句。import java.awt.*;import java.awt.event.*;public class Example2_6 extends Frame{public static void main(String [] argv){Example2_6 frame. = new Example2_6("Example2_6");frame, init ();frame.setSize(300, 300);frame, show ();}public Example2_6(String name){super (name);addWindowListener (new WindowAdapter (){ public void windowClosing(WindowEvent e){ __________;}} );}public void init(){setLayout (new ___________);Label labelTitle = new Label("在文本框中输入字符串,可以在Frame. 中间显示");Label showTextLabel = new Label();TextField textField = new TextField("请在这里输入字符串");textField.addActionListener (new AddStringListener(showTextLabel, textField) );add("North", labelTitte);add("Center", showTextLabel);add("South", textField);}}class AddStringListener implements ActionListener{Label label;TextField textField;public AddStringListener(Label label, TextField textField){this. label = label;this.textField = textField;}public void actionPerformed(ActionEvent e){label, setText (textField. getText ());}}

给出下列关于使用适当的字符间距的字体的TextField的表达式,则哪个选项的叙述是正确的? ( ) TextField t=new TextField("they are good",40);A.被显示的字符串可以使用多种字体B.一行中最大的字符数是40C.显示的宽度正好是40个字符宽D.用户可以编辑字符

You define the following regular expression of currency values:regex tx = new regex(^-?\d+(\.\d{2})?$)You are required to write code that will be used to find whether a string in the variable named Bill matches the regular expression or not. You are also required to use this code as the expression in a conditional statement and need to know which code segment to use.What should you do?()A.The tx.Matches(Bill)B.The tx.Equals(Bill)C.The tx.Match(Bill)D.The tx.IsMatch(Bill)

Which of the following are true about SSIDs configured in the ADU?()A、SSIDs are not case sensitive.B、SSIDs must be listed in the same order in the ADU as they are in the access point.C、A maximum of three SSIDs may be configured.D、SSIDs may have a maximum of 16 characters.

Which statement is true about Kompella-based and Martina-based VPNs?()A、Both use LDPB、Both use BGPC、Both require additional hardware.D、Both use a two-label stack for forwarding.

AWT中创建一个标识有“确定”按钮的语句是()A、TextField b = new TextField(“确定”);B、Checkbox b = new Checkbox(“确定”);C、Buttn b = new Button(“确定”);D、Label b = new Label(“确定”);

给出以下关于一个使用适当的字符间距的字体的TextField的表达式TextField t = new TextField("they are good",40);以下说法中()是正确的A、被显示的字符串可以使用多种字体//只有一种字体B、一行中最大的字符数是40//使显示的最大字符数C、显示的宽度正好是40个字符宽//有可能不足 只是设置的最佳大小D、用户可以编辑字符

创建一个标识有“关闭”按钮的语句是()。A、TextField b = new TextField(“关闭”);B、Label b = new Label(“关闭”);C、Checkbox b = new Checkbox(“关闭”);D、Button b = new Button(“关闭”);

下列哪个选项是创建一个标识有"打开"按钮的语句()。A、TextField b=new TextField("打开");B、TextArea b=new TextArea("打开");C、Checkbox b=new Checkbox("打开");D、Button b=new Button("打开");

Which of the following statements are true when creating NETBIOS names? ()A、 NETBIOS names can only use alphanumeric characters.B、 You can use a ’.’ in a NETBIOS name.C、 You can use an ’_’ (underscore) in a NETBIOS name.D、 NETBIOS names must be UPPERCASEE、 NETBIOS names can be a maximum of 32 characters

import java.awt.*;   public class Test extends Frame {   public Test() {   add(new Label(“Hello”) );   add(new TextField(“Hello”) );   add(new Button(“Hello”) );   pack();   show();    }   public static void main(String args) {   new Test ();   }   }   What is the result? () A、 The code will not compile.B、 A Window will appear containing only a Button.C、 An IllegalArgumentException is thrown at line 6.D、 A Window button will appear but will not contain the Label, TextField, or Button.E、 A Window will appear containing a Label at the top, a TextField below the Label, and a Button  below the TextField.F、 A Window will appear containing a Label on the left, a TextField to the right of the Label, and a button to the right of the TextField.

Which three statements about subqueries are true?()A、A single row subquery can retrieve only one column and one row.B、A single row subquery can retrieve only one row but many columns.C、A multiple row subquery can retrieve multiple rows and multiple columns.D、A multiple row subquery can be compared by using the "" operator.E、A single row subquery can use the IN operator.F、A multiple row subquery can use the "=" operator.

You define the following regular expression of currency values: regex tx = new regex("^-?/d+(/./d{2})?$") You are required to write code that will be used to find whether a string in the variable named Bill matches the regular expression or not. You are also required to use this code as the expression in a conditional statement and need to know which code segment to use. What should you do?()A、The tx.Matches(Bill)B、The tx.Equals(Bill)C、The tx.Match(Bill)D、The tx.IsMatch(Bill)

单选题给出以下关于一个使用适当的字符间距的字体的TextField的表达式TextField t = new TextField("they are good",40);以下说法中()是正确的A被显示的字符串可以使用多种字体//只有一种字体B一行中最大的字符数是40//使显示的最大字符数C显示的宽度正好是40个字符宽//有可能不足 只是设置的最佳大小D用户可以编辑字符

多选题Which three statements about subqueries are true?()AA single row subquery can retrieve only one column and one row.BA single row subquery can retrieve only one row but many columns.CA multiple row subquery can retrieve multiple rows and multiple columns.DA multiple row subquery can be compared by using the “” operator.EA single row subquery can use the IN operator.FA multiple row subquery can use the “=” operator.

单选题Given the following expression about TextField which use a proportional pitch font.  TextField t = new TextField("they are good",40);     Which statement is true?()A The displayed string can use multiple fonts.B The maximum number of characters in a line will be 40.C The displayed width is exactly 40 characters.D The user can edit the characters.

多选题Which of the following statements are true when creating NETBIOS names? ()ANETBIOS names can only use alphanumeric characters.BYou can use a ’.’ in a NETBIOS name.CYou can use an ’_’ (underscore) in a NETBIOS name.DNETBIOS names must be UPPERCASEENETBIOS names can be a maximum of 32 characters

单选题import java.awt.*;   public class Test extends Frame {   public Test() {   add(new Label(“Hello”) );   add(new TextField(“Hello”) );   add(new Button(“Hello”) );   pack();   show();    }   public static void main(String args) {   new Test ();   }   }   What is the result? ()A The code will not compile.B A Window will appear containing only a Button.C An IllegalArgumentException is thrown at line 6.D A Window button will appear but will not contain the Label, TextField, or Button.E A Window will appear containing a Label at the top, a TextField below the Label, and a Button  below the TextField.F A Window will appear containing a Label on the left, a TextField to the right of the Label, and a button to the right of the TextField.