/** * Initialize the components and layout of this component. */ private void init() { // WARNING: called from ctor so must not be overridden (i.e. must be private or final) setLayout(new BorderLayout(0, 10)); if (displayName) { setBorder(makeBorder()); add(makeTitlePanel(), BorderLayout.NORTH); } add(createTablePanel(), BorderLayout.CENTER); // Force the table to be at least 70 pixels high add(Box.createVerticalStrut(70), BorderLayout.WEST); add(createButtonPanel(), BorderLayout.SOUTH); }