|
|
@ -82,10 +82,6 @@ public class GUIGroupedTableHeader extends JTableHeader implements TableColumnMo |
|
|
|
|
|
|
|
|
model.updateGroups(); |
|
|
model.updateGroups(); |
|
|
|
|
|
|
|
|
this.setPreferredSize(new Dimension(bottomHeader.getPreferredSize().width, bottomHeader.getPreferredSize().height * 2)); |
|
|
|
|
|
this.setMinimumSize(new Dimension(bottomHeader.getMinimumSize().width, bottomHeader.getMinimumSize().height * 2)); |
|
|
|
|
|
this.setMaximumSize(new Dimension(bottomHeader.getMaximumSize().width, bottomHeader.getMaximumSize().height * 2)); |
|
|
|
|
|
|
|
|
|
|
|
Component[] cs = this.getComponents(); |
|
|
Component[] cs = this.getComponents(); |
|
|
for (int i = 0; i < cs.length; i++) |
|
|
for (int i = 0; i < cs.length; i++) |
|
|
{ |
|
|
{ |
|
|
@ -145,6 +141,23 @@ public class GUIGroupedTableHeader extends JTableHeader implements TableColumnMo |
|
|
//bottomHeader.setToolTipText(null); |
|
|
//bottomHeader.setToolTipText(null); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public Dimension getPreferredSize() |
|
|
|
|
|
{ |
|
|
|
|
|
return new Dimension(bottomHeader.getPreferredSize().width, bottomHeader.getPreferredSize().height * 2); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public Dimension getMinimumSize() |
|
|
|
|
|
{ |
|
|
|
|
|
return new Dimension(bottomHeader.getMinimumSize().width, bottomHeader.getMinimumSize().height * 2); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public Dimension getMaximumSize() |
|
|
|
|
|
{ |
|
|
|
|
|
return new Dimension(bottomHeader.getMaximumSize().width, bottomHeader.getMaximumSize().height * 2); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* A fairly ugly hack to prevent a CellRenderer to be added to this container. More elegant solutions are welcome. |
|
|
* A fairly ugly hack to prevent a CellRenderer to be added to this container. More elegant solutions are welcome. |
|
|
@ -182,20 +195,16 @@ public class GUIGroupedTableHeader extends JTableHeader implements TableColumnMo |
|
|
* Overwritten to give the JTableHeaders a change to resize as well. |
|
|
* Overwritten to give the JTableHeaders a change to resize as well. |
|
|
* @see javax.swing.table.JTableHeader#resizeAndRepaint() |
|
|
* @see javax.swing.table.JTableHeader#resizeAndRepaint() |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
|
|
|
|
|
|
/*@Override |
|
|
public void resizeAndRepaint() |
|
|
public void resizeAndRepaint() |
|
|
{ |
|
|
{ |
|
|
if (topHeader != null && bottomHeader != null) |
|
|
if (topHeader != null && bottomHeader != null) |
|
|
{ |
|
|
{ |
|
|
this.setPreferredSize(new Dimension(bottomHeader.getPreferredSize().width, bottomHeader.getPreferredSize().height * 2)); |
|
|
|
|
|
this.setMinimumSize(new Dimension(bottomHeader.getMinimumSize().width, bottomHeader.getMinimumSize().height * 2)); |
|
|
|
|
|
this.setMaximumSize(new Dimension(bottomHeader.getMaximumSize().width, bottomHeader.getMaximumSize().height * 2)); |
|
|
|
|
|
|
|
|
|
|
|
this.doLayout(); |
|
|
this.doLayout(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
super.resizeAndRepaint(); |
|
|
super.resizeAndRepaint(); |
|
|
} |
|
|
|
|
|
|
|
|
}*/ |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Set the column model. |
|
|
* Set the column model. |
|
|
|