『onicon f 3500』Related information(clamp on meter|electromagnetic meter|venturi meterrotameter|orifice meter|ultrasonic flow meter|mass flow meter|coriolis mass flow meter|coriolis flow meter|magnetic flow meter|magmeter flow meter|magflow flow meter|mag meter flow meter|electromagnetic flow meter|vortex flow meter|turbine flow meter|thermal mass flow meter|thermal flow meter|rotameter flow meter)

1. Write a calculator in JAVA
import java. awt. BorderLayout; import java.awt.Color; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JTextField; import javax.swing.SwingConstants; public class Jisuanqi extends JFrame implements ActionListener {/*** */private static final long serialVersionUID = 1L;Result result = new Result(); // Define the panel of text as Number_Key numb_key=new Number_Key(); //Define button panel//When clicking buttons+, -, *,/, com = trueboolean com = false; //When i=0, it means it is our first input and the string text will not accumulate. int i=0; //Store the content of text String text=""; //Click the buttons+, -, *, and/or the previous value double defbutton=0 for storing and storing ears; //The codes for+, -, *, and/are 1, 2, 3, and 4int symbol=0, respectively; //Constructor Jisuanqi() {super ("WangJiao");//Set the label cover question setDefaultCloseOperation (JFrame.EXIT_ON_COSE); //Set JPanel pane=new JPanel() to exit the program when closing the form; //Define the main panel pane. setLayout (new BorderLayout()); setBounds(380, 220, 30, 80); //The first two parameters are the coordinates displayed on the screen, and the last two are the size//replacement icon ImageIcon icon=new ImageIcon ("F: 1. GIF"); // Jisuanqi.class.getResource("APPLE.GIF")// ); setIconImage(icon.getImage()); pane.add(result, BorderLayout.NORTH); pane.add(number_key, BorderLayout.CENTER); pane.add(number_key.equal, BorderLayout.SOUTH); number_key.one.addActionListener(this); //Add listening event number \ key.two. addActionListen


Current position > Product detail