0
A
回答
1
這與他們c#
有一個節點。我不知道JavaFX
是否有這種類型的節點。在SceneBuilder
我在邊界頂部添加了一個圍繞Pane
和Label
的邊框。然後我將根目錄AnchorPane
的背景設置爲白色,將背景設置爲白色。我沒有嘗試Group
,但我猜這可能是一個好主意。
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.Pane?>
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" style="-fx-background-color: White;" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1">
<children>
<Pane fx:id="pane" layoutX="200.0" layoutY="100.0" prefHeight="200.0" prefWidth="200.0" style="-fx-border-color: BLACK;" />
<Label layoutX="218.0" layoutY="92.0" style="-fx-background-color: WHITE;" text="Label" />
</children>
</AnchorPane>
相關問題
- 1. 如何在JavaFX的
- 2. 如何在JavaFX的
- 3. 如何在JavaFX的
- 4. 如何在JavaFX的
- 5. 如何在JavaFX的
- 6. 如何在JavaFX
- 7. 如何在JavaFX
- 8. 如何在JavaFX(FXML)
- 9. 的JavaFX如何在標籤
- 10. 如何在使用JavaFX
- 11. 如何TableView中的JavaFX的
- 12. 如何畫在畫布上的JavaFX
- 13. 如何在輸出中的JavaFX
- 14. 的JavaFX如何讓底部
- 15. 如何從表列的JavaFX
- 16. 如何擴大和JavaFX的
- 17. 如何使用JavaFX
- 18. 如何調試JavaFX
- 19. 如何關閉Javafx?
- 20. 的EntityManager在JavaFX
- 21. 在JavaFX的
- 22. 在JavaFX的8
- 23. 如何在javafx-8中設置setable()?
- 24. 如何在JavaFX中嵌入Piccolo2D畫布?
- 25. 如何在javafx中有另一場景
- 26. 如何在javafx中創建示波器?
- 27. 如何在JavaFx中擴展圖表
- 28. 如何在JavaFX中生成FileTree?
- 29. 如何在javafx中加載圖像
- 30. 如何在ComboBox javafx中設置ButtonCell?
你提的問題不夠明確回答。你的意思是哪個圖表邊界?普通JFX 8圖表?他們創造了自己的傳奇。或者你想要一個樣式化的TextField? – SilverMonkey
我使用JavaFX8 .. –
我不認爲這個問題是關於傳說的。更多關於邊界面板和這樣一個問題之前已經被問到:https://stackoverflow.com/questions/17288995/how-to-add-border-to-panel-of-javafx – notmyf4ulty