Search:

Type: Posts; User: curmudgeon

Search: Search took 0.07 seconds.

  1. Replies
    7
    Views
    2,083

    Re: Swing Timer and Java Noob

    Good. This also will help you be able to debug and test smaller units of code in isolation from other code which is always a good thing. If you do this, then you'll also want to take care that the...
  2. Replies
    7
    Views
    2,083

    Re: Swing Timer and Java Noob

    Yes, the database code should be in different classes, and no, not in the main method. You will want to read up on creating and using classes as well as OOP principles.
  3. Replies
    7
    Views
    2,083

    Re: Swing Timer and Java Noob

    Yes, you are right -- a Thread.sleep(...) as no business being there, so get rid of it. Next -- why are you using a Swing Timer here in the first place? What purpose does it serve in this code?...
Results 1 to 3 of 3