September 04, 2010, 05:40:10 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  Home Help Media Affiliates Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: urgent need help to convert my code to GUI  (Read 1981 times)
0 Members and 1 Guest are viewing this topic.
placidphyll
Junior Member
*

Reputation: 0
Offline Offline
Posts: 1
Referrals: 0

Awards
« on: November 20, 2009, 11:17:24 AM »

my application allows a student to open a savings account , the student has to submit his or her names,faculty,course,year of study,university,telephone contact and email address. the student can withdraw ,deposit and perform balance enquiries with the account, but i want any one to help me develop the GUI for this code,
thanks

Code:

    import java.util.InputMismatchException;
    import java.util.Scanner;

    public class savingsAccount

    {
       
    void display()


    {

       
    Scanner input = new Scanner(System.in);
          boolean continueloop = true;
          do
          {
             try
             {
                System.out.println("  enter name  ");
                String name = input.next();
                System.out.println("   year of study  .");
              int year = input.nextInt();
                   System.out.println("   enter faculty   ");
                String faculty = input.next();
                System.out.println("  enter course   ");   
                String course = input.next();
                System.out.println("  enter university  ");
                String university = input.next();
                System.out.println("  enter telephone no  .");
                int telephone = input.nextInt();
                System.out.println("  enter email address  ");
                String emailAddress = input.next();
                System.out.println("  enter physical address  ");
                String paddress = input.next();
             System.out.println("");
               
             
                //   continueloop = false;
                   
    System.out.println(" thanks for creating an account");
    System.out.println("");
    System.out.println(" enter deposit");
       double savings =0;
       double deposit = input.nextInt();
       
       //System.out.println("do you want to check yo balance");
          savings=savings+deposit;
       System.out.println("");
         
       System.out.println(" your savings is "+ savings );


    System.out.println("");
       System.out.println("   do you want to withdraw  " );
       System.out.println("");
          System.out.println(" enter amount you want to withdraw  ");
         
          int withdraw = input.nextInt();
         
       double   withdrawal=savings -withdraw;
       System.out.println("   you have withdrawn"+" " + withdraw +" "+" shillings "+" "+"and your balance is"+ " " +withdrawal);
       System.out.println("");
       System.out.println("");
       continueloop = false;
       
       
          }
             catch (InputMismatchException inputMismatchException)
             {
                System.err.printf("\nException: %s\n", inputMismatchException);
                input.nextLine();
               
                System.out.println(" ");
                System.out.println(" you must enter correct datatype . pliz try again \n");
             }
             `
          } while ( continueloop);
       }
    }

    this code implements the above one


    class createSavingsAccount
    {
       public static void main(String [] args){
         
             
          savingsAccount student= new savingsAccount();
          student.display();
          }
       }

//END

Logged
Javaforums.net :: a community about Java software development.
« on: November 20, 2009, 11:17:24 AM »

Your Ad Here
 Logged
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2620
Referrals: 13

WWW Awards
« Reply #1 on: November 20, 2009, 08:04:50 PM »

What have you done so far that you need help with?
Logged

Java and .NET developer

To students: It doesn't matter how hard you've studied; the material won't be on the exam anyway.

Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://img222.imageshack....707/arkietomatoesmall.jpg
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
trey
Member
*

Reputation: 0
Offline Offline
Posts: 16
Referrals: 0

Awards
« Reply #2 on: December 07, 2009, 08:57:09 PM »

Well having someone else make the GUI isn't your best bet, as it probably won't turn out as you want it to look. Some IDE's have tools to help you create a GUI for your software with very little knowledge of swing or the awt libraries, Netbeans for example.
Logged
lj1987
Member
*

Reputation: 0
Offline Offline
Posts: 16
Referrals: 0

Awards
« Reply #3 on: January 15, 2010, 05:14:12 AM »


 But a healthy lifestyle goes miles in making the skin look wow young. They should be used as a

supplement only. But, one should wow power leveling not forego healthy eating habits and a disciplined

lifestyle.Exercising is a good way to make the skin breathe. Fresh blood and oxygen come to the rescue and repair the skin, making it look young and

refreshing. Water is another indispensable item for glowing skin. Skin will lose out world of warcraft gold

on the water while internal organs will lap up most of it to help in their function. This will gold in wow

result in a shortage of water in the skin, leading to wrinkles. Water is one of the best anti-aging products.Although it cannot be classified under anti-

aging products, but fasting is another way to healthy living, and thus, glowing skin. It has been medically proven that a decreased food intake results in a

drop in insulin wow gold eu and temperature levels. This in turn, leads to longevity of life. Fasting

forces the body to use its surplus fat, thus burning the calories and making the body lean and healthy.As we age, we are also more susceptible to weakened

muscle control, poorer vision and other things that can contribute to more danger. So, a wow cheap gold

thorough safety check is suggested. I recommend asking another party to perform a check to make sure all potential hazard areas are covered. Some items that

may be necessary for your added safety are grab bars for the shower/bathroom, shower chairs, walkers best wow

gold
and rollators, non-slip rugs; even some simple things such as simply replacing some light bulbs.The other product area refers to items assisting

with providing a sense of security for you and your family. Items such as patient monitors, whole house alarm systems, even an AED unit for those with heart

disease could be useful.Bottom-line, YOU wow gold cheap are your own best advocate


« Last Edit: January 15, 2010, 11:04:15 AM by HappyFace » Logged
Javaforums.net :: a community about Java software development.
   

 Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Your Ad Here
Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.294 seconds with 37 queries.

Google visited last this page August 26, 2010, 08:16:03 PM