mainPane.setDividerLocation(lastMove); mainPane.setResizeWeight(0);
if (lastMove != -1) { mainPane.setDividerLocation(lastMove); mainPane.setResizeWeight(0); }
    void showClipBoard(boolean b)    {        JComponent cb = model.getClipBoard().getUI();        if (cb == null) return;        if (b) {            mainPane.setRightComponent(cb);            mainPane.setDividerLocation(lastMove);            mainPane.setResizeWeight(0);        } else {            lastMove = mainPane.getDividerLocation();            mainPane.remove(cb);        }    }