0
나는 플로우 팬을 사용하여 탭 패널로 전환 중입니다. 나는 어떻게해야할지 모른다. 캔버스와 창을 탭 페인 내에 사용하고 싶습니다. 가능합니까? 다음은JavaFX에서 TabPane 사용
public View(TabPane root) {
this.root = root;
tab1 = new Tab();
root.getTabs().add(tab1);
tab2 = new Tab();
root.getTabs().add(tab2);
ui = new Pane();
canvas = new Canvas(600,600);
//gc is graphics context
gc = canvas.getGraphicsContext2D();
//this is where the problem is??
//i have no idea how to add ui and canvas to my tab1
tab1.getChildren().addAll(ui, canvas);
}