The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 MultiSplitPane: Splitting Without Nesting
Subject:  need public method set divider color
Date:  2007-08-27 15:46:43
From:  angelflaree


I find it'll be more useful to add some method that can set color for dividers directly. It won't cost more than a few lines of code:

e.g.
define a member variable:
Color dividerBackground;

then add a method:
public void setDividerBackground(
Color background){
dividerBackgroundColor = background;
this.repaint();
}

and change the
g2d.setColor(color.black)
in the defaultDiverPainter
to:
g2d.setColor(dividerBackground);

 Feed java.net RSS Feeds