當前位置: 首頁>>代碼示例>>Java>>正文


Java AlertType.INFORMATION屬性代碼示例

本文整理匯總了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();
	}
 
開發者ID:krHasan,項目名稱:Money-Manager,代碼行數:19,代碼來源:MakeATransactionController.java

示例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) {}
}
 
開發者ID:krHasan,項目名稱:Money-Manager,代碼行數:17,代碼來源:SettingsController.java

示例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();
	}
}
 
開發者ID:krHasan,項目名稱:Money-Manager,代碼行數:21,代碼來源:SettingsController.java

示例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) {}
}
 
開發者ID:krHasan,項目名稱:Money-Manager,代碼行數:17,代碼來源:SettingsController.java

示例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) {}
}
 
開發者ID:krHasan,項目名稱:Money-Manager,代碼行數:17,代碼來源:SettingsController.java

示例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) {}
}
 
開發者ID:krHasan,項目名稱:Money-Manager,代碼行數:17,代碼來源:SettingsController.java

示例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();
	}
}
 
開發者ID:krHasan,項目名稱:Money-Manager,代碼行數:26,代碼來源:RegistrationIssueController.java

示例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();
}
 
開發者ID:krHasan,項目名稱:Money-Manager,代碼行數:13,代碼來源:TransactionHistoryController.java

示例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();
	}
}
 
開發者ID:krHasan,項目名稱:Money-Manager,代碼行數:34,代碼來源:MakeATransactionController.java

示例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();
}
 
開發者ID:yc45,項目名稱:kanphnia2,代碼行數:9,代碼來源:RootLayoutController.java

示例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) {

    }
}
 
開發者ID:mhusam,項目名稱:ChessBot,代碼行數:13,代碼來源:Home.java

示例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
	}
}
 
開發者ID:dev-andremonteiro,項目名稱:AlphaLab,代碼行數:29,代碼來源:FrmSolicitarReservaHorarioPorRequisito.java

示例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();
}
 
開發者ID:Raudius,項目名稱:PrintDF,代碼行數:32,代碼來源:UiController.java

示例14: alertInfoMsg

public void alertInfoMsg() {

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

	}
 
開發者ID:kimyearho,項目名稱:WebtoonDownloadManager,代碼行數:9,代碼來源:AlertSupport.java

示例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();
}
 
開發者ID:krHasan,項目名稱:Money-Manager,代碼行數:15,代碼來源:SettingsController.java


注:本文中的javafx.scene.control.Alert.AlertType.INFORMATION屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。