Search in sources :

Example 1 with FXDialog

use of org.jabref.gui.FXDialog in project jabref by JabRef.

the class DocumentViewerView method show.

@Override
public void show() {
    FXDialog dialog = new FXDialog(AlertType.INFORMATION, Localization.lang("Document viewer"), false);
    DialogPane dialogPane = (DialogPane) this.getView();
    // Remove button bar at bottom
    dialogPane.getChildren().removeIf(node -> node instanceof ButtonBar);
    dialog.setDialogPane(dialogPane);
    dialog.setResizable(true);
    dialog.show();
}
Also used : DialogPane(javafx.scene.control.DialogPane) ButtonBar(javafx.scene.control.ButtonBar) FXDialog(org.jabref.gui.FXDialog)

Example 2 with FXDialog

use of org.jabref.gui.FXDialog in project jabref by JabRef.

the class ErrorConsoleView method show.

@Override
public void show() {
    FXDialog errorConsole = new FXDialog(AlertType.ERROR, Localization.lang("Event log"), false);
    errorConsole.setDialogPane((DialogPane) this.getView());
    errorConsole.setResizable(true);
    errorConsole.show();
}
Also used : FXDialog(org.jabref.gui.FXDialog)

Example 3 with FXDialog

use of org.jabref.gui.FXDialog in project jabref by JabRef.

the class ManageJournalAbbreviationsView method show.

@Override
public void show() {
    FXDialog journalAbbreviationsDialog = new FXDialog(AlertType.INFORMATION, Localization.lang("Journal abbreviations"));
    journalAbbreviationsDialog.setResizable(true);
    journalAbbreviationsDialog.setDialogPane((DialogPane) this.getView());
    journalAbbreviationsDialog.show();
}
Also used : FXDialog(org.jabref.gui.FXDialog)

Example 4 with FXDialog

use of org.jabref.gui.FXDialog in project jabref by JabRef.

the class AboutDialogView method show.

@Override
public void show() {
    FXDialog aboutDialog = new FXDialog(AlertType.INFORMATION, Localization.lang("About JabRef"));
    aboutDialog.setDialogPane((DialogPane) this.getView());
    aboutDialog.show();
}
Also used : FXDialog(org.jabref.gui.FXDialog)

Example 5 with FXDialog

use of org.jabref.gui.FXDialog in project jabref by JabRef.

the class KeyBindingsDialogView method show.

@Override
public void show() {
    FXDialog keyBindingsDialog = new FXDialog(AlertType.INFORMATION, Localization.lang("Key bindings"));
    keyBindingsDialog.setDialogPane((DialogPane) this.getView());
    keyBindingsDialog.setResizable(true);
    ((Stage) keyBindingsDialog.getDialogPane().getScene().getWindow()).setMinHeight(475);
    ((Stage) keyBindingsDialog.getDialogPane().getScene().getWindow()).setMinWidth(375);
    keyBindingsDialog.show();
}
Also used : Stage(javafx.stage.Stage) FXDialog(org.jabref.gui.FXDialog)

Aggregations

FXDialog (org.jabref.gui.FXDialog)5 ButtonBar (javafx.scene.control.ButtonBar)1 DialogPane (javafx.scene.control.DialogPane)1 Stage (javafx.stage.Stage)1