📄 callpokedialog.java~4~
字号:
package poker;/** * <p>Title: 斗地主</p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2004</p> * <p>Company: </p> * @author 李艳生 * @version 1.0 */import java.awt.*;import javax.swing.*;import java.awt.event.*;import java.util.*;public class CallPokeDialog extends JDialog{ JButton btnOne = new JButton(); JButton btnTwo = new JButton(); JButton btnThree = new JButton(); JButton btnFour = new JButton(); public CallPokeDialog() { try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } private void jbInit() throws Exception { this.setSize(new Dimension(325, 56)); //居中显示 Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); this.setLocation((screenSize.width - 325)/2,(screenSize.height - 56)/2); this.setModal(true); this.setResizable(false); this.setTitle("请叫牌"); btnOne.setBounds(new Rectangle(11, 16, 67, 25)); btnOne.setText("1分"); this.getContentPane().setLayout(null); btnTwo.setBounds(new Rectangle(82, 17, 73, 25)); btnTwo.setText("2分"); btnThree.setBounds(new Rectangle(161, 17, 73, 25)); btnThree.setText("3分"); btnFour.setBounds(new Rectangle(240, 16, 73, 25)); btnFour.setSelected(false); btnFour.setText("不要"); this.getContentPane().add(btnOne, null); this.getContentPane().add(btnTwo, null); this.getContentPane().add(btnThree, null); this.getContentPane().add(btnFour, null); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -