Where The Streets Have No Name

docking frames 예제(3) 본문

Developement/Java

docking frames 예제(3)

highheat 2009. 11. 10. 14:29
private void initStackDockStation() {
        DockController controller = new DockController();

        StackDockStation station = new StackDockStation();
        station.setTitleText("Stack");
        station.drop(new DefaultDockable("one"));
        station.drop(new DefaultDockable("two"));

        controller.add(station);
        getFrame().add(station.getComponent());

        System.out.println(""+station.getDockableCount());
        for(int inx = 0;inx < station.getDockableCount();inx++){
            System.out.println(""+station.getDockable(inx).getTitleText());
        }
}