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.
Type: Posts; User: Sean4u
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.
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...
You never call repaint() in your code. Repaint only 'requests' a paint, it doesn't force one. Resizing your window also requests a paint.
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)
...