Results 1 to 2 of 2
  1. #1
    Dezaroth is offline Member
    Join Date
    May 2014
    Posts
    1
    Rep Power
    0

    Default Pause/unpause with single key input

    Im codeing a game and im trying to impliment a pause and unpause button. in the BoardPanel class i've added the button's 'p' and 'o' to game.wait() and game.notify() (main code is in game class). however the game.wait is having issues and even if i throw interruptedexception or try/catch it doesnt work. I'd like to code it to a single button if at all possible.

    your help in this matter is greatly appreciated.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,899
    Rep Power
    25

    Default Re: Pause/unpause with single key input

    Please make a small, complete program that compiles, executes and shows the problem.
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Loop with pause
    By mwadeiom in forum New To Java
    Replies: 5
    Last Post: 05-11-2013, 08:54 PM
  2. How to pause
    By ravjot28 in forum Threads and Synchronization
    Replies: 0
    Last Post: 03-31-2010, 07:09 AM
  3. Single XSD Creation for input/output
    By lavanya82 in forum XML
    Replies: 0
    Last Post: 03-13-2009, 01:02 PM
  4. Help with Pause
    By trill in forum Java Applets
    Replies: 2
    Last Post: 09-28-2007, 09:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •