Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    25
    Views
    2,792

    Re: I'm new to JFrame and need some help

    When you get an exception using a method, you need to go into the API doc and read the description of why the method throws the exception. Have you done that? Do you have any questions about what...
  2. Replies
    25
    Views
    2,792

    Re: I'm new to JFrame and need some help

    Please post the code that is getting the exception and the full text of the error message.
  3. Replies
    25
    Views
    2,792

    Re: I'm new to JFrame and need some help

    See post #15:
    You normally do not call the run() method. That is done by the thread when it starts executing a Runnable.

    The run() method does not return to the constructor so it can return to...
  4. Replies
    25
    Views
    2,792

    Re: I'm new to JFrame and need some help

    Please post a small program (not the whole project) that compiles, executes and shows the problem.

    I have not way to open a .rar file.
  5. Replies
    25
    Views
    2,792

    Re: I'm new to JFrame and need some help

    Do you have some code I can compile, execute and see the problem? Short pieces of code can leave out something important.

    You normally do not call the run() method. That is done by the thread...
  6. Replies
    25
    Views
    2,792

    Re: I'm new to JFrame and need some help

    Can you post more code so we can see the full context of what is happening.




    while(true) //infinite loop
    Yes that is what I'd expect.
  7. Replies
    25
    Views
    2,792

    Re: I'm new to JFrame and need some help

    The java program calls the paint()method when it thinks the GUI needs to be redrawn or after the code has called the repaint() method.

    You should post the code you are executing when you ask...
  8. Replies
    25
    Views
    2,792

    Re: I'm new to JFrame and need some help

    How do you know how many times the paint() method is called?
  9. Replies
    25
    Views
    2,792

    Re: I'm new to JFrame and need some help

    What are your questions or problems?
  10. Replies
    25
    Views
    2,792

    Re: I'm new to JFrame and need some help

    Time to build up your vocabulary. Google is a good place to start
    GUI class - a class that is displayed on the monitor like JFrame or JButton
    JVM - Java Virtual Machine. The java program that...
  11. Replies
    25
    Views
    2,792

    Re: I'm new to JFrame and need some help

    What class is the paint() method in? If its in a GUI class, the JVM will call it every time the GUI needs to be drawn or after the code calls repaint().

    Canvas is the name of a Java SE class. You...
Results 1 to 11 of 11