求 JAVA 算24点的代码

来源:百度知道 编辑:UC知道 时间:2024/09/28 07:36:32
要求 有用户界面 用户可以用鼠标点击输入数字

也可以由键盘输入数字

结果在面板上显示出来!

那为高手高手高高手帮下忙 谢谢

import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;

public class calculate24 extends JFrame{

private javax.swing.JPanel jContentPane = null;
private JLabel jLabel = null;
private JLabel jLabel1 = null;
private JTextField jTextField = null;
private JTextField jTextField1 = null;
private JTextArea jTextArea = null;
private JLabel jLabel2 = null;
private JButton jButton = null;
private JScrollPane jScrollPane = null;

private JButton jButton1 = null;
private JButton jButton2 = null;
private JButton jButton3 = null;
private JButton j