switch (guiComponentFactory.getScreenHandler().getMode()) {
switch (guiRoot.getScreenHandler().getMode()) {
    public void showContent(JComponent component) {        JComponent contentPanel;        if (!(component instanceof View)) {            contentPanel = new javax.swing.JPanel();            contentPanel.setLayout(new java.awt.GridBagLayout());            GridBagConstraints constraints = new GridBagConstraints();            constraints.gridx = 0;            constraints.gridy = 0;            constraints.weightx = 1.0;            constraints.weighty = 1.0;            contentPanel.add(component, constraints);                        constraints = new GridBagConstraints();            constraints.gridx = 0;            constraints.gridy = 1;            contentPanel.add(closeButton, constraints);        } else {            contentPanel = component;        }                contentPanel.setBorder(defaultBorder);	switch (guiComponentFactory.getScreenHandler().getMode()) {	    case ScreenHandler.FULL_SCREEN:		JInternalFrame jif = new JInternalFrame("JFreerails Dialog",			true);		jif.getContentPane().add(contentPanel);		jif.pack();		jif.setLocation((frame.getWidth() - jif.getWidth()) / 2,			(frame.getHeight() - jif.getHeight()) / 2);		frame.getLayeredPane().add(jif, JLayeredPane.MODAL_LAYER);		dialog = jif;		jif.show();		break;	    default:		JDialog jd = new JDialog(frame, "JFreerails Dialog", false);		jd.getContentPane().add(contentPanel);		jd.pack();		jd.setLocation(frame.getX() +			(frame.getWidth() - jd.getWidth()) / 2,		       	frame.getY() +			(frame.getHeight() - jd.getHeight()) / 2);		dialog = jd;		jd.show();		break;	}    }