开发者

JavaFx instance in FXML

I try fxml feature in javaFX

  1. how to specify a title while creating TabedPane? the code below don't work

    <Accordion >
            <panes>
                <TitledPane>
                    <title>
                        <String fx:value="123"/>
                    </title>
                    <content>
                        <Text text="123"/>
                    </content>
    
       开发者_Python百科         </TitledPane>
            </panes>
        </Accordion>
    

2 how to instantiate Duration for animation?

<Duration><Double fx:value="300"/></Duration>


answer on 2 TitledPane extends Labeled therefore has property text

<TitledPane text="header">
            <content>
                <Text text="123"/>
            </content>

        </TitledPane>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜