Code example for Preferences

Methods: getgetInt

0
	private static Dimension lastWindowSize;
	private static int lastView;
	private static String lastCrawl;
	 
	static { 
		int width = PREFERENCES.getInt("width", 0);
		int height = PREFERENCES.getInt("height", 0);
		if (width != 0 && height != 0) {
			lastWindowSize = new Dimension(width, height);
		} 
		 
		lastView = PREFERENCES.getInt("view", 0);
		 
		lastCrawl = PREFERENCES.get("crawl", "");
	} 
	 
	public static void setLastWindowSize(Dimension dimension) {
		lastWindowSize = dimension;
	} 
	 
	public static Dimension getLastWindowSize() {