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
    Posts
    6
    Rep Power
    0

    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 offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    3,920
    Rep Power
    5

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

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

    Regards,
    Jim
    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, 03: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
  •