我註冊到cardPanel對象3 JPanel。獲得一個確切的JPanel,註冊到JPanel並設置了CardLayout
JPanel cardPanel = new JPanel(new CardLayout());
cardPanel.add(viewPerf, "Performances");
cardPanel.add(viewFaults, "Faults");
cardPanel.add(viewGraph, "Throughput Graph");
我只能得到一個JPanel.how我可以做這個操作嗎?
我不明白這個問題。 – user1329572 2012-07-12 12:02:49
我有三個jpanel註冊到jpanel cardpanel,我會得到viewGraph面板。我可以做什麼? – user1508419 2012-07-12 12:04:09