|
@@ -162,6 +162,15 @@ public class BrowserController extends Controller {
|
|
|
my_connector.initConnection(workParams);
|
|
|
}
|
|
|
|
|
|
+ try {
|
|
|
+ Properties property = new Properties();
|
|
|
+ FileInputStream fis = new FileInputStream("connection.properties");
|
|
|
+ property.load(fis);
|
|
|
+ setUserName(property.getProperty("CONFIG_DEFAULT_USER"));
|
|
|
+ }
|
|
|
+ catch (IOException ex)
|
|
|
+ {}
|
|
|
+
|
|
|
System.out.println(my_connector.granted("USAGE"));
|
|
|
System.out.println(my_connector.granted("INSERT"));
|
|
|
System.out.println(my_connector.granted("UPDATE"));
|
|
@@ -402,6 +411,9 @@ public class BrowserController extends Controller {
|
|
|
filterPane.setMinWidth(filterWidth);
|
|
|
filterPane.setPrefWidth(filterWidth);
|
|
|
filterPane.setMaxWidth(filterWidth);
|
|
|
+
|
|
|
+ //actorTextBox.setItems(my_connector.getAllActors());
|
|
|
+
|
|
|
//loadPosters();
|
|
|
// 300px is filter window width
|
|
|
//scrollPane.setPrefWidth(browserPane.getWidth()-300);
|
|
@@ -623,8 +635,9 @@ public class BrowserController extends Controller {
|
|
|
statsWindow = loader.getController();
|
|
|
statsWindow.stage = new Stage();
|
|
|
statsWindow.stage.setScene(new Scene(root, 500, 500));
|
|
|
+ //editWindow.stage.initStyle(StageStyle.UNDECORATED);
|
|
|
statsWindow.stage.setUserData(loader);
|
|
|
- statsWindow.open(this);
|
|
|
+ statsWindow.openGenre(this);
|
|
|
|
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|
|
@@ -640,8 +653,9 @@ public class BrowserController extends Controller {
|
|
|
statsWindow = loader.getController();
|
|
|
statsWindow.stage = new Stage();
|
|
|
statsWindow.stage.setScene(new Scene(root, 500, 500));
|
|
|
+ // editWindow.stage.initStyle(StageStyle.UNDECORATED);
|
|
|
statsWindow.stage.setUserData(loader);
|
|
|
- statsWindow.open(this);
|
|
|
+ statsWindow.openStudio(this);
|
|
|
|
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|