Changeset 3239 in josm for trunk/src


Ignore:
Timestamp:
2010-05-13T13:40:06+02:00 (14 years ago)
Author:
stoecker
Message:

see #4132 - some applet fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MainApplet.java

    r2876 r3239  
    3232
    3333public class MainApplet extends JApplet {
     34
     35    final static JFrame frame = new JFrame("Java OpenStreetMap Editor");
    3436
    3537    public static final class UploadPreferencesAction extends JosmAction {
     
    9698        }
    9799
     100        // initialize the plaform hook, and
     101        Main.determinePlatformHook();
     102        // call the really early hook before we anything else
     103        Main.platform.preStartupHook();
     104
     105        Main.preConstructorInit(args);
     106
    98107        Main.applet = true;
    99108        Main.pref = new ServerSidePreferences(getCodeBase());
    100109        ((ServerSidePreferences)Main.pref).download(username, password);
    101110        Main.preConstructorInit(args);
    102         Main.parent = this;
     111        Main.parent = frame;
    103112        Main.addListener();
    104 
    105         // initialize the plaform hook, and
    106         Main.determinePlatformHook();
    107         // call the really early hook before we anything else
    108         Main.platform.preStartupHook();
    109113
    110114        new MainCaller().postConstructorProcessCmdLine(args);
     
    134138
    135139    public static void main(String[] args) {
    136         final JFrame frame = new JFrame("Java OpenStreetMap Editor");
    137140        MainApplet applet = new MainApplet();
    138141        applet.setStub(new AppletStub() {
Note: See TracChangeset for help on using the changeset viewer.