题目

( 30 ) Swing 的选项面板是

A ) JTabbedPane

B ) JLayeredPane

C ) JScrollPane

D ) JSplitPane

提示:未搜索到的试题可在搜索页快速提交,您可在会员中心"提交的题"快速查看答案。
答案
查看答案
相关试题

( 24 )阅读下面程序

import javax.swing.JOptionPane;

public class BreakLabelTest {

public static void main( String args[] ){

String utput = "";

stop: {

for ( int row = 1; row <= 10; row++ ) {

for ( int column = 1; column <= 5 ; column++ ) {

if ( row == 5 )

break stop;

output += "* ";

}

output += "\n";

}

output += "\nLoops terminated normally";

}

JOptionPane.showMessageDialog(

null, output," 用一个标志测试 break 语句 ",

JOptionPane.INFORMATION_MESSAGE );

System.exit( 0 );

}

}

程序运行结果是

A )窗口中有 5 行 * * * * *

B )窗口中有 5 行 * * * *

C )窗口中有 4 行 * * * * *

D )窗口中有 6 行 * * * * *

执行完下列代码段之后: bool x=true, y=false, z=false; x=x&&y‖z; y=x‖y&&z; z=!(x!=y)‖(y-z); 则x=false, y=false, Z=( )。

A.true

B.false

C.不确定

D.异常

请补充main函数,该函数的功能是:把字符串str中的字符向前移动一位,原来的第一个字符移动到字符串尾,结果仍然保存在原字符串中。

例如,输入“how do you do?”,则结果输出“ow do you do?h”。

注意:部分源程序给出如下。

请勿改动主函数main和其他函数中的任何内容,仅在 main函数的横线上填入所编写的若干表达式或语句。

试题程序:

include <stdio. h>

define N 80

main()

{

char str[N], ch;

int i;

clrscr ();

printf("\n Input a string:In");

gets (str);

printf("\n*** original string ***In");

puts (str);

ch=str [0];

for (i=0;【 】; i++)

str [i]=str [i+1];

【 】;

printf("\n *** new string ***\n");

puts (str);

}

对“图书借阅管理”数据库中的表借阅、loans和图书,建立文件名为myf的表单,标题为“图书借阅浏览”,表单上有三个命令按钮“读者借书查询”、“书籍借出查询”和“关闭”。

单击“读者借书查询”按钮,查询出02年3月中旬借出的书的所有的读者的“姓名”、“借书证号”和“图书登记号”,同时将查询结果保存在表new中。

单击“书籍借出查询”按钮,查询借“数据库原理与应用”一书的所有读者的“借书证号”和“借书日期”,结果中含“书名”、“借书证号”和“日期”字段,同时保存在表new2中。单击“关闭”按钮关闭表单。

( 25 )处理对象传输的接口是

A ) Serializable

B ) Cloneable

C ) ItemListener

D ) ActionListener

联系我们 会员中心
返回顶部