展开全部
||这有什么难的 我把我那个代码给你算了 是SWing写的import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.SwingConstants;public class TextOne extends JFrame{ /**
* @e68a8462616964757a686964616f31333332643836param args
*/
public String strCo = "";
public double preNum;
public double nextNum;
public int loca;
public boolean flag = false;
public int mark;
public static void main(String[] args) {
// TODO Auto-generated method stub
TextOne frame = new TextOne();
frame.setVisible(true);