本文整理汇总了Java中javafx.scene.control.Alert.AlertType.INFORMATION属性的典型用法代码示例。如果您正苦于以下问题:Java AlertType.INFORMATION属性的具体用法?Java AlertType.INFORMATION怎么用?Java AlertType.INFORMATION使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类javafx.scene.control.Alert.AlertType
的用法示例。
在下文中一共展示了AlertType.INFORMATION属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: mnuUndo
@FXML
private void mnuUndo(ActionEvent event) {
String feedback = new Undo().actionUndo();
Stage MakeATransactionStage = (Stage) btnSignOut.getScene().getWindow();
Alert alert = new Alert(AlertType.INFORMATION);
alert.setTitle("Action Successful");
alert.setHeaderText(null);
alert.setContentText(feedback);
alert.setX(MakeATransactionStage.getX() + 190);
alert.setY(MakeATransactionStage.getY() + 190);
// initialize();
gmInitialize();
exInitialize();
leInitialize();
bkInitialize();
rocInitialize();
perInitialize();
alert.showAndWait();
}
示例2: archiveSource
@FXML
private void archiveSource(ActionEvent event) {
try {
source.archiveSource(sourcecmboArchive.getValue());
Alert confirmationMsg = new Alert(AlertType.INFORMATION);
confirmationMsg.setTitle("Message");
confirmationMsg.setHeaderText(null);
confirmationMsg.setContentText(sourcecmboArchive.getValue()+ " is Archived Successfully");
Stage SettingsStage = (Stage) btnDashboard.getScene().getWindow();
confirmationMsg.setX(SettingsStage.getX() + 200);
confirmationMsg.setY(SettingsStage.getY() + 170);
confirmationMsg.showAndWait();
tabSourceInitialize();
} catch (Exception e) {}
}
示例3: createSector
@FXML
private void createSector(ActionEvent event) {
if ((sectortxtSourceName.getText()).length() == 0 || countWords(sectortxtSourceName.getText()) == 0) {
sectorlblWarningMsg.setText("Write a Sector Name Please");
} else {
sectorlblWarningMsg.setText("");
sector.createSector(sectortxtSourceName.getText());
advancedSector.createSectorToAddList(sectortxtSourceName.getText());
Alert confirmationMsg = new Alert(AlertType.INFORMATION);
confirmationMsg.setTitle("Message");
confirmationMsg.setHeaderText(null);
confirmationMsg.setContentText("Sector "+sectortxtSourceName.getText()+ " created successfully");
Stage SettingsStage = (Stage) btnDashboard.getScene().getWindow();
confirmationMsg.setX(SettingsStage.getX() + 200);
confirmationMsg.setY(SettingsStage.getY() + 170);
confirmationMsg.showAndWait();
tabSectorInitialize();
}
}
示例4: archiveSector
@FXML
private void archiveSector(ActionEvent event) {
try {
sector.archiveSector(sectorcmboArchive.getValue());
Alert confirmationMsg = new Alert(AlertType.INFORMATION);
confirmationMsg.setTitle("Message");
confirmationMsg.setHeaderText(null);
confirmationMsg.setContentText(sectorcmboArchive.getValue()+ " is Archived Successfully");
Stage SettingsStage = (Stage) btnDashboard.getScene().getWindow();
confirmationMsg.setX(SettingsStage.getX() + 200);
confirmationMsg.setY(SettingsStage.getY() + 170);
confirmationMsg.showAndWait();
tabSectorInitialize();
} catch (Exception e) {}
}
示例5: unarchiveSector
@FXML
private void unarchiveSector(ActionEvent event) {
try {
sector.unarchiveSector(sectorcmboUnArchive.getValue());
Alert confirmationMsg = new Alert(AlertType.INFORMATION);
confirmationMsg.setTitle("Message");
confirmationMsg.setHeaderText(null);
confirmationMsg.setContentText(sectorcmboUnArchive.getValue()+ " is Unarchived Successfully");
Stage SettingsStage = (Stage) btnDashboard.getScene().getWindow();
confirmationMsg.setX(SettingsStage.getX() + 200);
confirmationMsg.setY(SettingsStage.getY() + 170);
confirmationMsg.showAndWait();
tabSectorInitialize();
} catch (Exception e) {}
}
示例6: advancedBtnRemove
@FXML
private void advancedBtnRemove(ActionEvent event) {
try {
advancedSector.removeSectorFromList(advancedCmboRemove.getValue());
Alert confirmationMsg = new Alert(AlertType.INFORMATION);
confirmationMsg.setTitle("Message");
confirmationMsg.setHeaderText(null);
confirmationMsg.setContentText(advancedCmboRemove.getValue()+ " is removed from list successfully");
Stage SettingsStage = (Stage) btnDashboard.getScene().getWindow();
confirmationMsg.setX(SettingsStage.getX() + 200);
confirmationMsg.setY(SettingsStage.getY() + 170);
tabAdvancedInitialize();
confirmationMsg.showAndWait();
} catch (Exception e) {}
}
示例7: btnSave
@FXML
private void btnSave(ActionEvent event) {
if (passPassword.getText().isEmpty()) {
lblMsgInformation.setText("Password can't empty");
} else if (!passReTypePassword.getText().equals(passPassword.getText())) {
lblMsgInformation.setText("Re-type Your Password Correctly");
} else if(txtAnswer.getText().isEmpty() || countWords(txtAnswer.getText()) == 0) {
lblMsgInformation.setText("Answer the Security Question.");
} else {
setPassword(passPassword.getText());
setSecurityQuestion(cmboSecurityQuestion.getValue());
setSecurityQuestionAnswer(txtAnswer.getText());
Alert confirmationMsg = new Alert(AlertType.INFORMATION);
confirmationMsg.setTitle("Operation Successful");
confirmationMsg.setHeaderText(null);
confirmationMsg.setContentText("Information Updated Successfully");
Stage RegistrationIssueStage = (Stage) btnSave.getScene().getWindow();
confirmationMsg.setX(RegistrationIssueStage.getX() + 200);
confirmationMsg.setY(RegistrationIssueStage.getY() + 170);
confirmationMsg.showAndWait();
(new GoToOperation()).goToSignIn(RegistrationIssueStage.getX(), RegistrationIssueStage.getY());
RegistrationIssueStage.close();
}
}
示例8: mnuUndo
@FXML
private void mnuUndo(ActionEvent event) {
String feedback = new Undo().actionUndo();
Stage TransactionHistoryStage = (Stage) btnSignOut.getScene().getWindow();
Alert alert = new Alert(AlertType.INFORMATION);
alert.setTitle("Action Successful");
alert.setHeaderText(null);
alert.setContentText(feedback);
alert.setX(TransactionHistoryStage.getX() + 190);
alert.setY(TransactionHistoryStage.getY() + 190);
initialize();
alert.showAndWait();
}
示例9: exbtnAdvancedSave
@FXML
private void exbtnAdvancedSave(ActionEvent event) {
if (total == 0) {
exlblAdvWarningMsg.setText("Empty or Zero is not approved.");
} else {
TextField AdvancedExtxt[] = {extxtAdvSector1, extxtAdvSector2, extxtAdvSector3, extxtAdvSector4,
extxtAdvSector5, extxtAdvSector6, extxtAdvSector7 };
Label AdvancedExlbl[] = {exlblAdvSector1, exlblAdvSector2, exlblAdvSector3, exlblAdvSector4,
exlblAdvSector5, exlblAdvSector6, exlblAdvSector7 };
int index = 0;
for (TextField textField : AdvancedExtxt) {
if ((!textField.getText().isEmpty()) && (!textField.getText().equals("0"))) {
exAdvSaveFunction(textField.getText(), AdvancedExlbl[index].getText());
}
++index;
}
exInitialize();
extxtAdvancedDescription.clear();
Alert confirmationMsg = new Alert(AlertType.INFORMATION);
confirmationMsg.setTitle("Successfull Transaction");
confirmationMsg.setHeaderText(null);
confirmationMsg.setContentText("Your transaction completed successfully.");
Stage MakeATransactionStage = (Stage) exbtnSave.getScene().getWindow();
confirmationMsg.setX(MakeATransactionStage.getX() + 200);
confirmationMsg.setY(MakeATransactionStage.getY() + 170);
confirmationMsg.showAndWait();
(new GoToOperation()).goToDashboard(MakeATransactionStage.getX(), MakeATransactionStage.getY());
MakeATransactionStage.close();
}
}
示例10: handleAbout
@FXML
private void handleAbout() {
Alert alert = new Alert(AlertType.INFORMATION);
alert.setTitle("Kanphnia2");
alert.setHeaderText("About");
alert.setContentText("This is a password manager.");
alert.showAndWait();
}
示例11: about
@FXML
public void about() {
try {
Alert alert = new Alert(AlertType.INFORMATION);
alert.setTitle("Chess Bot v1.0.0");
alert.setHeaderText("Developed By Husam Aljamal");
alert.setContentText("[email protected]");
UIUtils.alwaysInTop(alert);
alert.showAndWait();
} catch (Exception e) {
}
}
示例12: btnProximoRequisitos_onAction
@FXML
void btnProximoRequisitos_onAction(ActionEvent event) {
String string = getDadosTabRequisitos();
if (string.length() > 0) {
Alert alerta = new Alert(AlertType.INFORMATION);
alerta.setTitle("AlphaLab");
alerta.setHeaderText("Dados de Requisitos");
alerta.setContentText(string);
alerta.show();
} else {
tabPreencherDados.setDisable(false);
tabRequisitos.setDisable(true);
tabPaneDados.getSelectionModel().select(tabPreencherDados);
cmbDisciplina.requestFocus();
if (hbxHorarios.getChildren().size() > 1)
hbxHorarios.getChildren().remove(1, hbxHorarios.getChildren().size());
hbxHorarios.getChildren().add(buildBoxHorario());
texRequisitos.setText(resources.getString("label.numMaxAlunos") + " " + numMaxAlunos);
if (!listaSoftwaresSelecionados.isEmpty()) {
for (SoftwareEntity software : listaSoftwaresSelecionados) {
vbxSoftwares.getChildren().add(new Text(software.getDescricao()));
}
} else {
vbxSoftwares.getChildren().add(new Text("Nenhum software\nsolicitado!"));
}
// TabPreencherDados
}
}
示例13: createBooklets
public void createBooklets(){
List<File> items = list_files.getItems();
Alert alert = new Alert(AlertType.INFORMATION);
alert.initStyle(StageStyle.UNDECORATED);
alert.setHeaderText("Please wait...");
alert.setContentText("Creating booklets..." );
alert.getButtonTypes().clear();
BookletSettings settings = new BookletSettings()
.quality((int) slide_quality.getValue())
.rotateEvens(check_rotate.isSelected())
.size(combo_sizes.getValue())
.dirSetting(getDirSetting())
.path(getTargetDirectory());
Task<Void> task = new Task<Void>() {
@Override public Void call() {
for(File f : items) PrintDF.createBooklet(f, settings);
return null;
}
};
task.setOnRunning((e) -> alert.show());
task.setOnSucceeded((e) -> {
alert.getButtonTypes().add(ButtonType.CANCEL);
alert.hide();
alert.getButtonTypes().remove(ButtonType.CANCEL);
});
task.setOnFailed((e) -> {});
new Thread(task).start();
}
示例14: alertInfoMsg
public void alertInfoMsg() {
Alert alert = new Alert(AlertType.INFORMATION);
alert.setTitle("알림");
alert.setHeaderText(null);
alert.setContentText(this.msg);
alert.showAndWait();
}
示例15: systembtnWalletBalance
@FXML
private void systembtnWalletBalance(ActionEvent event) {
Stage SettingsStage = (Stage) btnDashboard.getScene().getWindow();
Alert confirmationMsg = new Alert(AlertType.INFORMATION);
confirmationMsg.setTitle("Starting Wallet Balance");
confirmationMsg.setHeaderText(null);
confirmationMsg.setContentText("Press \"Adjust Balance\" Button");
confirmationMsg.setX(SettingsStage.getX() + 200);
confirmationMsg.setY(SettingsStage.getY() + 170);
(new TabAccess()).setTabName("tabExpense");
(new GoToOperation()).goToMakeATransaction(SettingsStage.getX(), SettingsStage.getY());
confirmationMsg.showAndWait();
SettingsStage.close();
}