001package apps.gui3.mdi; 002 003import jmri.Application; 004import jmri.util.swing.mdi.MdiMainFrame; 005 006/** 007 * The JMRI application for developing the 3rd GUI 008 * <br> 009 * <hr> 010 * This file is part of JMRI. 011 * <p> 012 * JMRI is free software; you can redistribute it and/or modify it under the 013 * terms of version 2 of the GNU General Public License as published by the Free 014 * Software Foundation. See the "COPYING" file for a copy of this license. 015 * <p> 016 * JMRI is distributed in the hope that it will be useful, but WITHOUT ANY 017 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 018 * A PARTICULAR PURPOSE. See the GNU General Public License for more details. 019 * 020 * @author Bob Jacobsen Copyright 2003, 2004, 2007, 2009, 2010 021 */ 022public class MDI extends apps.gui3.Apps3 { 023 024 public MDI(String[] args) { 025 super("JMRI GUI3 Demo", null, args); 026 this.start(); 027 } 028 029 @Override 030 protected void createMainFrame() { 031 // create and populate main window 032 mainFrame = new MdiMainFrame(Application.getApplicationName(), 033 "xml/config/apps/demo/Gui3LeftTree.xml", 034 "xml/config/apps/demo/Gui3Menus.xml", 035 "xml/config/apps/demo/Gui3MainToolBar.xml"); 036 } 037 038 // Main entry point 039 public static void main(String args[]) { 040 new MDI(args); 041 } 042 043}