Java tutorial
/* * openwms.org, the Open Warehouse Management System. * * This file is part of openwms.org. * * openwms.org is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * openwms.org is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this software. If not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.openwms.client.fx.core; import javafx.application.Application; import javafx.stage.Stage; import org.openwms.client.fx.core.spring.AppConfiguration; import org.openwms.client.fx.core.spring.CoreViewConfiguration; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; /** * A App. * * @author <a href="mailto:scherrer@openwms.org">Heiko Scherrer</a> * @version $Revision: $ * */ public class CoreApplication extends Application { /** * Application launcher. * * @param args * The stage */ public static void main(String[] args) { launch(args); } /** * @see javafx.application.Application#start(javafx.stage.Stage) */ @Override public void start(Stage stage) throws Exception { ApplicationContext context = new AnnotationConfigApplicationContext(AppConfiguration.class); CoreViewConfiguration screens = context.getBean(CoreViewConfiguration.class); screens.setPrimaryStage(stage); screens.addDossierBrowser().show(); } }