package com.wgtgt.ui; import java.awt.BorderLayout; import java.awt.Component; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import qq.qq757225051.Controller; import com.wgtgt.event.ConfirmEvent; public class ConfirmFrame extends JFrame { private static final long serialVersionUID = 9202108585369009745L; private ConfirmEvent event=new ConfirmEvent(); public ConfirmFrame(){ setTitle("确认对话框事件演示"); setLocation(100, 200); setSize(500,600); add(createMainPane()); setVisible(true); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } private Component createMainPane() { JPanel jp=new JPanel(); JButton jb_n=new JButton("北"); JButton jb_s=new JButton("南"); JButton jb_e=new JButton("东"); JButton jb_w=new JButton("西"); JButton jb_c=new JButton("中"); Controller.event(jb_n, event, "yes_bei");//事件代码 //Controller.confirmBox("标题1", "消息1", event, "bei");//事件代码 Controller.confirmBox(jb_s, "标题2", "消息2", event, "nan");//事件代码 Controller.event(jb_e, event, "dong");//事件代码 //Controller.confirmBox("标题3", "消息3", event, "yes_dong", "no_dong");//事件代码 Controller.confirmBox(jb_w, "标题4", "消息4", event, "yes_xi", "no_xi");//事件代码 Controller.event(jb_c, event, "zhong");//事件代码 jp.setLayout(new BorderLayout()); jp.add(jb_n,BorderLayout.NORTH); jp.add(jb_s,BorderLayout.SOUTH); jp.add(jb_w,BorderLayout.WEST); jp.add(jb_e,BorderLayout.EAST); jp.add(jb_c,BorderLayout.CENTER); return jp; } }

fantaohaofan LV2
2022年6月23日
wyx065747 LV67
2022年3月9日
四喜美瞳 LV1
2021年5月20日
lizhenlinok LV10
2021年1月11日
ccqq123456 LV2
2020年11月1日
落寞烟草味 LV3
2020年9月9日
y6622576 LV9
2020年6月13日
yongzheng132 LV17
2019年6月24日
ljy LV2
2019年4月8日
xutpcb LV2
2018年11月1日

flygrass LV12
2023年12月7日
fantaohaofan LV2
2022年6月23日
w13314
2022年4月2日
暂无贡献等级
佩奇弯腰耍大刀 LV1
2021年10月13日
一个好人520 LV10
2021年9月29日
yiyi2000
2021年8月17日
暂无贡献等级
liuxuegong
2021年7月27日
暂无贡献等级
小林哥哥爱吃肉 LV1
2021年5月31日
四喜美瞳 LV1
2021年5月20日
lizhenlinok LV10
2021年1月11日