private void setAlpha(int alpha) {
   transparencyPanel.getSlider().setValue(255 - alpha);
 }
 public int getAlpha() {
   return 255 - transparencyPanel.getSlider().getValue();
 }