Frame frame = JOptionPane.getFrameForComponent( parent ); dialog = new GenerateStatechartDialog( frame, true, m ); dialog.setVisible( true );
if (m == null) { JOptionPane.showMessageDialog(parent, "No model loaded.", "Error", JOptionPane.INFORMATION_MESSAGE ); } else { Frame frame = JOptionPane.getFrameForComponent( parent ); dialog = new GenerateStatechartDialog( frame, true, m ); dialog.setVisible( true ); }
	public static void showDialog(Component parent, Model m) {		Frame frame = JOptionPane.getFrameForComponent( parent );		dialog = new GenerateStatechartDialog( frame, true, m );		dialog.setVisible( true );	}