日期:2014-05-20 浏览次数:20727 次
JPanel panel = new JPanel(); panel.setLayout(new CardLayout()); LayoutManager manager = panel.getLayout(); if (manager instanceof CardLayout) { CardLayout layout = (CardLayout) manager; layout.show(panel, name); System.out.println("HELlo"); }