minute javax.swing.*; import javax.swing.border.EmptyBorder; public class Calculate extends JFrame implements ActionListener,MouseListener { // This is of import class that form graphical user interface and every(prenominal) Action is here. hush-hush JButton jb_one,jb_two,jb_three,jb_four,jb_five,jb_six,jb_seven,jb_eight,jb_nine,jb_zero; clubby JButton jb_plus,jb_minus,jb_divide,jb_multiply; confidential JButton jb_sin,jb_cos,jb_tan,jb_asin,jb_acos,jb_atan,jb_pie,jb_E; private JButton jb_decimalpoint,jb_equalto,jb_fact,jb_power,jb_changesign,jb_reciporcal; private JButton jb_todeg,jb_torad,jb_round,jb_CA,jb_CE,jb_Backspace; private JRadioButton jrb_deg,jrb_rad; private ButtonGroup jrb_group; setIconImage(Toolkit. nettleDefaultToolkit().getImage(Calculate.class.getResource(calc.gif))); // We dont want window to close automatically by default setDefaultC loseOperation(windowpaneConstants.DO_NOTHING_ON_CLOSE); // versed Class for Main Window Listener.It is executed when // window is closing.It cleans the memmory explictly and consequently it // application exits. addWindowListener( novel WindowAdapter() { public abandon windowClosing(WindowEvent e) { Calculate.this.dispose(); System.runFinalization(); System.gc(); System.exit(0); } }); tempdisplayNum = 0; resetAllButton(); equalPressed = false; // GUI Formation JPanel jp_main = new JPanel(); jp_main.setLayout(new BorderLayout()); jp_main.setBorder(new EmptyBorder(new Insets(3,5,5,5))); JPanel jp_top = new JPanel(); jp_top.setLayout(new BorderLayout()); JPanel jp_top_down = new JPanel(); ! jp_top_down.setLayout(new BorderLayout()); JPanel jp_top_west = new JPanel(); jb_Backspace = new JButton( typewrite);...If you want to get a full essay, order it on our website: BestEssayCheap.com
If you want to get a full essay, visit our page: cheap essay
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.