Example usage for java.awt Frame NORMAL

List of usage examples for java.awt Frame NORMAL

Introduction

In this page you can find the example usage for java.awt Frame NORMAL.

Prototype

int NORMAL

To view the source code for java.awt Frame NORMAL.

Click Source Link

Document

Frame is in the "normal" state.

Usage

From source file:corelyzer.ui.CorelyzerApp.java

@Override
public void windowDeiconified(final WindowEvent e) {
    // resume the GL windows
    for (int i = 0; i < windowVec.size(); i++) {
        Window jf;/*  w w  w. j a v  a2  s.c  o  m*/
        jf = windowVec.elementAt(i);
        if (jf != null) {
            jf.setVisible(true);
        }
    }

    // resume the tool window
    toolFrame.setVisible(true);

    // resume all plugin frame
    controller.deiconifyAllPlugins();

    // 2/28/2012 brg: Unclear why this works, but it does. Possibly because
    // plug-in mainFrame is associated with another thread?
    // to restore workaround in iconifying window
    if (!MAC_OS_X && usePluginUI) {
        getDefaultMainFrame().setVisible(false);
        getMainFrame().setExtendedState(Frame.NORMAL);
    }

    getMainFrame().setVisible(toolFrame.isAppFrameSelected());

    CorelyzerApp.getApp().suspendPaletteVisibilityManager(false);
}

From source file:org.geopublishing.atlasViewer.swing.AtlasViewerGUI.java

/**
 * Called via SingleInstanceListener / SingleInstanceService. Shows a
 * splashscreen and bring the existing instance to the front.
 *//* www  .  j  a  va  2 s  .c o m*/
@Override
public void newActivation(String[] arg0) {
    LOGGER.info(
            "A second instance of AtlasViewer has been started.. The single instance if requesting focus now...");

    /*
     * Showing the Spalshscreen for one secong
     */
    try {
        final URL splashscreenUrl = atlasConfig.getResource(AtlasConfig.SPLASHSCREEN_RESOURCE_NAME);
        if (splashscreenUrl != null) {
            JWindow splashWindow = new JWindow(atlasJFrame);
            JPanel panel = new JPanel(new BorderLayout());
            ImageIcon icon = new ImageIcon(splashscreenUrl);
            panel.add(new JLabel(icon), BorderLayout.CENTER);
            panel.setBorder(BorderFactory.createLineBorder(Color.BLACK));
            splashWindow.getContentPane().add(panel);
            splashWindow.getRootPane().setOpaque(true);
            splashWindow.pack();
            Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
            splashWindow.setLocation((int) (d.getWidth() - splashWindow.getWidth()) / 2,
                    (int) (d.getHeight() - splashWindow.getHeight()) / 2);
            splashWindow.setVisible(true);
            Thread.sleep(1500);
            splashWindow.dispose();
            splashWindow = null;
        }
    } catch (Exception e) {
        LOGGER.warn("Singleinstance.newActivation had problems while showing the splashscreen:", e);
    }

    if (getJFrame() != null) {
        if (!getJFrame().isShowing())
            getJFrame().setVisible(true);

        /* In case that it has been iconified */
        getJFrame().setExtendedState(Frame.NORMAL);

        getJFrame().requestFocus();
        getJFrame().toFront();
    }
}

From source file:org.geworkbench.engine.ccm.ComponentConfigurationManagerWindow.java

/**
 * Load method//  w  w  w . j  a va 2  s .  co  m
 */
public static void load(ComponentConfigurationManagerMenu menu) {
    if (ccmWindow == null) {
        ccmWindow = new ComponentConfigurationManagerWindow();
    }
    ccmWindow.frame.setExtendedState(Frame.NORMAL);
    ccmWindow.frame.setVisible(true);
}

From source file:org.geworkbench.engine.ccm.ComponentConfigurationManagerWindow2.java

/**
 * Load method//from  w  w  w  .  jav  a 2 s.com
 */
public static void load() {
    if (ccmWindow == null) {
        ccmWindow = new ComponentConfigurationManagerWindow2();
    }
    ccmWindow.frame.setExtendedState(Frame.NORMAL);
    ccmWindow.frame.setVisible(true);
}

From source file:org.geworkbench.engine.ccm.ComponentConfigurationManagerWindow2.java

/**
 * Load method/*from  w  ww  .j a  v a 2s .c  om*/
 */
public static void load(ComponentConfigurationManagerMenu menu) {
    if (ccmWindow == null) {
        ccmWindow = new ComponentConfigurationManagerWindow2();
    }
    ccmWindow.frame.setExtendedState(Frame.NORMAL);
    ccmWindow.frame.setVisible(true);
}

From source file:org.kuali.test.creator.TestCreator.java

private void loadPreferences() {
    try {//w w w.j av  a  2 s . com
        Preferences proot = Preferences.userRoot();
        Preferences node = proot.node(Constants.PREFS_ROOT_NODE);
        int left = node.getInt(Constants.PREFS_MAINFRAME_LEFT, Constants.MAINFRAME_DEFAULT_LEFT);
        int top = node.getInt(Constants.PREFS_MAINFRAME_TOP, Constants.MAINFRAME_DEFAULT_TOP);
        int width = node.getInt(Constants.PREFS_MAINFRAME_WIDTH, Constants.MAINFRAME_DEFAULT_WIDTH);
        int height = node.getInt(Constants.PREFS_MAINFRAME_HEIGHT, Constants.MAINFRAME_DEFAULT_HEIGHT);
        setState(node.getInt(Constants.PREFS_MAINFRAME_WINDOW_STATE, Frame.NORMAL));

        setBounds(left, top, width, height);

        node.flush();
    }

    catch (BackingStoreException ex) {
        LOG.error(ex.toString(), ex);
    }
}

From source file:org.ngrinder.recorder.Recorder.java

/**
 * Initialize global message handlers.//from ww w.  j  a  v  a2  s  .c  om
 * 
 * @param tabbedPane
 *            tabbedPane
 */
protected void initMessageHandler(final TabbedPane tabbedPane) {
    final File home = recorderConfig.getHome().getDirectory();
    final MessageBus messageBusInstance = MessageBus.getInstance();
    MessageBusConnection connect = messageBusInstance.connect();
    connect.subscribe(Topics.HOME, new PropertyChangeListener() {
        public void propertyChange(PropertyChangeEvent evt) {
            Browser browser = cast(evt.getSource());
            browser.navigate(toURL(tempFile).toString());
        }
    });
    connect.subscribe(Topics.APPLICATION_CLOSE, new PropertyChangeListener() {
        public void propertyChange(PropertyChangeEvent evt) {
            proxy.stopProxy();
            frame.setExtendedState(Frame.NORMAL);
            File frameInfoFile = recorderConfig.getHome().getFile("last_frame");
            try {
                Pair<Dimension, Point> pair = Pair.of(frame.getSize(), frame.getLocation());
                String frameInfo = gson.toJson(pair);
                FileUtils.writeStringToFile(frameInfoFile, frameInfo);
            } catch (Exception e) {
                LOGGER.error("Failed to save the frame info", e);
            }

            messageBusInstance.getPublisher(Topics.PREPARE_TO_CLOSE)
                    .propertyChange(new PropertyChangeEvent(this, "PREPARE_TO_CLOSE", null, home));

            tabbedPane.disposeAllTabs();
            frame.setVisible(false);
            frame.dispose();

            System.exit(0);
        }
    });
    connect.subscribe(Topics.WINDOW_MAXIMIZE, new PropertyChangeListener() {
        public void propertyChange(PropertyChangeEvent evt) {
            if (frame.getExtendedState() == Frame.MAXIMIZED_BOTH) {
                frame.setExtendedState(Frame.NORMAL);
            } else {
                frame.setExtendedState(Frame.MAXIMIZED_BOTH);
            }
        }
    });

    connect.subscribe(Topics.WINDOW_MINIMIZE, new PropertyChangeListener() {
        public void propertyChange(PropertyChangeEvent evt) {
            if (frame.getExtendedState() == Frame.ICONIFIED) {
                frame.setExtendedState(Frame.NORMAL);
            } else {
                frame.setExtendedState(Frame.ICONIFIED);
            }
        }
    });

    connect.subscribe(Topics.SHOW_ABOUT_DIALOG, new PropertyChangeListener() {
        public void propertyChange(PropertyChangeEvent evt) {
            AboutDialog dialog = AboutDialog.getInstance(frame, recorderConfig);
            dialog.setVisible(true);
        }
    });
}

From source file:org.yccheok.jstock.gui.JStock.java

private void createSystemTrayIcon() {
    if (SystemTray.isSupported()) {
        SystemTray tray = SystemTray.getSystemTray();
        final Image image = new javax.swing.ImageIcon(getClass().getResource("/images/128x128/chart.png"))
                .getImage();//from   w w  w .  j av  a 2s.  co m

        MouseListener mouseListener = new MouseListener() {

            @Override
            public void mouseClicked(MouseEvent e) {
                if (e.getButton() == MouseEvent.BUTTON1) {
                    JStock.this.setVisible(true);
                    JStock.this.setState(Frame.NORMAL);
                }
            }

            @Override
            public void mouseEntered(MouseEvent e) {
            }

            @Override
            public void mouseExited(MouseEvent e) {
            }

            @Override
            public void mousePressed(MouseEvent e) {
            }

            @Override
            public void mouseReleased(MouseEvent e) {
            }
        };

        ActionListener exitListener = new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                JStock.this.setVisible(false);
                JStock.this.dispose();
            }
        };

        PopupMenu popup = new PopupMenu();
        MenuItem defaultItem = new MenuItem(
                java.util.ResourceBundle.getBundle("org/yccheok/jstock/data/gui").getString("MainFrame_Exit"));
        defaultItem.addActionListener(exitListener);
        popup.add(defaultItem);

        trayIcon = new TrayIcon(image, GUIBundle.getString("MainFrame_Application_Title"), popup);

        ActionListener actionListener = new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
            }
        };

        trayIcon.setImageAutoSize(true);
        trayIcon.addActionListener(actionListener);
        trayIcon.addMouseListener(mouseListener);

        try {
            tray.add(trayIcon);
        } catch (AWTException e) {
            trayIcon = null;
            JOptionPane.showMessageDialog(JStock.this,
                    java.util.ResourceBundle.getBundle("org/yccheok/jstock/data/messages")
                            .getString("warning_message_trayicon_could_not_be_added"),
                    java.util.ResourceBundle.getBundle("org/yccheok/jstock/data/messages").getString(
                            "warning_title_trayicon_could_not_be_added"),
                    JOptionPane.WARNING_MESSAGE);
        }

    } else {
        //  System Tray is not supported
        trayIcon = null;
        JOptionPane.showMessageDialog(JStock.this,
                java.util.ResourceBundle.getBundle("org/yccheok/jstock/data/messages")
                        .getString("warning_message_system_tray_is_not_supported"),
                java.util.ResourceBundle.getBundle("org/yccheok/jstock/data/messages")
                        .getString("warning_title_system_tray_is_not_supported"),
                JOptionPane.WARNING_MESSAGE);
    }
}

From source file:org.yccheok.jstock.gui.MainFrame.java

private void createSystemTrayIcon() {
    if (SystemTray.isSupported()) {
        SystemTray tray = SystemTray.getSystemTray();
        final Image image;
        if (Utils.isWindows7() || Utils.isWindows8()) {
            image = new javax.swing.ImageIcon(getClass().getResource("/images/128x128/chart.png")).getImage();
        } else {/*from   w  w w .  j a  va 2s . c  om*/
            image = new javax.swing.ImageIcon(getClass().getResource("/images/16x16/chart.png")).getImage();
        }

        MouseListener mouseListener = new MouseListener() {

            @Override
            public void mouseClicked(MouseEvent e) {
                if (e.getButton() == MouseEvent.BUTTON1) {
                    MainFrame.this.setVisible(true);
                    MainFrame.this.setState(Frame.NORMAL);
                }
            }

            @Override
            public void mouseEntered(MouseEvent e) {
            }

            @Override
            public void mouseExited(MouseEvent e) {
            }

            @Override
            public void mousePressed(MouseEvent e) {
            }

            @Override
            public void mouseReleased(MouseEvent e) {
            }
        };

        ActionListener exitListener = new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                MainFrame.this.setVisible(false);
                MainFrame.this.dispose();
            }
        };

        PopupMenu popup = new PopupMenu();
        MenuItem defaultItem = new MenuItem(
                java.util.ResourceBundle.getBundle("org/yccheok/jstock/data/gui").getString("MainFrame_Exit"));
        defaultItem.addActionListener(exitListener);
        popup.add(defaultItem);

        trayIcon = new TrayIcon(image, GUIBundle.getString("MainFrame_Application_Title"), popup);

        ActionListener actionListener = new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
            }
        };

        trayIcon.setImageAutoSize(true);
        trayIcon.addActionListener(actionListener);
        trayIcon.addMouseListener(mouseListener);

        try {
            tray.add(trayIcon);
        } catch (AWTException e) {
            trayIcon = null;
            JOptionPane.showMessageDialog(MainFrame.this,
                    java.util.ResourceBundle.getBundle("org/yccheok/jstock/data/messages")
                            .getString("warning_message_trayicon_could_not_be_added"),
                    java.util.ResourceBundle.getBundle("org/yccheok/jstock/data/messages").getString(
                            "warning_title_trayicon_could_not_be_added"),
                    JOptionPane.WARNING_MESSAGE);
        }

    } else {
        //  System Tray is not supported
        trayIcon = null;
        JOptionPane.showMessageDialog(MainFrame.this,
                java.util.ResourceBundle.getBundle("org/yccheok/jstock/data/messages")
                        .getString("warning_message_system_tray_is_not_supported"),
                java.util.ResourceBundle.getBundle("org/yccheok/jstock/data/messages")
                        .getString("warning_title_system_tray_is_not_supported"),
                JOptionPane.WARNING_MESSAGE);
    }
}

From source file:pcgen.core.SettingsHandler.java

public static Dimension getOptionsFromProperties(final PlayerCharacter aPC) {
    Dimension d = new Dimension(0, 0);

    final String tempBrowserPath = getPCGenOption("browserPath", ""); //$NON-NLS-1$ //$NON-NLS-2$

    if (!"".equals(tempBrowserPath)) //$NON-NLS-1$
    {/* www .j  ava  2 s.co m*/
        setBrowserPath(tempBrowserPath);
    } else {
        setBrowserPath(null);
    }

    setLeftUpperCorner(new Point(getPCGenOption("windowLeftUpperCorner.X", -1.0).intValue(), //$NON-NLS-1$
            getPCGenOption("windowLeftUpperCorner.Y", -1.0).intValue())); //$NON-NLS-1$

    setWindowState(getPCGenOption("windowState", Frame.NORMAL)); //$NON-NLS-1$

    Double dw = getPCGenOption("windowWidth", 0.0); //$NON-NLS-1$
    Double dh = getPCGenOption("windowHeight", 0.0); //$NON-NLS-1$

    if (!CoreUtility.doublesEqual(dw.doubleValue(), 0.0) && !CoreUtility.doublesEqual(dh.doubleValue(), 0.0)) {
        final int width = Integer.parseInt(
                dw.toString().substring(0, Math.min(dw.toString().length(), dw.toString().lastIndexOf('.'))));
        final int height = Integer.parseInt(
                dh.toString().substring(0, Math.min(dh.toString().length(), dh.toString().lastIndexOf('.'))));
        d = new Dimension(width, height);
    }

    setCustomizerLeftUpperCorner(
            new Point(getPCGenOption("customizer.windowLeftUpperCorner.X", -1.0).intValue(), //$NON-NLS-1$
                    getPCGenOption("customizer.windowLeftUpperCorner.Y", -1.0).intValue())); //$NON-NLS-1$
    dw = getPCGenOption("customizer.windowWidth", 0.0); //$NON-NLS-1$
    dh = getPCGenOption("customizer.windowHeight", 0.0); //$NON-NLS-1$

    if (!CoreUtility.doublesEqual(dw.doubleValue(), 0.0) && !CoreUtility.doublesEqual(dh.doubleValue(), 0.0)) {
        setCustomizerDimension(new Dimension(dw.intValue(), dh.intValue()));
    }

    setKitSelectorLeftUpperCorner(
            new Point(getPCGenOption("kitSelector.windowLeftUpperCorner.X", -1.0).intValue(), //$NON-NLS-1$
                    getPCGenOption("kitSelector.windowLeftUpperCorner.Y", -1.0).intValue())); //$NON-NLS-1$
    dw = getPCGenOption("kitSelector.windowWidth", 0.0); //$NON-NLS-1$
    dh = getPCGenOption("kitSelector.windowHeight", 0.0); //$NON-NLS-1$

    if (!CoreUtility.doublesEqual(dw.doubleValue(), 0.0) && !CoreUtility.doublesEqual(dh.doubleValue(), 0.0)) {
        setKitSelectorDimension(new Dimension(dw.intValue(), dh.intValue()));
    }

    //
    // Read in the buy/sell percentages for the gear tab
    // If not in the .ini file and ignoreCost is set, then use 0%
    // Otherwise set buy to 100% and sell to %50
    //
    int buyRate = getPCGenOption("GearTab.buyRate", -1); //$NON-NLS-1$
    int sellRate = getPCGenOption("GearTab.sellRate", -1); //$NON-NLS-1$

    if ((buyRate < 0) || (sellRate < 0)) {
        if (getPCGenOption("GearTab.ignoreCost", false)) //$NON-NLS-1$
        {
            buyRate = 0;
            sellRate = 0;
        } else {
            buyRate = 100;
            sellRate = 50;
        }
    }

    Globals.initCustColumnWidth(CoreUtility.split(getOptions().getProperty("pcgen.options.custColumnWidth", ""), //$NON-NLS-1$//$NON-NLS-2$
            ','));

    loadURLs = getPCGenOption("loadURLs", false); //$NON-NLS-1$

    Globals.setSourceDisplay(
            SourceFormat.values()[getPCGenOption("sourceDisplay", SourceFormat.LONG.ordinal())]); //$NON-NLS-1$

    setAlwaysOverwrite(getPCGenOption("alwaysOverwrite", false)); //$NON-NLS-1$
    setAutoFeatsRefundable(getPCGenOption("autoFeatsRefundable", false)); //$NON-NLS-1$
    setAutogenExoticMaterial(getPCGenOption("autoGenerateExoticMaterial", false)); //$NON-NLS-1$
    setAutogenMagic(getPCGenOption("autoGenerateMagic", false)); //$NON-NLS-1$
    setAutogenMasterwork(getPCGenOption("autoGenerateMasterwork", false)); //$NON-NLS-1$
    setAutogenRacial(getPCGenOption("autoGenerateRacial", false)); //$NON-NLS-1$
    setChaTabPlacement(getOptionTabPlacement("chaTabPlacement", SwingConstants.TOP)); //$NON-NLS-1$
    setCreatePcgBackup(getPCGenOption("createPcgBackup", true));
    setCustomizerSplit1(getPCGenOption("customizer.split1", -1)); //$NON-NLS-1$
    setCustomizerSplit2(getPCGenOption("customizer.split2", -1)); //$NON-NLS-1$
    setDefaultOSType(getPCGenOption("defaultOSType", null)); //$NON-NLS-1$
    setEnforceSpendingBeforeLevelUp(getPCGenOption("enforceSpendingBeforeLevelUp", false)); //$NON-NLS-1$
    setGearTab_AllowDebt(getPCGenOption("GearTab.allowDebt", false)); //$NON-NLS-1$
    setGearTab_AutoResize(getPCGenOption("GearTab.autoResize", false)); //$NON-NLS-1$
    setGearTab_BuyRate(buyRate);
    setGearTab_IgnoreCost(getPCGenOption("GearTab.ignoreCost", false)); //$NON-NLS-1$
    setGearTab_SellRate(sellRate);
    setGrimHPMode(getPCGenOption("grimHPMode", false)); //$NON-NLS-1$
    setGrittyACMode(getPCGenOption("grittyACMode", false)); //$NON-NLS-1$
    setGUIUsesOutputNameEquipment(getPCGenOption("GUIUsesOutputNameEquipment", false)); //$NON-NLS-1$
    setGUIUsesOutputNameSpells(getPCGenOption("GUIUsesOutputNameSpells", false)); //$NON-NLS-1$
    setHideMonsterClasses(getPCGenOption("hideMonsterClasses", false)); //$NON-NLS-1$
    setHPMaxAtFirstLevel(getPCGenOption("hpMaxAtFirstLevel", true)); //$NON-NLS-1$
    setHPMaxAtFirstClassLevel(getPCGenOption("hpMaxAtFirstClassLevel", false)); //$NON-NLS-1$
    setHPMaxAtFirstPCClassLevelOnly(getPCGenOption("hpMaxAtFirstPCClassLevelOnly", false)); //$NON-NLS-1$
    setHPPercent(getPCGenOption("hpPercent", 100)); //$NON-NLS-1$
    setHPRollMethod(getPCGenOption("hpRollMethod", Constants.HP_STANDARD)); //$NON-NLS-1$
    setIgnoreMonsterHDCap(getPCGenOption("ignoreMonsterHDCap", false)); //$NON-NLS-1$
    setInvalidDmgText(getPCGenOption("invalidDmgText", //$NON-NLS-1$
            LanguageBundle.getString("SettingsHandler.114"))); //$NON-NLS-1$
    setInvalidToHitText(getPCGenOption("invalidToHitText", //$NON-NLS-1$
            LanguageBundle.getString("SettingsHandler.114"))); //$NON-NLS-1$
    setLastTipShown(getPCGenOption("lastTipOfTheDayTipShown", -1)); //$NON-NLS-1$
    setLookAndFeel(getPCGenOption("looknFeel", 1)); //$NON-NLS-1$
    setMaxPotionSpellLevel(getPCGenOption("maxPotionSpellLevel", 3)); //$NON-NLS-1$
    setMaxWandSpellLevel(getPCGenOption("maxWandSpellLevel", 4)); //$NON-NLS-1$
    setMetamagicAllowedInEqBuilder(getPCGenOption("allowMetamagicInCustomizer", false)); //$NON-NLS-1$
    setPccFilesLocation(new File(expandRelativePath(getPCGenOption("pccFilesLocation", //$NON-NLS-1$
            System.getProperty("user.dir") + File.separator + "data")))); //$NON-NLS-1$ //$NON-NLS-2$
    setPcgenOutputSheetDir(
            new File(expandRelativePath(getOptions().getProperty("pcgen.files.pcgenOutputSheetDir", //$NON-NLS-1$
                    System.getProperty("user.dir") + File.separator + "outputsheets")))); //$NON-NLS-1$ //$NON-NLS-2$
    setPcgenPreviewDir(new File(expandRelativePath(getOptions().getProperty("pcgen.files.pcgenPreviewDir", //$NON-NLS-1$
            System.getProperty("user.dir") + File.separator + "preview")))); //$NON-NLS-1$ //$NON-NLS-2$
    setGmgenPluginDir(new File(expandRelativePath(getOptions().getProperty("gmgen.files.gmgenPluginDir", //$NON-NLS-1$
            System.getProperty("user.dir") + File.separator + "plugins")))); //$NON-NLS-1$ //$NON-NLS-2$
    setBackupPcgPath(
            new File(expandRelativePath(getOptions().getProperty("pcgen.files.characters.backup", "")))); //$NON-NLS-1$
    setPortraitsPath(new File(expandRelativePath(getOptions().getProperty("pcgen.files.portraits", //$NON-NLS-1$
            Globals.getDefaultPcgPath()))));
    setPostExportCommandStandard(getPCGenOption("postExportCommandStandard", "")); //$NON-NLS-1$ //$NON-NLS-2$
    setPostExportCommandPDF(getPCGenOption("postExportCommandPDF", "")); //$NON-NLS-1$ //$NON-NLS-2$
    setPrereqFailColor(getPCGenOption("prereqFailColor", Color.red.getRGB())); //$NON-NLS-1$
    setPrereqQualifyColor(getPCGenOption("prereqQualifyColor", SystemColor.text.getRGB())); //$NON-NLS-1$
    setPreviewTabShown(getPCGenOption("previewTabShown", true)); //$NON-NLS-1$
    setROG(getPCGenOption("isROG", false)); //$NON-NLS-1$
    setSaveCustomInLst(getPCGenOption("saveCustomInLst", false)); //$NON-NLS-1$
    setSaveOutputSheetWithPC(getPCGenOption("saveOutputSheetWithPC", false)); //$NON-NLS-1$
    setPrintSpellsWithPC(getPCGenOption("printSpellsWithPC", true)); //$NON-NLS-1$
    setSelectedSpellSheet(
            expandRelativePath(getOptions().getProperty("pcgen.files.selectedSpellOutputSheet", ""))); //$NON-NLS-1$ //$NON-NLS-2$
    setSelectedCharacterHTMLOutputSheet(
            expandRelativePath(getOptions().getProperty("pcgen.files.selectedCharacterHTMLOutputSheet", //$NON-NLS-1$
                    "")), //$NON-NLS-1$
            aPC);
    setSelectedCharacterPDFOutputSheet(
            expandRelativePath(getOptions().getProperty("pcgen.files.selectedCharacterPDFOutputSheet", //$NON-NLS-1$
                    "")), //$NON-NLS-1$
            aPC);
    setSelectedEqSetTemplate(
            expandRelativePath(getOptions().getProperty("pcgen.files.selectedEqSetTemplate", ""))); //$NON-NLS-1$ //$NON-NLS-2$
    setSelectedPartyHTMLOutputSheet(
            expandRelativePath(getOptions().getProperty("pcgen.files.selectedPartyHTMLOutputSheet", //$NON-NLS-1$
                    ""))); //$NON-NLS-1$
    setSelectedPartyPDFOutputSheet(
            expandRelativePath(getOptions().getProperty("pcgen.files.selectedPartyPDFOutputSheet", //$NON-NLS-1$
                    ""))); //$NON-NLS-1$
    setShowFeatDialogAtLevelUp(getPCGenOption("showFeatDialogAtLevelUp", true)); //$NON-NLS-1$
    setShowHPDialogAtLevelUp(getPCGenOption("showHPDialogAtLevelUp", true)); //$NON-NLS-1$
    setShowImagePreview(getPCGenOption("showImagePreview", true)); //$NON-NLS-1$
    setShowSingleBoxPerBundle(getPCGenOption("showSingleBoxPerBundle", false)); //$NON-NLS-1$
    setOutputDeprecationMessages(getPCGenOption("outputDeprecationMessages", true));
    setInputUnconstructedMessages(getPCGenOption("inputUnconstructedMessages", false));
    setShowStatDialogAtLevelUp(getPCGenOption("showStatDialogAtLevelUp", true)); //$NON-NLS-1$
    setShowTipOfTheDay(getPCGenOption("showTipOfTheDay", true)); //$NON-NLS-1$
    setShowToolBar(getPCGenOption("showToolBar", true)); //$NON-NLS-1$
    setShowSkillModifier(getPCGenOption("showSkillModifier", true)); //$NON-NLS-1$
    setShowSkillRanks(getPCGenOption("showSkillRanks", true)); //$NON-NLS-1$
    setShowWarningAtFirstLevelUp(getPCGenOption("showWarningAtFirstLevelUp", true)); //$NON-NLS-1$
    setSkinLFThemePack(getPCGenOption("skinLFThemePack", "")); //$NON-NLS-1$ //$NON-NLS-2$
    setSpellMarketPriceAdjusted(getPCGenOption("spellMarketPriceAdjusted", false)); //$NON-NLS-1$
    setTabPlacement(getOptionTabPlacement("tabPlacement", SwingConstants.BOTTOM)); //$NON-NLS-1$
    setUseHigherLevelSlotsDefault(getPCGenOption("useHigherLevelSlotsDefault", false)); //$NON-NLS-1$
    setUseWaitCursor(getPCGenOption("useWaitCursor", true)); //$NON-NLS-1$
    setWantToLoadMasterworkAndMagic(getPCGenOption("loadMasterworkAndMagicFromLst", false)); //$NON-NLS-1$
    setWeaponProfPrintout(getPCGenOption("weaponProfPrintout", Constants.DEFAULT_PRINTOUT_WEAPONPROF));

    // Load up all the RuleCheck stuff from the options.ini file
    // It's stored as:
    //   pcgen.options.rulechecks=aKey:Y|bKey:N|cKey:Y
    parseRuleChecksFromOptions(getPCGenOption("ruleChecks", "")); //$NON-NLS-1$ //$NON-NLS-2$

    return d;
}