Ignore:
Timestamp:
Apr 30, 2013, 2:05:15 AM (12 years ago)
Author:
alloc
Message:

AEI2.07:

  • Allow for non-ISO-8859-1 characters in properties files (more exactly require them to be UTF8)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/installer2/src/net/oni2/aeinstaller/gui/toolmanager/ToolManager.java

    r804 r840  
    2525import net.oni2.aeinstaller.gui.modtable.ModTable.ETableContentType;
    2626import net.oni2.aeinstaller.gui.packageinfobox.PackageInfoBox;
     27import net.oni2.resourcebundle.UTF8ResourceBundleLoader;
    2728
    2829import org.javabuilders.BuildResult;
     
    3536        private static final long serialVersionUID = 343221630538866384L;
    3637
    37         private ResourceBundle bundle = ResourceBundle
     38        private ResourceBundle bundle = UTF8ResourceBundleLoader
    3839                        .getBundle("net.oni2.aeinstaller.localization."
    3940                                        + getClass().getSimpleName());
     
    7374                getRootPane().getActionMap().put("close", closeAction);
    7475
    75                 contents.setDividerLocation(SettingsManager.getInstance().get("win_tools_divloc", 550));
     76                contents.setDividerLocation(SettingsManager.getInstance().get(
     77                                "win_tools_divloc", 550));
    7678                contents.setResizeWeight(0.4);
    7779
     
    8789                                SwingJavaBuilder.getConfig().getResource("img.uninstall")));
    8890
    89                 setSize(SettingsManager.getInstance().get("win_tools_width", 950), SettingsManager.getInstance().get("win_tools_height", 600));
     91                setSize(SettingsManager.getInstance().get("win_tools_width", 950),
     92                                SettingsManager.getInstance().get("win_tools_height", 600));
    9093                setLocationRelativeTo(null);
    9194        }
     
    149152                }
    150153        }
    151        
     154
    152155        @SuppressWarnings("unused")
    153156        private void closing() {
    154                 SettingsManager.getInstance().put("win_tools_divloc", contents.getDividerLocation());
     157                SettingsManager.getInstance().put("win_tools_divloc",
     158                                contents.getDividerLocation());
    155159                SettingsManager.getInstance().put("win_tools_width", getWidth());
    156160                SettingsManager.getInstance().put("win_tools_height", getHeight());
Note: See TracChangeset for help on using the changeset viewer.