public static void validateWithinBounds(String msg, long min, long max, long... values) throws IllegalArgumentException { validateWithinBounds(IllegalArgumentException.class, msg, min, max, values); }
public static void validateWithinBounds(String msg, long min, long max, long... values) throws IllegalArgumentException { validateWithinBounds(IllegalArgumentException.class, msg, min, max, values); }
public static JFrame createFrame(String title, JPanel panel, Preferences prefs, int defWidth, int defHeight) { ValidationUtils.validateWithinBounds("defWidth/defHeight cannot be smaller than 0 or greater than 100" , 0, 100, defHeight, defWidth); final Frame frame = new Frame(title, prefs); centerFrame(frame, prefs, defWidth, defHeight); frame.add(panel); return frame; }
public static JFrame createFrame(String title, JPanel panel, Preferences prefs, int defWidth, int defHeight) { ValidationUtils.validateWithinBounds("defWidth/defHeight cannot be smaller than 0 or greater than 100" , 0, 100, defHeight, defWidth); final Frame frame = new Frame(title, prefs); centerFrame(frame, prefs, defWidth, defHeight); frame.add(panel); return frame; }