|
30 | 30 | import javafx.scene.control.*; |
31 | 31 | import javafx.scene.control.cell.PropertyValueFactory; |
32 | 32 | import javafx.scene.input.MouseButton; |
33 | | -import javafx.application.Platform; |
34 | 33 | import org.h2.tools.RunScript; |
35 | 34 | import org.h2.tools.Script; |
36 | 35 | import org.slf4j.Logger; |
@@ -200,15 +199,15 @@ private void initialize() { |
200 | 199 | } |
201 | 200 |
|
202 | 201 |
|
203 | | - double REQUIRED_WIDTH = 15.0; |
204 | | - double REQUIRED_HEIGHT = 15.0; |
| 202 | + double requiredWidth = 15.0; |
| 203 | + double requiredHeight = 15.0; |
205 | 204 |
|
206 | | - setRegionSvg(colorIcon,REQUIRED_WIDTH, REQUIRED_HEIGHT,RESOURCE.SVG_COLOR_ICON); |
207 | | - setRegionSvg(layoutIcon,REQUIRED_WIDTH, REQUIRED_HEIGHT,RESOURCE.SVG_LAYOUT_ICON); |
208 | | - setRegionSvg(generalIcon,REQUIRED_WIDTH,REQUIRED_HEIGHT,RESOURCE.SVG_SETTINGS_ICON); |
209 | | - setRegionSvg(aboutIcon,REQUIRED_WIDTH,REQUIRED_HEIGHT,RESOURCE.SVG_ABOUT_ICON); |
210 | | - setRegionSvg(importexportIcon,REQUIRED_WIDTH,REQUIRED_HEIGHT,RESOURCE.SVG_IMPORT_EXPORT_ICON); |
211 | | - setRegionSvg(licensesIcon,REQUIRED_WIDTH,REQUIRED_HEIGHT,RESOURCE.SVG_LICENSES_ICON); |
| 205 | + setRegionSvg(colorIcon,requiredWidth, requiredHeight,RESOURCE.SVG_COLOR_ICON); |
| 206 | + setRegionSvg(layoutIcon,requiredWidth, requiredHeight,RESOURCE.SVG_LAYOUT_ICON); |
| 207 | + setRegionSvg(generalIcon,requiredWidth,requiredHeight,RESOURCE.SVG_SETTINGS_ICON); |
| 208 | + setRegionSvg(aboutIcon,requiredWidth,requiredHeight,RESOURCE.SVG_ABOUT_ICON); |
| 209 | + setRegionSvg(importexportIcon,requiredWidth,requiredHeight,RESOURCE.SVG_IMPORT_EXPORT_ICON); |
| 210 | + setRegionSvg(licensesIcon,requiredWidth,requiredHeight,RESOURCE.SVG_LICENSES_ICON); |
212 | 211 |
|
213 | 212 | initExportButton(); |
214 | 213 | initImportButton(); |
@@ -293,12 +292,12 @@ private void initialize() { |
293 | 292 | initializeAbout(); |
294 | 293 | } |
295 | 294 |
|
296 | | - private static void setRegionSvg(Region region, Double REQUIRED_WIDTH, Double REQUIRED_HEIGHT, RESOURCE resource) { |
| 295 | + private static void setRegionSvg(Region region, Double requiredWidth, Double requiredHeight, RESOURCE resource) { |
297 | 296 |
|
298 | 297 | region.setShape(SvgNodeProvider.getSvgNodeWithScale(resource,1.0,1.0)); |
299 | | - region.setMinSize(REQUIRED_WIDTH, REQUIRED_HEIGHT); |
300 | | - region.setPrefSize(REQUIRED_WIDTH, REQUIRED_HEIGHT); |
301 | | - region.setMaxSize(REQUIRED_WIDTH, REQUIRED_HEIGHT); |
| 298 | + region.setMinSize(requiredWidth, requiredHeight); |
| 299 | + region.setPrefSize(requiredWidth, requiredHeight); |
| 300 | + region.setMaxSize(requiredWidth, requiredHeight); |
302 | 301 | region.setStyle("-fx-background-color: black;"); |
303 | 302 | } |
304 | 303 |
|
|
0 commit comments