@@ -66,11 +66,6 @@ public void start(Stage stage) throws Exception {
6666 mapView = new MapView ();
6767 mapView .setMap (map );
6868
69- // create a control panel
70- VBox vBoxControl = new VBox (6 );
71- vBoxControl .setMaxSize (250 , 260 );
72- vBoxControl .getStyleClass ().add ("panel-region" );
73-
7469 // create two list views, one showing the layers in the map,
7570 // the other, showing the layers in the geoPackage not yet added to the map
7671 ListView <Layer > mapLayers = new ListView <>();
@@ -82,6 +77,11 @@ public void start(Stage stage) throws Exception {
8277 mapLayersLabel .getStyleClass ().add ("panel-label" );
8378 geoPackageLayersLabel .getStyleClass ().add ("panel-label" );
8479
80+ // create a control panel
81+ VBox vBoxControl = new VBox (6 );
82+ vBoxControl .setMaxSize (250 , 260 );
83+ vBoxControl .getStyleClass ().add ("panel-region" );
84+
8585 // add labels and lists to the control panel
8686 vBoxControl .getChildren ().addAll (mapLayersLabel , mapLayers , geoPackageLayersLabel , geoPackageLayers );
8787
@@ -170,7 +170,7 @@ protected void updateItem(Layer layer, boolean bln) {
170170 * Stops and releases all resources used in application.
171171 */
172172 @ Override
173- public void stop () throws Exception {
173+ public void stop () {
174174
175175 if (mapView != null ) {
176176 mapView .dispose ();
0 commit comments