setForeground(uidefaults.getColor("ScrollBar.foreground"));         }          @Override         public Dimension getPreferredSize() {             switch (direction) {             case NORTH:             case SOUTH:                 return new Dimension(00, 00);             case EAST:             case WEST:             