Where The Streets Have No Name

docking frames 예제(2) 본문

Developement/Java

docking frames 예제(2)

highheat 2009. 11. 10. 14:03
private void initDockController() {
        DockController controller = new DockController();  
        SplitDockStation station = new SplitDockStation();
        controller.add(station);

        SplitDockGrid grid = new SplitDockGrid();
        grid.addDockable(0, 0, 2, 1, new DefaultDockable("North"));
        grid.addDockable(0, 1, 1, 1, new DefaultDockable("South West"));
        grid.addDockable(1, 1, 1, 1, new DefaultDockable("South East"));
        station.dropTree(grid.toTree());

        getFrame().add(station.getComponent());
        controller.setTheme(new EclipseTheme());
        controller.getProperties().set(EclipseTheme.TAB_PAINTER, RectGradientPainter.FACTORY);
}