我想在点击+按钮后显示一个新的侧窗格,我是javafx的新手。
如何制作。
public class TestMe extends Application {
@Override
public void start(Stage window) throws Exception {
StackPane layout = new StackPane();
BorderPane bp = new BorderPane();
Button button = new Button("+");
bp.setRight(button);
layout.getChildren().add(bp);
Scene scene = new Scene(layout, 700, 500);
window.setScene(scene);
window.show();
}
public static void main(String[] args) {
launch();
}
}