package ui.model; public class idCounter { private static int counter = 1; public static synchronized int nextId() { return counter++; } /** * @return the counter */ public static int getCounter() { return counter; } /** * @param counter the counter to set */ public static void setCounter(int counter) { idCounter.counter = counter; } }