所以我有这个按钮.可以使用回车键按下它,可以通过Tab键选择它,但不能点击它,并且就光标而言似乎不存在.我不相信有什么东西可以覆盖它,但是大多数都是如此,因为使用相同代码创建的按钮是可点击的.
public class Main extends Application {
@Override
public void start(Stage primaryStage) throws Exception{
primaryStage.setTitle("Mortgage Calculator");
GridPane pane = new GridPane();
pane.setAlignment(Pos.CENTER);
pane.setHgap(10);
pane.setVgap(10);
pane.setPadding(new Insets(25, 25, 25, 25));
Scene scene = new Scene(pane, 350, 325);
Text sceneTitle = new Text("Mortgage Calculator");
sceneTitle.setFont(Font.font("Arial", FontWeight.NORMAL, 20));
pane.add(sceneTitle, 0, 0, 2, 1);
Label total = new Label("Value of your Mortgage:");
pane.add(total, 0, 1);
final TextField totalField = new TextField();
pane.add(totalField, 1, 1);
Label percent = new Label("% Interest:");
pane.add(percent, 0, 2);
final …Run Code Online (Sandbox Code Playgroud) <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<link rel="css" type="text/css" href="stylesheet.css"/>
</head>
<body>
<p>
<strong>C</strong>ascading
<strong>S</strong>tyle
<strong>S</strong>heets
</p>
</body>
</html>
p {
color: blue;
text-decoration: underline;
}
strong {
color:red;
}
body {
background: aqua;
}
Run Code Online (Sandbox Code Playgroud)
由于某种原因,这将无法加载.我通过CSS和HTML验证器运行它,但我使用开发人员工具,它没有显示附加的css样式表,并且我的(非常基本的)格式化没有被应用.我看了几个其他的问题,没有解决这个问题.