Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: abit of idea on how to make the program to repeat

  1. #1
    Junior Member
    Join Date
    Jul 2014
    Posts
    11
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default abit of idea on how to make the program to repeat

    ok can someone suggest me of a better way to make my GUI to repeat the whole process without RE RUNNING the GUI itself?
    in my case i am making a cashier like GUI app then what i want is that when i run it once then finished a transaction and showed the receipt or invoice i would be able to accept another customer without re running the app/gui im thinking of inserting the whole code inside a do-while statement but would there be another way?
    Thanks and more power!


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,323
    My Mood
    Hungover
    Thanks
    142
    Thanked 624 Times in 535 Posts

    Default Re: abit of idea on how to make the program to repeat

    Create a method that resets each component to its starting state.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    Jul 2014
    Posts
    11
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Re: abit of idea on how to make the program to repeat

    Quote Originally Posted by KevinWorkman View Post
    Create a method that resets each component to its starting state.
    uhm???.... >.<
    can you explain a bit and perhaps a sample code would help! thanks!

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,323
    My Mood
    Hungover
    Thanks
    142
    Thanked 624 Times in 535 Posts

    Default Re: abit of idea on how to make the program to repeat

    That's not really how this works. Where is your MCVE? What have you tried? What about my suggestion confused you?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. How can I make a loop repeat?
    By JohnEliot in forum What's Wrong With My Code?
    Replies: 7
    Last Post: March 12th, 2013, 09:43 PM
  2. How can I make a loop repeat?
    By JohnEliot in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 8th, 2013, 10:08 PM
  3. Hey guys need abit of help please stressing like a mad thing
    By shep in forum What's Wrong With My Code?
    Replies: 12
    Last Post: October 29th, 2012, 02:13 PM
  4. Wanting to repeat my program...
    By Shaybay92 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: August 8th, 2011, 08:29 AM
  5. [SOLVED] 2D Collections. How to make them and is it a good idea to do so?
    By javapenguin in forum What's Wrong With My Code?
    Replies: 3
    Last Post: January 15th, 2011, 12:38 AM