Results 1 to 2 of 2
Like Tree1Likes
  • 1 Post By jim829

Thread: How to draw something not immediately after run?

  1. #1
    Vorpike is offline Member
    Join Date
    Jun 2013
    Rep Power

    Question How to draw something not immediately after run?

    So I drew a menu in DrawingPanel extends JPanel, that gets user input of number of players...etc. I also have a boolean, when true, the board is drawn, but apparently, right when I run, the boolean is checked, returns false and so board isn't drawn at all. When the user finishes input, the boolean becomes true, but the board doesn't get drawn. So my question is, how do I draw something not immediately when the program is ran?

  2. #2
    jim829 is online now Senior Member
    Join Date
    Jan 2013
    Northern Virginia, United States
    Rep Power

    Default Re: How to draw something not immediately after run?

    After the boolean becomes true, use the statement repaint().

    AlexGraal likes this.
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Similar Threads

  1. Certified (SCJP) Application Analyst Needed Immediately!
    By erictgroup in forum Jobs Offered
    Replies: 0
    Last Post: 12-16-2010, 02:00 PM

Tags for this Thread

Posting Permissions

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