簡體   English   中英

打開一個新的jframe,並在該jframe中顯示指定的jpanel

[英]Opening a new jframe, and show the specified jpanel in that jframe

Toevoegen frame = new Toevoegen();
frame.setVisible(true);

這為我打開了新框架,但是有一種顯示指定的jpanel的方法,因為在該jframe中有一個選項卡式窗格,我想顯示(指定的)選項卡

您可以使用:

tabbedPane.setSelectedIndex(tabIndex); 

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM