浏览代码

minor code cleaning

toomanysugar 4 年之前
父节点
当前提交
859370c88b
共有 2 个文件被更改,包括 2 次插入21 次删除
  1. 2 1
      JavaFxApplication.iml
  2. 0 20
      src/com/moviesdb/Controller.java

+ 2 - 1
JavaFxApplication.iml

@@ -7,7 +7,7 @@
     </content>
     <orderEntry type="inheritedJdk" />
     <orderEntry type="sourceFolder" forTests="false" />
-    <orderEntry type="library" name="lib" level="project" />
+    <orderEntry type="library" exported="" name="lib" level="project" />
     <orderEntry type="module-library" exported="">
       <library>
         <CLASSES>
@@ -17,5 +17,6 @@
         <SOURCES />
       </library>
     </orderEntry>
+    <orderEntry type="library" exported="" name="javafxlib" level="project" />
   </component>
 </module>

+ 0 - 20
src/com/moviesdb/Controller.java

@@ -69,26 +69,6 @@ public class Controller {
     double yOffset;
 
     public void initialize(Stage primaryStage){
-        /*
-        FileInputStream fis;
-        Properties property = new Properties();
-
-        try {
-            fis = new FileInputStream("src/main/resources/config.properties");
-            property.load(fis);
-
-            String host = property.getProperty("db.host");
-            String login = property.getProperty("db.login");
-            String password = property.getProperty("db.password");
-
-            System.out.println("HOST: " + host
-                    + ", LOGIN: " + login
-                    + ", PASSWORD: " + password);
-
-        } catch (IOException e) {
-            System.err.println("ОШИБКА: Файл свойств отсуствует!");
-        }
-        */
 
         ImageView minimizeImageView = new ImageView(new Image(getClass().getResourceAsStream("media\\minimize.png")));
         minimizeImageView.setFitHeight(16);