Search in sources :

Example 1 with DebugView

use of io.bisq.gui.main.debug.DebugView in project bisq-api by mrosseel.

the class BisqApiWithUI 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));
    // Don't translate, just for dev
    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) ViewLoader(io.bisq.gui.common.view.ViewLoader) CachingViewLoader(io.bisq.gui.common.view.CachingViewLoader) Scene(javafx.scene.Scene) MainView(io.bisq.gui.main.MainView) View(io.bisq.gui.common.view.View) DebugView(io.bisq.gui.main.debug.DebugView)

Aggregations

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