);
jianJButton.addActionListener(
new ActionListener() // anonymous inner class
{
// event handler called when nineJButton is clicked
public void actionPerformed(ActionEvent event) {
jianJButtonActionPerformed(event);
try {
messageJTextArea.setText(number1 + "-");
} catch (Exception e) {
}
}
} // end anonymous inner class
); // end call to addActionListener
chengJButton = new JButton();
chengJButton.setBounds(240, 130, 50, 50);
chengJButton.setFont(new Font("宋体", Font.BOLD, 24));
chengJButton.setText("*");
chengJButton.setBorder(BorderFactory.createRaisedBevelBorder());
buttonsJPanel.add(chengJButton);
chengJButton.addActionListener(
new ActionListener() // anonymous inner class
{
// event handler called when nineJButton is clicked
public void actionPerformed(ActionEvent event) {
chengJButtonActionPerformed(event);
messageJTextArea.setText(number1 + "*");
}
} // end anonymous inner class
); // end call to addActionListener
chuJButton = new JButton();
chuJButton.setBounds(240, 190, 50, 50);
chuJButton.setFont(new Font("宋体", Font.BOLD, 24));
chuJButton.setT
ext("/");
chuJButton.setBorder(BorderFactory.createRaisedBevelBorder());
buttonsJPanel.add(chuJButton);
chuJButton.addActionListener(
new ActionListener() // anonymous inner class
{
// event handler called when nineJButton is clicked
public void actionPerformed(ActionEvent event) {
chuJButtonActionPerformed(event);
messageJTextArea.setText(number1 + "/");
}
} // end anonymous inner class
); // end call to addActionListener
sinJButton = new JButton();
sinJButton.setBounds(15, 190, 50, 50);
sinJButton.setFont(new Font("宋体", Font.BOLD, 24));
sinJButton.setText("sin");
sinJButton.setBorder(BorderFactory.createRaisedBevelBorder());
buttonsJPanel.add(sinJButton);
sinJButton.addActionListener(
new ActionListener() // anonymous inner class
{
// event handler called when nineJButton is clicked
public void actionPerformed(ActionEven