/** * A collapsible pane always returns its preferred size for the minimum size * to ensure that the collapsing happens correctly. * <p> * To query the minimum size of the contents user {@code * getContentPane().getMinimumSize()}. * * @return the preferred size of the component */ @Override public Dimension getMinimumSize() { return getPreferredSize(); }
/** * A collapsible pane always returns its preferred size for the minimum size * to ensure that the collapsing happens correctly. * <p> * To query the minimum size of the contents user {@code * getContentPane().getMinimumSize()}. * * @return the preferred size of the component */ @Override public Dimension getMinimumSize() { return getPreferredSize(); }
/** * A collapsible pane always returns its preferred size for the minimum size * to ensure that the collapsing happens correctly. * <p> * To query the minimum size of the contents user {@code * getContentPane().getMinimumSize()}. * * @return the preferred size of the component */ @Override public Dimension getMinimumSize() { return getPreferredSize(); }
/** * A collapsible pane always returns its preferred size for the minimum size * to ensure that the collapsing happens correctly. * <p> * To query the minimum size of the contents user {@code * getContentPane().getMinimumSize()}. * * @return the preferred size of the component */ @Override public Dimension getMinimumSize() { return getPreferredSize(); }
/** * A collapsible pane always returns its preferred size for the minimum size * to ensure that the collapsing happens correctly. * <p> * To query the minimum size of the contents user {@code * getContentPane().getMinimumSize()}. * * @return the preferred size of the component */ @Override public Dimension getMinimumSize() { return getPreferredSize(); }
@Override public Dimension getPreferredSize(JComponent c) { Component component = group.getComponent(0); if (!(component instanceof JXCollapsiblePane)) { // something wrong in this JXTaskPane return super.getPreferredSize(c); } JXCollapsiblePane collapsible = (JXCollapsiblePane) component; Dimension dim = collapsible.getPreferredSize(); Border groupBorder = group.getBorder(); if (groupBorder instanceof PaneBorder) { ((PaneBorder) groupBorder).label.setDisplayedMnemonic(group .getMnemonic()); Dimension border = ((PaneBorder) groupBorder) .getPreferredSize(group); dim.width = Math.max(dim.width, border.width); dim.height += border.height; } else { dim.height += getTitleHeight(c); } return dim; }
@Override public Dimension getPreferredSize(JComponent c) { Component component = group.getComponent(0); if (!(component instanceof JXCollapsiblePane)) { // something wrong in this JXTaskPane return super.getPreferredSize(c); } JXCollapsiblePane collapsible = (JXCollapsiblePane) component; Dimension dim = collapsible.getPreferredSize(); Border groupBorder = group.getBorder(); if (groupBorder instanceof PaneBorder) { ((PaneBorder) groupBorder).label.setDisplayedMnemonic(group .getMnemonic()); Dimension border = ((PaneBorder) groupBorder) .getPreferredSize(group); dim.width = Math.max(dim.width, border.width); dim.height += border.height; } else { dim.height += getTitleHeight(c); } return dim; }
@Override public Dimension getPreferredSize(JComponent c) { Component component = group.getComponent(0); if (!(component instanceof JXCollapsiblePane)) { // something wrong in this JXTaskPane return super.getPreferredSize(c); } JXCollapsiblePane collapsible = (JXCollapsiblePane) component; Dimension dim = collapsible.getPreferredSize(); Border groupBorder = group.getBorder(); if (groupBorder instanceof PaneBorder) { ((PaneBorder) groupBorder).label.setDisplayedMnemonic(group .getMnemonic()); Dimension border = ((PaneBorder) groupBorder) .getPreferredSize(group); dim.width = Math.max(dim.width, border.width); dim.height += border.height; } else { dim.height += getTitleHeight(c); } return dim; }
@Override public Dimension getPreferredSize(JComponent c) { Component component = group.getComponent(0); if (!(component instanceof JXCollapsiblePane)) { // something wrong in this JXTaskPane return super.getPreferredSize(c); } JXCollapsiblePane collapsible = (JXCollapsiblePane) component; Dimension dim = collapsible.getPreferredSize(); Border groupBorder = group.getBorder(); if (groupBorder instanceof PaneBorder) { ((PaneBorder) groupBorder).label.setDisplayedMnemonic(group .getMnemonic()); Dimension border = ((PaneBorder) groupBorder) .getPreferredSize(group); dim.width = Math.max(dim.width, border.width); dim.height += border.height; } else { dim.height += getTitleHeight(c); } return dim; }
@Override public Dimension getPreferredSize(JComponent c) { Component component = group.getComponent(0); if (!(component instanceof JXCollapsiblePane)) { // something wrong in this JXTaskPane return super.getPreferredSize(c); } JXCollapsiblePane collapsible = (JXCollapsiblePane) component; Dimension dim = collapsible.getPreferredSize(); Border groupBorder = group.getBorder(); if (groupBorder instanceof PaneBorder) { ((PaneBorder) groupBorder).label.setDisplayedMnemonic(group .getMnemonic()); Dimension border = ((PaneBorder) groupBorder) .getPreferredSize(group); dim.width = Math.max(dim.width, border.width); dim.height += border.height; } else { dim.height += getTitleHeight(c); } return dim; }