Skip to content

Commit

Permalink
fixed file drag and drop
Browse files Browse the repository at this point in the history
  • Loading branch information
kag12017 committed Mar 3, 2016
1 parent 2697a30 commit 33f80c5
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 2 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added src/.DS_Store
Binary file not shown.
Binary file added src/main/.DS_Store
Binary file not shown.
Binary file added src/main/java/.DS_Store
Binary file not shown.
Binary file added src/main/java/directory/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main/java/launcher/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class Controller{
manager = new FolderViewManager(dirTree); // 2 statements in 1 line is best
IronFile[] hardDrives = IronFile.listRoots(); // an array of hard drives
menubar.setUseSystemMenuBar(true); //allows use of native menu bars, luckily an easy 1 liner
manager.setRootDirectory(hardDrives);
// manager.setRootDirectory(hardDrives); Ideally only show tree view of files the user drags in
}
/**
* Action event triggered when user clicks. This method will add tag directly to IronFile
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/launcher/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,18 @@ public class Main extends Application {
@Override
public void start(Stage primaryStage) throws Exception{
// setUserAgentStylesheet(STYLESHEET_CASPIAN);
Parent root = FXMLLoader.load(getClass().getResource("/StartPage.fxml"));

FXMLLoader loader = new FXMLLoader();
Parent root = loader.load(getClass().getResource("/StartPage.fxml").openStream());
primaryStage.setTitle("Iron-gate!");
primaryStage.setScene(new Scene(root, 990, 700));
Scene scene = primaryStage.getScene(); // we get the scene from above
scene.getStylesheets().clear(); // clear any styles
// scene.getStylesheets().add("/main/resources/mainStyle.css"); // absolute path
primaryStage.show();
Controller controller = loader.getController();
controller.initializeSceneEvents();

}
public static void main(String[] args) {
launch(args);
Expand Down

0 comments on commit 33f80c5

Please sign in to comment.