Java Code Examples for javafx.scene.control.Alert.AlertType.INFORMATION

The following are Jave code examples for showing how to use INFORMATION of the javafx.scene.control.Alert.AlertType class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: Money-Manager   File: MakeATransactionController.java   Source Code and License Vote up 6 votes
@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();
	}
 
Example 2
Project: Money-Manager   File: SettingsController.java   Source Code and License Vote up 6 votes
@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) {}
}
 
Example 3
Project: Money-Manager   File: SettingsController.java   Source Code and License Vote up 6 votes
@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();
	}
}
 
Example 4
Project: Money-Manager   File: SettingsController.java   Source Code and License Vote up 6 votes
@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) {}
}
 
Example 5
Project: Money-Manager   File: SettingsController.java   Source Code and License Vote up 6 votes
@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) {}
}
 
Example 6
Project: Money-Manager   File: SettingsController.java   Source Code and License Vote up 6 votes
@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) {}
}
 
Example 7
Project: Money-Manager   File: RegistrationIssueController.java   Source Code and License Vote up 6 votes
@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();
	}
}
 
Example 8
Project: Money-Manager   File: TransactionHistoryController.java   Source Code and License Vote up 5 votes
@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();
}
 
Example 9
Project: Money-Manager   File: MakeATransactionController.java   Source Code and License Vote up 5 votes
@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();
	}
}
 
Example 10
Project: kanphnia2   File: RootLayoutController.java   Source Code and License Vote up 5 votes
@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();
}
 
Example 11
Project: ChessBot   File: Home.java   Source Code and License Vote up 5 votes
@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) {

    }
}
 
Example 12
Project: AlphaLab   File: FrmSolicitarReservaHorarioPorRequisito.java   Source Code and License Vote up 5 votes
@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
	}
}
 
Example 13
Project: PrintDF   File: UiController.java   Source Code and License Vote up 5 votes
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();
}
 
Example 14
Project: WebtoonDownloadManager   File: AlertSupport.java   Source Code and License Vote up 5 votes
public void alertInfoMsg() {

		Alert alert = new Alert(AlertType.INFORMATION);
		alert.setTitle("알림");
		alert.setHeaderText(null);
		alert.setContentText(this.msg);
		alert.showAndWait();

	}
 
Example 15
Project: Money-Manager   File: SettingsController.java   Source Code and License Vote up 5 votes
@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();
}
 
Example 16
Project: Money-Manager   File: SettingsController.java   Source Code and License Vote up 5 votes
@FXML
private void systembtnSave(ActionEvent event) {
	DateFormatManager format = new DateFormatManager();

	try {
		String timeFormat = (String) timerbtnGroup.getSelectedToggle().getUserData();
		String dateFormat = (String) daterbtnGroup.getSelectedToggle().getUserData();

		format.setTimeFormate(timeFormat);
		format.setDateFormate(dateFormat);
		updateLastAccessDate();
		
		if (checkBoxWeekNum.isSelected()) {
			setWeekStatus(true);
		} else {
			setWeekStatus(false);
		}
		
		Alert confirmationMsg = new Alert(AlertType.INFORMATION);
		confirmationMsg.setTitle("Message");
		confirmationMsg.setHeaderText(null);
		confirmationMsg.setContentText("Information updated successfully");
		Stage SettingsStage = (Stage) btnDashboard.getScene().getWindow();
		confirmationMsg.setX(SettingsStage.getX() + 200);
		confirmationMsg.setY(SettingsStage.getY() + 170);
		confirmationMsg.showAndWait();
		
		tabSystemInitialize();
	} catch (Exception e) {
		e.printStackTrace();
	}
}
 
Example 17
Project: git-rekt   File: PlaceBookingScreenController.java   Source Code and License Vote up 5 votes
private void displayBookingNumberAndReturnHome() {
    Alert bookingSuccessDialog = new Alert(AlertType.INFORMATION);
    bookingSuccessDialog.setHeaderText("Booking Complete");
    bookingSuccessDialog.setContentText(
        "Your booking has been successfully placed. Please check your email to receive your"
            + " booking number."
    );
    bookingSuccessDialog.showAndWait();

    // Once the user has closed the dialog...
    ScreenManager.getInstance().switchToScreen("/fxml/HomeScreen.fxml");
}
 
Example 18
Project: Luna-Exam-Builder   File: Dialogs.java   Source Code and License Vote up 5 votes
public static void info(String title,String header,String body){
	Alert alert = new Alert(AlertType.INFORMATION);
	alert.setTitle(title);
	alert.setHeaderText(header);
	alert.setContentText(body);

	alert.showAndWait();
}
 
Example 19
Project: fxutils   File: FXDialog.java   Source Code and License Vote up 5 votes
public static Alert infoAlert(String header, String message) {
	Alert alert = new Alert(AlertType.INFORMATION);
	alert.setTitle("Info");
	alert.setHeaderText(header);
	alert.setContentText(message);
	return alert;
}
 
Example 20
Project: Money-Manager   File: RegistrationIssueController.java   Source Code and License Vote up 4 votes
@FXML
private void btnDelete(ActionEvent event) {
	if (!txtUsername.getText().equals(getUsername())) {
		lblMsgInformation.setText("Information did't match");
		txtUsername.clear();
		passPassword.clear();
		loadSQuestion();
		txtAnswer.clear();
	} else if(!passPassword.getText().equals(getPassword())) {
		lblMsgInformation.setText("Information did't match");
		txtUsername.clear();
		passPassword.clear();
		loadSQuestion();
		txtAnswer.clear();
	} else if(!securityQuestionAnswerIsOk(txtAnswer.getText())) {
		lblMsgInformation.setText("Information did't match");
		txtUsername.clear();
		passPassword.clear();
		loadSQuestion();
		txtAnswer.clear();
	} else if(!cmboSecurityQuestion.getValue().equals(getSavedSecurityQuestion())) {
		lblMsgInformation.setText("Information did't match");
		txtUsername.clear();
		passPassword.clear();
		loadSQuestion();
		txtAnswer.clear();
	} else {
		new DeleteUserCredentials().initializeApplication();
		
		Stage RegistrationIssueStage = (Stage) btnDelete.getScene().getWindow();
		(new GoToOperation()).goToSignIn(RegistrationIssueStage.getX(), RegistrationIssueStage.getY());
		RegistrationIssueStage.close();
		
		Alert confirmationMsg = new Alert(AlertType.INFORMATION);
		confirmationMsg.setTitle("Operation Successful");
		confirmationMsg.setHeaderText(null);
		confirmationMsg.setContentText("User Information Deleted Successfully");
		confirmationMsg.setX(RegistrationIssueStage.getX() + 200);
		confirmationMsg.setY(RegistrationIssueStage.getY() + 170);
		confirmationMsg.showAndWait();
	}
}