1_运行jfoenix官方演示
2_切换片段
.button:focused{
-fx-background-color: #26282C;
-fx-border-width: 0 0 0 2;
-fx-border-color: #33ffff;
}
复制代码
package sample;
import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXToolbar;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Parent;
import javafx.scene.input.MouseEvent;
import java.io