try { if(argv.length > 0) delay = Integer.parseInt(argv[0]); } catch (Exception e) {  } JFrame wnd = new JFrame("JNode Tetris");  Tetris tetris = new Tetris(); tetris.delay = delay; wnd.add(tetris, BorderLayout.CENTER); wnd.setSize(DIM.width + 7, DIM.height + CELL + CELL /2); wnd.show(); tetris.requestFocus(); tetris.newGame(); }
try { if(argv.length > 0) delay = Integer.parseInt(argv[0]); } catch (Exception e) {  } JFrame frame = new JFrame("Tetris"); Tetris tetris = new Tetris(); tetris.delay = delay; frame.add(tetris, BorderLayout.CENTER); frame.setSize(DIM.width + 7, DIM.height + CELL + CELL /2); frame.setVisible(true); tetris.requestFocus(); tetris.newGame(); } }); }
	public static void main(String[] argv) {		int delay = 500;		try {			if(argv.length > 0) delay = Integer.parseInt(argv[0]);		} catch (Exception e) {			// ignore		}		JFrame wnd = new JFrame("JNode Tetris");    	Tetris tetris = new Tetris();	    tetris.delay = delay;		wnd.add(tetris, BorderLayout.CENTER);		wnd.setSize(DIM.width + 7, DIM.height + CELL + CELL /2);		wnd.show();		tetris.requestFocus();		tetris.newGame();	}