Results 1 to 1 of 1

Thread: Java Swing Calculator Tutorial

  1. #1
    hemanthjava Guest

    Java Swing Calculator Tutorial

    1. A four-function calculator with the following functions:
    * Addition - adds two numbers: n1 + n2.
    * Subtraction - subtracts number two from number one: n1 - n2.
    * Multiplication - Multiplies two numbers: n1 * n2.
    * Division - divides number two into number one: n1 / n2.

    2. Used JButton for the numbers and functions.

    3. Used Jmenu for File and help.

    4. Created a class to respond to the events caused by numbers, functions, exit, help and about functionality.

    5. Used BorderLayout to layout various components in the Calculator Frame. A BorderLayout lays out a container, arranging and resizing its components to fit in five regions: north, south, east, west, and center.
    Last edited by dr.nil; 15-10-2006 at 04:30 PM.

Similar Threads

  1. Applets V/s Swing in JAVA
    By "Dritan" in forum Software Development
    Replies: 3
    Last Post: 14-12-2010, 09:04 AM
  2. Java Swing and MySQL
    By shelton141 in forum Software Development
    Replies: 1
    Last Post: 22-09-2009, 08:50 AM
  3. drawPolygon in java Swing?
    By JagdishP in forum Software Development
    Replies: 3
    Last Post: 07-08-2009, 11:33 PM
  4. Message Box example for Java Swing
    By Visala28 in forum Software Development
    Replies: 3
    Last Post: 31-07-2009, 05:30 PM
  5. Java swing help with repaint()
    By grudge in forum Software Development
    Replies: 4
    Last Post: 23-07-2009, 03:41 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,191,196.80632 seconds with 17 queries