How to make a Text content disappear after some time in JavaFX?
问题 b1.setOnAction(new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent e) { try { Class.forName("com.mysql.jdbc.Driver"); connect = DriverManager .getConnection("jdbc:mysql://localhost:3306/project?" + "user=root&password=virus"); statement = connect.createStatement(); preparedStatement = connect .prepareStatement("select * from mark where clsnum = " + txt1.getText() + ""); rs = preparedStatement.executeQuery(); if (rs.next()) { delete(); } else { msg.setText("Student Not