题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-05-26 20:06:21

[填空题]在Visual Basic 6.0中,InputBox函数用于产生一个______对话框。

更多"在Visual Basic 6.0中,InputBox函数用于产生一个"的相关试题:

[填空题]在Visual Basic 6.0中,InputBox函数用于产生一个______对话框。
[填空题]在VB6.0中,InputBox函数用于产生______对话框。
[判断题]Windows中的对话框一般用于错误信息的提示。( )
[判断题]Windows中的对话框一般用于系统设置、信息获取和交换的操作。
[填空题]执行inputbox函数后,会产生一个对话框,对话框上通常有两个按钮,它们是______按钮和取消按钮。
[填空题]本题中,主窗口有一个按钮“打开对话框”和一个文本域,单击按钮“打开对话框”后会弹出一个对话框,对话框上有两个按钮“Yes”和“No”,单击对话框上的“Yes”和“No”按钮后返回主窗口,并在右侧文本域中显示刚才所单击的按钮信息。
import java. awt. event. * ;
import java. awt. * ;
class MyDialog______implements ActionListener
static final int YES=1, NO=0;
int message=-1; Button yes, no;
MyDialog(Frame f, String s, boolean b)
super(f, s, b);
yes=new Button("Yes"); yes. addActionListener(this);
no=new Button ("No"); no. addActionListener(this);
setLayout (new FlowLayout( ));
add(yes); add(no);
setBounds(60,60,100,100);
addWindowListener(new WindowAdapter( )
public void windowClosing(WindowEvent e)
message=-1; setVisible(false);
);

public void actionPerformed(ActionEvent e)
if(e. getSource( )=yes)
message=YES;
setVisible(false);

else if(e. getSource( )==no)
message=NO;
setVisible(false);


public int getMessage( )
return message;


class Dwind

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码