Package ch.fork.AdHocRailway.ui

Examples of ch.fork.AdHocRailway.ui.SimpleInternalFrame


        setLayout(new BorderLayout());
        setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
        FlowLayout controlPanelLayout = new FlowLayout(FlowLayout.CENTER, 10, 0);
        controlPanel = new JPanel(controlPanelLayout);
        controlPanel.setLayout(controlPanelLayout);
        SimpleInternalFrame locomotivesFrame = new SimpleInternalFrame("Trains");
        locomotivesFrame.add(controlPanel, BorderLayout.CENTER);
        add(locomotivesFrame, BorderLayout.NORTH);
        getActionMap().put("LocomotiveStop", new LocomotiveStopAction());
        Preferences.getInstance().getKeyBoardLayout().assignKeys
            (getInputMap(WHEN_IN_FOCUSED_WINDOW), "LocomotiveStop");
    }
View Full Code Here

TOP

Related Classes of ch.fork.AdHocRailway.ui.SimpleInternalFrame

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.