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


Java Tooltip.install方法代碼示例

本文整理匯總了Java中javafx.scene.control.Tooltip.install方法的典型用法代碼示例。如果您正苦於以下問題:Java Tooltip.install方法的具體用法?Java Tooltip.install怎麽用?Java Tooltip.install使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在javafx.scene.control.Tooltip的用法示例。


在下文中一共展示了Tooltip.install方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: initialize

import javafx.scene.control.Tooltip; //導入方法依賴的package包/類
@FXML
public void initialize() {
	lblUserFullName.setText(userFullName()+" ");
	showAllMonths();
	showAllFilter();
	datePicker.setConverter(formatManager);
	datePicker.setValue(date);
	webEngine = webview.getEngine();
	showHisoty();
	
	btnSignOut.setTooltip(new Tooltip("Sign Out from application"));
	btnGo.setTooltip(new Tooltip("Seach history by the selected date"));
	Tooltip.install(lblUserFullName, new Tooltip("User's Full Name"));
	Tooltip.install(cmboHistoryMonth, new Tooltip("Your all transactional month name"));
	Tooltip.install(cmboFilterList, new Tooltip("Select a filter to get specilazid search"));
	Tooltip.install(datePicker, new Tooltip("Select a date to get history on that day"));
	Tooltip.install(webview, new Tooltip("Your History"));
}
 
開發者ID:krHasan,項目名稱:Money-Manager,代碼行數:19,代碼來源:TransactionHistoryController.java

示例2: initialize

import javafx.scene.control.Tooltip; //導入方法依賴的package包/類
@FXML
	public void initialize() {
		lblUserFullName.setText(userFullName()+" "); //show user full name on Menu
		lblWalletBalance.setText(addThousandSeparator(getWalletBalance())); //show current wallet balance
		CashCalculate(); //set all field initialize value to 0
		
//		add tooltip on mouse hover
		btnDashboard.setTooltip(new Tooltip("Will Take you to Dashboard"));
		btnMakeATransaction.setTooltip(new Tooltip("Will Take you to Expense"));
		btnSignOut.setTooltip(new Tooltip("Sign Out from Application"));
		Tooltip.install(lblWalletBalance, new Tooltip("Your wallet balance now"));
		Tooltip.install(lblUserFullName, new Tooltip("User's Full Name"));
		Tooltip.install(txt1000, new Tooltip("Number of 1000 Tk. Notes in your hand"));
		Tooltip.install(txt500, new Tooltip("Number of 500 Tk. Notes in your hand"));
		Tooltip.install(txt100, new Tooltip("Number of 100 Tk. Notes in your hand"));
		Tooltip.install(txt50, new Tooltip("Number of 50 Tk. Notes in your hand"));
		Tooltip.install(txt20, new Tooltip("Number of 20 Tk. Notes in your hand"));
		Tooltip.install(txt10, new Tooltip("Number of 10 Tk. Notes in your hand"));
		Tooltip.install(txt5, new Tooltip("Number of 5 Tk. Notes in your hand"));
		Tooltip.install(txt2, new Tooltip("Number of 2 Tk. Notes in your hand"));
		Tooltip.install(txt1, new Tooltip("Number of 1 Tk. Notes in your hand"));
	}
 
開發者ID:krHasan,項目名稱:Money-Manager,代碼行數:23,代碼來源:CashCalculateController.java

示例3: ClickableBitcoinAddress

import javafx.scene.control.Tooltip; //導入方法依賴的package包/類
public ClickableBitcoinAddress() {
    try {
        FXMLLoader loader = new FXMLLoader(getClass().getResource("bitcoin_address.fxml"));
        loader.setRoot(this);
        loader.setController(this);
        // The following line is supposed to help Scene Builder, although it doesn't seem to be needed for me.
        loader.setClassLoader(getClass().getClassLoader());
        loader.load();

        AwesomeDude.setIcon(copyWidget, AwesomeIcon.COPY);
        Tooltip.install(copyWidget, new Tooltip("Copy address to clipboard"));

        AwesomeDude.setIcon(qrCode, AwesomeIcon.QRCODE);
        Tooltip.install(qrCode, new Tooltip("Show a barcode scannable with a mobile phone for this address"));

        addressStr = convert(address);
        addressLabel.textProperty().bind(addressStr);
    } catch (IOException e) {
        throw new RuntimeException(e);
    }
}
 
開發者ID:creativechain,項目名稱:creacoinj,代碼行數:22,代碼來源:ClickableBitcoinAddress.java

示例4: generateTooltip

import javafx.scene.control.Tooltip; //導入方法依賴的package包/類
private void generateTooltip() {
    if (fTooltip != null) {
        return;
    }
    TooltipContents ttContents = new TooltipContents(fWidget.getDebugOptions());
    ttContents.addTooltipRow(Messages.statePropertyElement, fInterval.getTreeElement().getName());
    ttContents.addTooltipRow(Messages.statePropertyStateName, fInterval.getStateName());
    ttContents.addTooltipRow(Messages.statePropertyStartTime, fInterval.getStartTime());
    ttContents.addTooltipRow(Messages.statePropertyEndTime, fInterval.getEndTime());
    ttContents.addTooltipRow(Messages.statePropertyDuration, fInterval.getDuration() + " ns"); //$NON-NLS-1$
    /* Add rows corresponding to the properties from the interval */
    Map<String, String> properties = fInterval.getProperties();
    properties.forEach((k, v) -> ttContents.addTooltipRow(k, v));

    Tooltip tt = new Tooltip();
    tt.setGraphic(ttContents);
    Tooltip.install(this, tt);
    fTooltip = tt;
}
 
開發者ID:lttng,項目名稱:lttng-scope,代碼行數:20,代碼來源:StateRectangle.java

示例5: setToolTip

import javafx.scene.control.Tooltip; //導入方法依賴的package包/類
public void setToolTip(ImageView imageView, Image image) {
    String msg = "";
    msg += "image: " + image.getImageName() + "\n";

    if(image.getPosition() != -1)
        msg += "position: " + image.getPosition() + "\n";

    if(image.getScore() != -1)
        msg += "score: " + image.getScore() + "\n";

    Tooltip tooltip = new Tooltip(msg);
    tooltip.setFont(new Font("Arial", 16));
    tooltip.setStyle("-fx-background-color: aquamarine; -fx-text-fill: black");

    Tooltip.install(imageView, tooltip);
}
 
開發者ID:AntonioGabrielAndrade,項目名稱:LIRE-Lab,代碼行數:17,代碼來源:ToolTipProvider.java

示例6: addLocation

import javafx.scene.control.Tooltip; //導入方法依賴的package包/類
public void addLocation(final Location LOCATION) {
    double x = (LOCATION.getLongitude() + 180) * (PREFERRED_WIDTH / 360) + MAP_OFFSET_X;
    double y = (PREFERRED_HEIGHT / 2) - (PREFERRED_WIDTH * (Math.log(Math.tan((Math.PI / 4) + (Math.toRadians(LOCATION.getLatitude()) / 2)))) / (2 * Math.PI)) + MAP_OFFSET_Y;

    FontIcon locationIcon = new FontIcon(null == LOCATION.getIconCode() ? locationIconCode : LOCATION.getIconCode());
    locationIcon.setIconSize(LOCATION.getIconSize());
    locationIcon.setTextOrigin(VPos.CENTER);
    locationIcon.setIconColor(null == LOCATION.getColor() ? getLocationColor() : LOCATION.getColor());
    locationIcon.setX(x - LOCATION.getIconSize() * 0.5);
    locationIcon.setY(y);

    StringBuilder tooltipBuilder = new StringBuilder();
    if (!LOCATION.getName().isEmpty()) tooltipBuilder.append(LOCATION.getName());
    if (!LOCATION.getInfo().isEmpty()) tooltipBuilder.append("\n").append(LOCATION.getInfo());
    String tooltipText = tooltipBuilder.toString();
    if (!tooltipText.isEmpty()) {
        Tooltip tooltip = new Tooltip(tooltipText);
        tooltip.setFont(Font.font(10));
        Tooltip.install(locationIcon, tooltip);
    }

    if (null != LOCATION.getMouseEnterHandler()) locationIcon.setOnMouseEntered(new WeakEventHandler<>(LOCATION.getMouseEnterHandler()));
    if (null != LOCATION.getMousePressHandler()) locationIcon.setOnMousePressed(new WeakEventHandler<>(LOCATION.getMousePressHandler()));
    if (null != LOCATION.getMouseReleaseHandler()) locationIcon.setOnMouseReleased(new WeakEventHandler<>(LOCATION.getMouseReleaseHandler()));
    if (null != LOCATION.getMouseExitHandler()) locationIcon.setOnMouseExited(new WeakEventHandler<>(LOCATION.getMouseExitHandler()));

    locations.put(LOCATION, locationIcon);
}
 
開發者ID:HanSolo,項目名稱:worldheatmap,代碼行數:29,代碼來源:World.java

示例7: initialize

import javafx.scene.control.Tooltip; //導入方法依賴的package包/類
@FXML
public void initialize() {
	lblUserFullName.setText(getOwnerName());
	try {
		if(!checkUserPresence()) {
			txtUsername.setDisable(true);
			passPassword.setDisable(true);
			btnSignIn.setDisable(true);
			lblForgetPassword.setDisable(true);
		} else if(!openingDateUpdate()) {
			lblOutdateMsg.setText("Your computer date is outdated, please update it and restart the program");
			txtUsername.setDisable(true);
			passPassword.setDisable(true);
			btnSignIn.setDisable(true);
			lblForgetPassword.setDisable(true);
			lblNewUser.setDisable(true);
		}
	} catch (Exception e) {}
	
	if (!isDBConnected()) {
		lblWrongAuthentication.setText("Database not found");
	}
	
	btnSignIn.setTooltip(new Tooltip("If Username and Password will \n"
			+ "correct you will be signed in"));
	btnCancel.setTooltip(new Tooltip("Cancel the action"));
	btnOk.setTooltip(new Tooltip("If your answer is matches, you will take to reset password window"));
	Tooltip.install(txtUsername, new Tooltip("Type your Username"));
	Tooltip.install(passPassword, new Tooltip("Enter password"));
	Tooltip.install(lblForgetPassword, new Tooltip("Press if you forget password"));
	Tooltip.install(lblNewUser, new Tooltip("Press if you are a new user or\n"
			+ "want to remove existing user and create new one"));
	Tooltip.install(cmboSecurityQuetion, new Tooltip("Choose your security question"));
	Tooltip.install(txtSQAnswer, new Tooltip("Answer what was your security question answer"));
}
 
開發者ID:krHasan,項目名稱:Money-Manager,代碼行數:36,代碼來源:SignInController.java

示例8: createSegment

import javafx.scene.control.Tooltip; //導入方法依賴的package包/類
private Path createSegment(final double START_ANGLE, final double END_ANGLE, final double INNER_RADIUS, final double OUTER_RADIUS, final Color FILL, final Color STROKE, final TreeNode NODE) {
    double  startAngleRad = Math.toRadians(START_ANGLE + 90);
    double  endAngleRad   = Math.toRadians(END_ANGLE + 90);
    boolean largeAngle    = Math.abs(END_ANGLE - START_ANGLE) > 180.0;

    double x1 = centerX + INNER_RADIUS * Math.sin(startAngleRad);
    double y1 = centerY - INNER_RADIUS * Math.cos(startAngleRad);

    double x2 = centerX + OUTER_RADIUS * Math.sin(startAngleRad);
    double y2 = centerY - OUTER_RADIUS * Math.cos(startAngleRad);

    double x3 = centerX + OUTER_RADIUS * Math.sin(endAngleRad);
    double y3 = centerY - OUTER_RADIUS * Math.cos(endAngleRad);

    double x4 = centerX + INNER_RADIUS * Math.sin(endAngleRad);
    double y4 = centerY - INNER_RADIUS * Math.cos(endAngleRad);

    MoveTo moveTo1 = new MoveTo(x1, y1);
    LineTo lineTo2 = new LineTo(x2, y2);
    ArcTo  arcTo3  = new ArcTo(OUTER_RADIUS, OUTER_RADIUS, 0, x3, y3, largeAngle, true);
    LineTo lineTo4 = new LineTo(x4, y4);
    ArcTo  arcTo1  = new ArcTo(INNER_RADIUS, INNER_RADIUS, 0, x1, y1, largeAngle, false);

    Path path = new Path(moveTo1, lineTo2, arcTo3, lineTo4, arcTo1);

    path.setFill(FILL);
    path.setStroke(STROKE);

    String tooltipText = new StringBuilder(NODE.getData().getName()).append("\n").append(String.format(Locale.US, formatString, NODE.getData().getValue())).toString();
    Tooltip.install(path, new Tooltip(tooltipText));

    path.setOnMousePressed(new WeakEventHandler<>(e -> NODE.getTreeRoot().fireTreeNodeEvent(new TreeNodeEvent(NODE, EventType.NODE_SELECTED))));

    return path;
}
 
開發者ID:HanSolo,項目名稱:SunburstChart,代碼行數:36,代碼來源:SunburstChart.java

示例9: Candle

import javafx.scene.control.Tooltip; //導入方法依賴的package包/類
private Candle(String seriesStyleClass, String dataStyleClass) {
    setAutoSizeChildren(false);
    getChildren().addAll(highLowLine, bar);
    this.seriesStyleClass = seriesStyleClass;
    this.dataStyleClass = dataStyleClass;
    updateStyleClasses();
    tooltip.setGraphic(new TooltipContent());
    Tooltip.install(bar, tooltip);
}
 
開發者ID:jalian-systems,項目名稱:marathonv5,代碼行數:10,代碼來源:AdvCandleStickChartSample.java

示例10: addToolTips

import javafx.scene.control.Tooltip; //導入方法依賴的package包/類
public void addToolTips(Node node) {
    ObservableList<Node> children = getChildren(node);
    for (Node n : children) {
        addToolTips(n);
    }
    Tooltip.install(node, new Tooltip(createTooltipText(node)));
}
 
開發者ID:jalian-systems,項目名稱:marathonv5,代碼行數:8,代碼來源:ModalDialog.java

示例11: createSegment

import javafx.scene.control.Tooltip; //導入方法依賴的package包/類
private Path createSegment(final double START_ANGLE, final double END_ANGLE, final double INNER_RADIUS, final double OUTER_RADIUS, final Paint FILL, final Color STROKE, final TreeNode NODE) {
    double  startAngleRad = Math.toRadians(START_ANGLE + 90);
    double  endAngleRad   = Math.toRadians(END_ANGLE + 90);
    boolean largeAngle    = Math.abs(END_ANGLE - START_ANGLE) > 180.0;

    double x1 = centerX + INNER_RADIUS * Math.sin(startAngleRad);
    double y1 = centerY - INNER_RADIUS * Math.cos(startAngleRad);

    double x2 = centerX + OUTER_RADIUS * Math.sin(startAngleRad);
    double y2 = centerY - OUTER_RADIUS * Math.cos(startAngleRad);

    double x3 = centerX + OUTER_RADIUS * Math.sin(endAngleRad);
    double y3 = centerY - OUTER_RADIUS * Math.cos(endAngleRad);

    double x4 = centerX + INNER_RADIUS * Math.sin(endAngleRad);
    double y4 = centerY - INNER_RADIUS * Math.cos(endAngleRad);

    MoveTo moveTo1 = new MoveTo(x1, y1);
    LineTo lineTo2 = new LineTo(x2, y2);
    ArcTo  arcTo3  = new ArcTo(OUTER_RADIUS, OUTER_RADIUS, 0, x3, y3, largeAngle, true);
    LineTo lineTo4 = new LineTo(x4, y4);
    ArcTo  arcTo1  = new ArcTo(INNER_RADIUS, INNER_RADIUS, 0, x1, y1, largeAngle, false);

    Path path = new Path(moveTo1, lineTo2, arcTo3, lineTo4, arcTo1);

    path.setFill(FILL);
    path.setStroke(STROKE);

    String tooltipText = new StringBuilder(NODE.getItem().getName()).append("\n").append(String.format(Locale.US, formatString, NODE.getItem().getValue())).toString();
    Tooltip.install(path, new Tooltip(tooltipText));

    path.setOnMousePressed(new WeakEventHandler<>(e -> NODE.getTreeRoot().fireTreeNodeEvent(new TreeNodeEvent(NODE, EventType.NODE_SELECTED))));

    return path;
}
 
開發者ID:HanSolo,項目名稱:charts,代碼行數:36,代碼來源:SunburstChart.java

示例12: addToolTip

import javafx.scene.control.Tooltip; //導入方法依賴的package包/類
/**
 * Adds ToolTip from ToolTop library on Mouse Hover
 */
private void addToolTip() {
    tooltip = new Tooltip(myVertex.getTaxonNode().getName() + "\nID: " + myVertex.getTaxonNode().getTaxonId()
            + "\nRelative Frequency: " + String.format("%.3f", AnalysisData.getMaximumRelativeFrequencies().get(myVertex.getTaxonNode())));
    tooltip.setFont(Font.font(14));
    Tooltip.install(this,tooltip);
}
 
開發者ID:jmueller95,項目名稱:CORNETTO,代碼行數:10,代碼來源:MyVertexView.java

示例13: CountryPath

import javafx.scene.control.Tooltip; //導入方法依賴的package包/類
public CountryPath(final String NAME, final String CONTENT) {
    super();
    name    = NAME;
    locale  = new Locale("", NAME);
    tooltip = new Tooltip(locale.getDisplayCountry());
    Tooltip.install(CountryPath.this, tooltip);
    if (null == CONTENT) return;
    setContent(CONTENT);
}
 
開發者ID:HanSolo,項目名稱:charts,代碼行數:10,代碼來源:CountryPath.java

示例14: initialize

import javafx.scene.control.Tooltip; //導入方法依賴的package包/類
@FXML
public void initialize() {
	showTab();
	lblUserFullName.setText(getUserFullName()+" ");
	
	btnSignOut.setTooltip(new Tooltip("Sign Out from application"));
	Tooltip.install(lblUserFullName, new Tooltip("User's Full Name"));
	btnDashboard.setTooltip(new Tooltip("Take you to Dashboard"));
	btnMakeATransaction.setTooltip(new Tooltip("Take you to Transaction window"));
	btnTransactionHistory.setTooltip(new Tooltip("Take you to History window"));
	
	bnkbtnSave.setTooltip(new Tooltip("Save your changes"));
	Tooltip.install(bnkrbtnbkYes, new Tooltip("Choose if you have a bKash account"));
	Tooltip.install(bnkrbtnbkNo, new Tooltip("Choose if you don't have a bKash account"));
	Tooltip.install(bnktxtbkCashinAgent, new Tooltip("Charge for per 1000 tk Cash in from agent"));
	Tooltip.install(bnktxtbkCashOutAgent, new Tooltip("Charge for per 1000 tk Cash out from agent"));
	Tooltip.install(bnktxtbkSendMoney, new Tooltip("Charge for send money"));
	Tooltip.install(bnktxtbkCashOutATM, new Tooltip("Charge for per 1000 tk Cash out from ATM"));
	Tooltip.install(bnkrbtnrocYes, new Tooltip("Choose if you have a Rocket account"));
	Tooltip.install(bnkrbtnrocNo, new Tooltip("Choose if you don't have a Rocket account"));
	Tooltip.install(bnkrbtnrocATMFree, new Tooltip("Choose if your Rocket account is ATM free"));
	Tooltip.install(bnkrbtnrocCashinFree, new Tooltip("Choose if your Rocket account is Cash In free"));
	Tooltip.install(bnktxtrocCashinAgent, new Tooltip("Charge for per 1000 tk Cash in from Agent"));
	Tooltip.install(bnktxtrocCashinBranch, new Tooltip("Charge for per 1000 tk Cash in from DBBL Bank Branch"));
	Tooltip.install(bnktxtrocCashOutATM, new Tooltip("Charge for per 1000 tk Cash out from ATM"));
	Tooltip.install(bnktxtrocSendMoney, new Tooltip("Charge for send money"));
	Tooltip.install(bnktxtrocCashOutAgent, new Tooltip("Charge for per 1000 tk Cash out from Agent"));
	Tooltip.install(bnktxtrocCashOutBranch, new Tooltip("Charge for Cash out tk from DBBL Bank Branch"));
	
	sourcebtnCreate.setTooltip(new Tooltip("Typed name will be one of your Money Income Source"));
	sourcebtnArchive.setTooltip(new Tooltip("Selected source will be remove from \n"
			+ "your active source list and this will\n"
			+ "be no longer available in transaction"));
	sourcebtnUnarchive.setTooltip(new Tooltip("Selected source will be add to your active\n"
			+ "source list and will be available in transaction"));
	Tooltip.install(sourcetxtSourceName, new Tooltip("Type a source name from where you get Tk."));
	Tooltip.install(sourcecmboArchive, new Tooltip("List of your active sources"));
	Tooltip.install(sourcecmboUnArchive, new Tooltip("List of your archived sources"));
	
	sectorbtnCreate.setTooltip(new Tooltip("Typed name will be one of your money expense sector"));
	sectorbtnArchive.setTooltip(new Tooltip("Selected sector will be remove from \n"
			+ "your active sector list and this will\n"
			+ "be no longer available in transaction"));
	sectorbtnUnarchive.setTooltip(new Tooltip("Selected sector will be add to your active\n"
			+ "sector list and will be available in transaction"));
	Tooltip.install(sectortxtSourceName, new Tooltip("Type a sector name from where you expense Tk."));
	Tooltip.install(sectorcmboArchive, new Tooltip("List of your active sectors"));
	Tooltip.install(sectorcmboUnArchive, new Tooltip("List of your archived sectors"));
	
	systembtnChangeName.setTooltip(new Tooltip("Change your name"));
	systembtnChangePassword.setTooltip(new Tooltip("Change your password"));
	systembtnSave.setTooltip(new Tooltip("Save changes of your date and time format"));
	Tooltip.install(systemtxtUsername, new Tooltip("Your Username"));
	Tooltip.install(systemtxtName, new Tooltip("Your full name"));
	Tooltip.install(systemtxtPassword, new Tooltip("Give a password, this should not contain space"));
	Tooltip.install(systemtxtRePassword, new Tooltip("Retype the password"));
	Tooltip.install(checkBoxWeekNum, new Tooltip("Show week number in calender"));
	
	advancedBtnAdd.setTooltip(new Tooltip("Add selected sector to advanced expense sector list"));
	advancedBtnRemove.setTooltip(new Tooltip("Remove selected sector from advanced expense sector list"));
	Tooltip.install(advancedCmboAdd, new Tooltip("Select sector to add to list"));
	Tooltip.install(advancedCmboRemove, new Tooltip("Select sector to remove from list"));
	Tooltip.install(advancedlblSectorName, new Tooltip("Advanced expense sector list"));
}
 
開發者ID:krHasan,項目名稱:Money-Manager,代碼行數:65,代碼來源:SettingsController.java

示例15: initialize

import javafx.scene.control.Tooltip; //導入方法依賴的package包/類
@FXML
	public void initialize() {
//		show user name and current balance status
		lblUserFullName.setText(userFullName()+" ");
		lblWalletBalance.setText(addThousandSeparator(getWalletBalance()));
		lblTotalBorrow.setText(addThousandSeparator(getTotalBorrowTk()));
		lblTotalLend.setText(addThousandSeparator(getTotalLendTk()));
		
//		show balance if service is enabled
		if (BankIssue.isbKashActivated()) {
			lblbKashBalance.setText(addThousandSeparator(getbkAccountBalance()));
		}
		if (BankIssue.isRocketActivated()) {
			lblRocketBalance.setText(addThousandSeparator(getRocAccountBalance()));
		}
		lblPersonalBalance.setText(getPerAccountBalance());
		
		showAllGetMoneyMonths(); //load all transacted Get Money month
		showSource(); // load all active sources
		showAllExpenseMonths(); //load all transacted Expense month
		showSector(); //load all active sectors
		showSourceAmount(); //show total amount by selected source
		showSectorAmount();//show total amount by selected sector
		getMoneyChart(); //generate chart value
		expenseChart();
		clock(); //run the analog clock
		showAllCurrentStatus();
		
//		add tooltip
		btnSignOut.setTooltip(new Tooltip("Sign Out from Application"));
		btnMakeATransaction.setTooltip(new Tooltip("Take you to your transaction window"));
		btnCashCalculate.setTooltip(new Tooltip("Calculate how much money at your hand now"));
		btnSettings.setTooltip(new Tooltip("Take you to Bank, Source, Sector and System Settings"));
		btnTransactionHistory.setTooltip(new Tooltip("Show your all transaction history"));
		btnRefreshCharts.setTooltip(new Tooltip("Refresh Get Money and Expense Charts"));
		Tooltip.install(face, new Tooltip("Analog Clock"));
		Tooltip.install(lblWalletBalance, new Tooltip("Your wallet balance now"));
		Tooltip.install(lblUserFullName, new Tooltip("User's Full Name"));
		Tooltip.install(lblTotalBorrow, new Tooltip("Your Total Borrowed Tk"));
		Tooltip.install(lblTotalLend, new Tooltip("Your Total Lended Tk."));
		Tooltip.install(lblPersonalBalance, new Tooltip("Total Tk. at your personal bank"));
		Tooltip.install(lblbKashBalance, new Tooltip("Total Tk. at your bKash account"));
		Tooltip.install(lblRocketBalance, new Tooltip("Total Tk. at your Rocket account"));
		Tooltip.install(chartGetMoney, new Tooltip("Summary of how much Tk. you get in this month"));
		Tooltip.install(cmboGetMoneyMonthList, new Tooltip("All transacted month name"));
		Tooltip.install(cmboSourceList, new Tooltip("Name of Income Sources, where from you get Tk."));
		Tooltip.install(lblTotalGetMoney, new Tooltip("Total Tk. from this Income Source"));
		Tooltip.install(chartExpense, new Tooltip("Summary of how much Tk. you expensed in this month"));
		Tooltip.install(cmboExpenseMonthList, new Tooltip("All transacted month name"));
		Tooltip.install(cmboSectorList, new Tooltip("Name of Expenditure Sector, where you expense your Tk."));
		Tooltip.install(lblTotalExpense, new Tooltip("Total Tk. from this Expenditure Sector"));
		
//		show welcome note if the user is new
		if (userIsNew()) {		
			Alert confirmationMsg = new Alert(AlertType.INFORMATION);
			confirmationMsg.setTitle("Welcome");
			confirmationMsg.setHeaderText("Welcome to Money Manager, Recorder of Your Personal Finance");
			confirmationMsg.setContentText("Before starting to use, please setup your account from Settings.");
			confirmationMsg.showAndWait();
			updateLastAccessDate();
		}
	}
 
開發者ID:krHasan,項目名稱:Money-Manager,代碼行數:63,代碼來源:DashboardController.java


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