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 solely 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; private 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. rangeDefaultToolkit().getImage(Calculate.class.getResource(calc.gif))); // We dont want window to close mechanically by default setDefaultCloseOperation( wind owConstants.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( newborn WindowAdapter() { public unoccupied windowClosing(WindowEvent e) { Calculate.this.dispose(); System.runFinalization(); System.
gc(); System.exit(0); } }); tempdispl ayNum = 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.