Card Layout

Rate this post

外觀:
所有元件如撲克牌堆一般,上下交疊
為預設的 Layout Manager
使用時機:
當您想要切換畫面時有用


建構元
CardLayout()
將 CardLayout 加入的方法:
.add(“Card Layout 名稱”, 元件名)
Card Layout 常用方法
public void first(Container parent)
public void previous(Container parent)
public void next(Container parent)
public void last(Container parent)
Container (Frame…) 常用方法:
public LayoutManager getLayout()

本站部分內容包含聯盟行銷連結。當您透過連結購買商品或服務時,本站將獲得微薄的佣金,這並不會影響您的購買價格,但能支持本站的運作,感謝您的支持。問題詢問

點我分享到Facebook

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *