G
Guest
Gast
Hallo, welche Variante ist besser oder schlechter, gehüpft wie gesprungen, oder was gibt es alternativ:
Code:
public class MainClass implements MainConstants {
public void doIt(){
setCursor(CURSOR_MOVE);
}
}
interface MainConstants {
static final Cursor CURSOR_MOVE = Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR);
...
...
}
Code:
public class MainClass implements MainConstants {
private static final Cursor CURSOR_MOVE = Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR);
...
...
public void doIt(){
setCursor(CURSOR_MOVE);
}
}