【问题标题】:Opening a new jframe, and show the specified jpanel in that jframe打开一个新的 jframe,并在该 jframe 中显示指定的 jpanel
【发布时间】:2013-01-01 15:40:41
【问题描述】:
Toevoegen frame = new Toevoegen();
frame.setVisible(true);

这为我打开了新框架,但是有没有办法显示指定的 jpanel,因为在那个 jframe 中有一个选项卡窗格,我想显示(指定的)选项卡

【问题讨论】:

    标签: java netbeans


    【解决方案1】:

    你可以使用:

    tabbedPane.setSelectedIndex(tabIndex); 
    

    【讨论】:

    • 如果他的回答有帮助,请点击下方的勾选按钮。
    猜你喜欢
    • 1970-01-01
    • 2013-02-16
    • 2020-03-31
    • 2019-06-08
    • 1970-01-01
    • 2011-07-18
    • 2014-03-16
    • 1970-01-01
    • 2021-01-29
    相关资源
    最近更新 更多