001package apps.gui3.paned; 002 003import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 004import jmri.Application; 005import jmri.util.swing.multipane.MultiPaneWindow; 006 007/** 008 * The JMRI application for developing the 3rd GUI. 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 Paned extends apps.gui3.Apps3 { 023 024 public Paned(String[] args) { 025 super("JMRI GUI3 Demo", null, args); 026 this.start(); 027 } 028 029 @SuppressFBWarnings(value = "ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD", 030 justification = "only one application at a time") 031 @Override 032 protected void createMainFrame() { 033 // create and populate main window 034 mainFrame = new MultiPaneWindow(Application.getApplicationName(), 035 "xml/config/apps/demo/Gui3LeftTree.xml", 036 "xml/config/apps/demo/Gui3Menus.xml", 037 "xml/config/apps/demo/Gui3MainToolBar.xml"); 038 } 039 040 // Main entry point 041 public static void main(String args[]) { 042 new Paned(args); 043 } 044 045}