Search in sources :

Example 1 with DebugView

use of io.bitsquare.gui.main.debug.DebugView in project bitsquare by bitsquare.

the class BitsquareApp method showDebugWindow.

// Used for debugging trade process
private void showDebugWindow() {
    ViewLoader viewLoader = injector.getInstance(ViewLoader.class);
    View debugView = viewLoader.load(DebugView.class);
    Parent parent = (Parent) debugView.getRoot();
    Stage stage = new Stage();
    stage.setScene(new Scene(parent));
    stage.setTitle("Debug window");
    stage.initModality(Modality.NONE);
    stage.initStyle(StageStyle.UTILITY);
    stage.initOwner(scene.getWindow());
    stage.setX(primaryStage.getX() + primaryStage.getWidth() + 10);
    stage.setY(primaryStage.getY());
    stage.show();
}
Also used : Parent(javafx.scene.Parent) Stage(javafx.stage.Stage) CachingViewLoader(io.bitsquare.gui.common.view.CachingViewLoader) ViewLoader(io.bitsquare.gui.common.view.ViewLoader) Scene(javafx.scene.Scene) View(io.bitsquare.gui.common.view.View) MainView(io.bitsquare.gui.main.MainView) DebugView(io.bitsquare.gui.main.debug.DebugView)

Aggregations

CachingViewLoader (io.bitsquare.gui.common.view.CachingViewLoader)1 View (io.bitsquare.gui.common.view.View)1 ViewLoader (io.bitsquare.gui.common.view.ViewLoader)1 MainView (io.bitsquare.gui.main.MainView)1 DebugView (io.bitsquare.gui.main.debug.DebugView)1 Parent (javafx.scene.Parent)1 Scene (javafx.scene.Scene)1 Stage (javafx.stage.Stage)1