当前位置: 首页>>代码示例>>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;未经允许,请勿转载。