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