Exemple #1
0
 static Icon getOceanDisabledButtonIcon(Image image) {
   Object[] range = (Object[]) UIManager.get("Button.disabledGrayRange");
   int min = 180;
   int max = 215;
   if (range != null) {
     min = ((Integer) range[0]).intValue();
     max = ((Integer) range[1]).intValue();
   }
   ImageProducer prod =
       new FilteredImageSource(image.getSource(), new OceanDisabledButtonImageFilter(min, max));
   return new ImageIconUIResource(Toolkit.getDefaultToolkit().createImage(prod));
 }
Exemple #2
0
 static Icon getOceanToolBarIcon(Image i) {
   ImageProducer prod = new FilteredImageSource(i.getSource(), new OceanToolBarImageFilter());
   return new ImageIconUIResource(Toolkit.getDefaultToolkit().createImage(prod));
 }