public TabContainer(int width, int height) {
        super(JTabbedPane.BOTTOM);
        setBorder( BorderFactory.createEmptyBorder(-2, -1, 1, -3) );
        GUI.setPreferredSize(this, width, height);

        addChangeListener(new ChangeListener() {
            @Override
            public void stateChanged(ChangeEvent e) {
                AbstractTab tab = (AbstractTab) getSelectedComponent();
                if (tab != null)
                    tab.setFocus();
            }
        });
    }