gpt4 book ai didi

JavaFX 工具提示删除页面 Angular

转载 作者:行者123 更新时间:2023-11-30 08:29:02 26 4
gpt4 key购买 nike

我正在尝试从工具提示中删除页 Angular ,但我无法让 CSS 保持不变。

我的代码看起来像:

public class PinRender extends StackPane {

private Shape shape;
private Text textNode;
private String text;

public PinRender(Shape shape) {
this.shape = shape;
this.textNode = new Text();
this.text = "";
this.getChildren().add(shape);
this.getChildren().add(textNode);
this.getStylesheets().add(PinRender.class.getResource("ToolTipStyle.css").toExternalForm());

Tooltip tooltip = new Tooltip("ToolTips are the best!");
tooltip.getStyleClass().add("ttip");

Tooltip.install(this, tooltip);
}

public void setColor(Color c) {
shape.setFill(c);
}
}

我的 CSS 看起来像:

.ttip{
-fx-background-radius: 0 0 0 0;
-fx-background-color: linear-gradient(white,whitesmoke);
}

.page-corner {
-fx-shape: " ";
}

但我仍然看到带有折叠页 Angular 的默认丑陋黄色。

我是否试图错误地使用我的 CSS?

最佳答案

.page-corner {
-fx-background-color: transparent;
}

关于JavaFX 工具提示删除页面 Angular ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19775989/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com