Search:

Type: Posts; User: Sean4u

Search: Search took 0.09 seconds.

  1. Re: Challenge: I need an animation loop outside of the paint method.

    If it was a constructor it would say

    public Star(/*whatever*/)
    What you've posted there is a method called Star with a void return type.
  2. Re: Challenge: I need an animation loop outside of the paint method.

    By doing what you were doing the other day that crippled my PC. You really don't want to force a repaint. What you want to do is to time your requests to repaint at a nice rate that the windowing...
  3. Re: Challenge: I need an animation loop outside of the paint method.

    You never call repaint() in your code. Repaint only 'requests' a paint, it doesn't force one. Resizing your window also requests a paint.
  4. Re: Challenge: I need an animation loop outside of the paint method.

    public class StaticInitializerInside
    {
    public final static String[] A_LOT_OF_STRINGS = new String[1000];
    static
    {
    int i = 0;
    for (String s : A_LOT_OF_STRINGS)
    ...
Results 1 to 4 of 4