public class calculator extends javax.swing.JFrame {
public calculator() {
initComponents();
}
@SuppressWarnings("unchecked")
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
jButton6 = new javax.swing.JButton();
jButton7 = new javax.swing.JButton();
jButton8 = new javax.swing.JButton();
jButton9 = new javax.swing.JButton();
jButton10 = new javax.swing.JButton();
jButton11 = new javax.swing.JButton();
jButton13 = new javax.swing.JButton();
jButton14 = new javax.swing.JButton();
jButton15 = new javax.swing.JButton();
jButton16 = new javax.swing.JButton();
jButton17 = new javax.swing.JButton();
jButton18 = new javax.swing.JButton();
jButton12 = new javax.swing.JButton();
jButton19 = new javax.swing.JButton();
jButton20 = new javax.swing.JButton();
jButton21 = new javax.swing.JButton();
jButton22 = new javax.swing.JButton();
jButton23 = new javax.swing.JButton();
jButton24 = new javax.swing.JButton();
jButton26 = new javax.swing.JButton();
jTextField8 = new javax.swing.JTextField();
jLabel1.setText("jLabel1");
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jButton6.setFont(new java.awt.Font("宋体", 0, 48));
jButton6.setText("00");
jButton6.setToolTipText("");
jButton6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton6ActionPerformed(evt);
}
});
jButton7.setFont(new java.awt.Font("宋体", 0, 48));
jButton7.setText("3");
jButton7.setToolTipText("");
jButton7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton7ActionPerformed(evt);
}
});
jButton8.setFont(new java.awt.Font("宋体", 0, 48));
jButton8.setText("0");
jButton8.setToolTipText("");
jButton8.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton8ActionPerformed(evt);
}
});
jButton9.setFont(new java.awt.Font("宋体", 0, 48));
jButton9.setText(".");
jButton9.setToolTipText("");
jButton9.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton9ActionPerformed(evt);
}
});
jButton10.setFont(new java.awt.Font("宋体", 0, 48));
jButton10.setText("2");
jButton10.setToolTipText("");
jButton10.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton10ActionPerformed(evt);
}
});
jButton11.setFont(new java.awt.Font("宋体", 0, 48));
jButton11.setText("1");
jButton11.setToolTipText("");
jButton11.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton11ActionPerformed(evt);
}
});
jButton13.setFont(new java.awt.Font("宋体", 0, 48));
jButton13.setText("5");
jButton13.setToolTipText("");
jButton13.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton13ActionPerformed(evt);
}
});
jButton14.setFont(new java.awt.Font("宋体", 0, 48));
jButton14.setText("6");
jButton14.setToolTipText("");
jButton14.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton14ActionPerformed(evt);
}
});
jButton15.setFont(new java.awt.Font("宋体", 0, 48));
jButton15.setText("4");
jButton15.setToolTipText("");
jButton15.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton15ActionPerformed(evt);
}
});
jButton16.setFont(new java.awt.Font("宋体", 0, 48));
jButton16.setText("7");
jButton16.setToolTipText("");
jButton16.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton16ActionPerformed(evt);
}
});
jButton17.setFont(new java.awt.Font("宋体", 0, 48));
jButton17.setText("8");
jButton17.setToolTipText("");
jButton17.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton17ActionPerformed(evt);
}
});
jButton18.setFont(new java.awt.Font("宋体", 0, 48));
jButton18.setText("9");
jButton18.setToolTipText("");
jButton18.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton18ActionPerformed(evt);
}
});
jButton12.setFont(new java.awt.Font("宋体", 0, 48));
jButton12.setText("*");
jButton12.setToolTipText("");
jButton12.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton12ActionPerformed(evt);
}
});
jButton19.setFont(new java.awt.Font("宋体", 0, 48));
jButton19.setText("-");
jButton19.setToolTipText("");
jButton19.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton19ActionPerformed(evt);
}
});
jButton20.setFont(new java.awt.Font("宋体", 0, 48));
jButton20.setText("+");
jButton20.setToolTipText("");
jButton20.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton20ActionPerformed(evt);
}
});
jButton21.setFont(new java.awt.Font("宋体", 0, 48));
jButton21.setText("=");
jButton21.setToolTipText("");
jButton21.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton21ActionPerformed(evt);
}
});
jButton22.setFont(new java.awt.Font("宋体", 0, 48));
jButton22.setText("C");
jButton22.setToolTipText("");
jButton22.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton22ActionPerformed(evt);
}
});
jButton23.setFont(new java.awt.Font("宋体", 0, 48));
jButton23.setText("<-");
jButton23.setToolTipText("");
jButton23.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton23ActionPerformed(evt);
}
});
jButton24.setFont(new java.awt.Font("宋体", 0, 48));
jButton24.setText("%");
jButton24.setToolTipText("");
jButton24.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton24ActionPerformed(evt);
}
});
jButton26.setFont(new java.awt.Font("宋体", 0, 48));
jButton26.setText("/");
jButton26.setToolTipText("");
jButton26.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton26ActionPerformed(evt);
}
});
jTextField8.setFont(new java.awt.Font("宋体", 0, 48));
jTextField8.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jTextField8ActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton21, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton15, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jButton13, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton14, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton19, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton20, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGroup(layout.createSequentialGroup()
.addComponent(jButton16, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton17, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton18, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton12, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createSequentialGroup()
.addComponent(jButton22, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton24, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton23, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton26, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jTextField8))
.addGap(0, 0, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton26, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton23, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton22, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton24, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton16, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton17, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton18, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton12, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton15, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton13, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton14, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton19, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton20, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton21, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)))
);
pack();
}
char flag='$';
private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {
if(flag=='#')
jTextField8.setText("");
if(flag != '+'&&flag != '-'&&flag != '*'&&flag != '/'&&flag != '%')
flag='$';
jTextField8.setText(jTextField8.getText()+"1");
}
private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {
if(flag=='#')
jTextField8.setText("");
if(flag != '+'&&flag != '-'&&flag != '*'&&flag != '/'&&flag != '%')
flag='$';
jTextField8.setText(jTextField8.getText()+"2");
}
private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {
if(flag=='#')
jTextField8.setText("");
if(flag != '+'&&flag != '-'&&flag != '*'&&flag != '/'&&flag != '%')
flag='$';
jTextField8.setText(jTextField8.getText()+"3");
}
private void jButton15ActionPerformed(java.awt.event.ActionEvent evt) {
if(flag=='#')
jTextField8.setText("");
if(flag != '+'&&flag != '-'&&flag != '*'&&flag != '/'&&flag != '%')
flag='$';
jTextField8.setText(jTextField8.getText()+"4");
}
private void jButton13ActionPerformed(java.awt.event.ActionEvent evt) {
if(flag=='#')
jTextField8.setText("");
if(flag != '+'&&flag != '-'&&flag != '*'&&flag != '/'&&flag != '%')
flag='$';
jTextField8.setText(jTextField8.getText()+"5");
}
private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {
if(flag=='#')
jTextField8.setText("");
if(flag != '+'&&flag != '-'&&flag != '*'&&flag != '/'&&flag != '%')
flag='$';
jTextField8.setText(jTextField8.getText()+"6");
}
private void jButton16ActionPerformed(java.awt.event.ActionEvent evt) {
if(flag=='#')
jTextField8.setText("");
if(flag != '+'&&flag != '-'&&flag != '*'&&flag != '/'&&flag != '%')
flag='$';
jTextField8.setText(jTextField8.getText()+"7");
}
private void jButton17ActionPerformed(java.awt.event.ActionEvent evt) {
if(flag=='#')
jTextField8.setText("");
if(flag != '+'&&flag != '-'&&flag != '*'&&flag != '/'&&flag != '%')
flag='$';
jTextField8.setText(jTextField8.getText()+"8");
}
private void jButton18ActionPerformed(java.awt.event.ActionEvent evt) {
if(flag=='#')
jTextField8.setText("");
if(flag != '+'&&flag != '-'&&flag != '*'&&flag != '/'&&flag != '%')
flag='$';
jTextField8.setText(jTextField8.getText()+"9");
}
private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {
if(flag=='#')
jTextField8.setText("");
if(flag != '+'&&flag != '-'&&flag != '*'&&flag != '/'&&flag != '%')
flag='$';
jTextField8.setText(jTextField8.getText()+"0");
}
private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {
if(flag=='#')
jTextField8.setText("");
if(flag != '+'&&flag != '-'&&flag != '*'&&flag != '/'&&flag != '%')
flag='$';
jTextField8.setText(jTextField8.getText()+"00");
}
private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {
if(flag=='#')
jTextField8.setText("");
if(flag != '+'&&flag != '-'&&flag != '*'&&flag != '/'&&flag != '%')
flag='$';
if(jTextField8.getText().length()<1)
jTextField8.setText(jTextField8.getText()+"0.");
else
jTextField8.setText(jTextField8.getText()+".");
}
private void jButton20ActionPerformed(java.awt.event.ActionEvent evt) {
if(flag=='#')
jTextField8.setText("");
jTextField8.setText(jTextField8.getText()+"+");
flag = '+';
}
private void jButton19ActionPerformed(java.awt.event.ActionEvent evt) {
if(flag=='#')
jTextField8.setText("");
jTextField8.setText(jTextField8.getText()+"-");
flag = '-';
}
private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {
if(flag=='#')
jTextField8.setText("");
jTextField8.setText(jTextField8.getText()+"*");
flag = '*';
}
private void jButton26ActionPerformed(java.awt.event.ActionEvent evt) {
if(flag=='#')
jTextField8.setText("");
jTextField8.setText(jTextField8.getText()+"/");
flag = '/';
}
private void jButton24ActionPerformed(java.awt.event.ActionEvent evt) {
if(flag=='#')
jTextField8.setText("");
jTextField8.setText(jTextField8.getText()+"%");
flag = '%';
}
private void jButton22ActionPerformed(java.awt.event.ActionEvent evt) {
jTextField8.setText("");
}
private void jButton23ActionPerformed(java.awt.event.ActionEvent evt) {
if(jTextField8.getText().length()>=1)
jTextField8.setText(jTextField8.getText().substring(0, jTextField8.getText().length()-1));
}
private void jTextField8ActionPerformed(java.awt.event.ActionEvent evt) {
}
private void jButton21ActionPerformed(java.awt.event.ActionEvent evt) {
jTextField8.setText(jTextField8.getText()+"=");
String s = jTextField8.getText();
int index1 = s.indexOf(flag);
int index2 = s.indexOf('=');
int has_operator = 1;
double txt1 = Double.parseDouble(s.substring(0, index1));
double txt2 = Double.parseDouble(s.substring(index1+1, index2));
double result = 0;
switch(flag){
case '+':result = txt1 + txt2;break;
case '-':result = txt1 - txt2;break;
case '*':result = txt1 * txt2;break;
case '/':result = txt1 / txt2;break;
case '%':result = (int)txt1 % (int)txt2;break;
default:has_operator = 0;
}
if(has_operator==1){
if(flag=='/'&&txt2==0){
jTextField8.setText(s+"分母不能为0");
}else{
if(result-(int)result==0)
jTextField8.setText(s+(int)result);
else
jTextField8.setText(s+result);
}
flag = '#';
}
}
public static void main(String args[]) {
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(calculator.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(calculator.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(calculator.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(calculator.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new calculator().setVisible(true);
}
});
}
private javax.swing.JButton jButton10;
private javax.swing.JButton jButton11;
private javax.swing.JButton jButton12;
private javax.swing.JButton jButton13;
private javax.swing.JButton jButton14;
private javax.swing.JButton jButton15;
private javax.swing.JButton jButton16;
private javax.swing.JButton jButton17;
private javax.swing.JButton jButton18;
private javax.swing.JButton jButton19;
private javax.swing.JButton jButton20;
private javax.swing.JButton jButton21;
private javax.swing.JButton jButton22;
private javax.swing.JButton jButton23;
private javax.swing.JButton jButton24;
private javax.swing.JButton jButton26;
private javax.swing.JButton jButton6;
private javax.swing.JButton jButton7;
private javax.swing.JButton jButton8;
private javax.swing.JButton jButton9;
private javax.swing.JLabel jLabel1;
private javax.swing.JTextField jTextField8;
}