> could the arrows in teh divider be grayed out when they come to their
> resizable end? and how
The answer is no. A better answer would be not if do not want to write
your own version of a SplitPaneDividerUI and a SplitPaneUI. For fun you
can actually get at the one touch expandable buttons (see code below)
and disable them, however, the BasicSplitPaneDividerUI paints the
arrows black and does not show them as a grayed out.
private void findSplitPaneDividerButtons(Container container) {
for (Component comp : container.getComponents()) {
if( comp instanceof Container ){
findSplitPaneDividerButtons((Container)comp);
}
if (comp.getClass().getName().startsWith(
"javax.swing.plaf.basic.BasicSplitPaneDivider$")){
// Note: Divider button never looks disabled.
comp.setEnabled(false);
}
}
}
Cheers,
Dan Andrews
- - - - - - - - - - - - - - - - - - - - - - - -
Ansir Development Limited www.ansir.ca
- - - - - - - - - - - - - - - - - - - - - - - -