public void paintComponent(Graphics g) {
   super.paintComponent(g);
   g.setColor(highlight);
   g.drawLine(4, 8, 4, 11);
   g.drawLine(4, 8, BUTTON_SIZE - 5, 8);
   g.setColor(shadow);
   g.drawLine(5, 11, BUTTON_SIZE - 5, 11);
   g.drawLine(BUTTON_SIZE - 5, 9, BUTTON_SIZE - 5, 11);
 }
 public void paintComponent(Graphics g) {
   super.paintComponent(g);
   g.setColor(highlight);
   g.drawLine(7, 8, 7, 11);
   g.drawLine(7, 8, 10, 8);
   g.setColor(shadow);
   g.drawLine(8, 11, 10, 11);
   g.drawLine(11, 9, 11, 11);
 }
 public void paintComponent(Graphics g) {
   super.paintComponent(g);
   int max = BUTTON_SIZE - 5;
   boolean isMaxed = frame.isMaximum();
   g.setColor(isMaxed ? shadow : highlight);
   g.drawLine(4, 4, 4, max);
   g.drawLine(4, 4, max, 4);
   g.setColor(isMaxed ? highlight : shadow);
   g.drawLine(5, max, max, max);
   g.drawLine(max, 5, max, max);
 }
 public void paintComponent(Graphics g) {
   super.paintComponent(g);
   if (frame.isSelected()) {
     g.setColor(UIManager.getColor("activeCaptionText"));
   } else {
     g.setColor(UIManager.getColor("inactiveCaptionText"));
   }
   Dimension d = getSize();
   String frameTitle = frame.getTitle();
   if (frameTitle != null) {
     MotifGraphicsUtils.drawStringInRect(
         frame, g, frameTitle, 0, 0, d.width, d.height, SwingConstants.CENTER);
   }
 }