开发者

JavaFx instance in FXML

开发者 https://www.devze.com 2023-04-11 08:05 出处:网络
I try fxml feature in javaFX how to specify a title while creating TabedPane? the code below don\'t work

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

精彩评论

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