Example #1
0
 /**
  * Gets the desktop icon border.
  *
  * @return the desktop icon border
  */
 public static Border getDesktopIconBorder() {
   if (desktopIconBorder == null) {
     desktopIconBorder =
         new BorderUIResource.CompoundBorderUIResource(
             new LineBorder(AbstractLookAndFeel.getWindowBorderColor(), 1),
             new MatteBorder(2, 2, 1, 2, AbstractLookAndFeel.getWindowBorderColor()));
   }
   return desktopIconBorder;
 }
Example #2
0
 public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) {
   if (JTattooUtilities.isFrameActive((JComponent) c)) {
     g.setColor(AbstractLookAndFeel.getWindowBorderColor());
   } else {
     g.setColor(AbstractLookAndFeel.getWindowInactiveBorderColor());
   }
   g.drawRect(x, y, w - 1, h - 1);
 }