Package java.awt

Examples of java.awt.Graphics2D.fill3DRect()


          break;
        case 1:
          g.fillRect(0, 0, w - 1, h - 1);
          break;
        case 2:
          g.fill3DRect(0, 0, w - 1, h - 1, false);
          break;
        case 3:
          g.fill3DRect(0, 0, w - 1, h - 1, true);
          break;
      }
View Full Code Here


          break;
        case 2:
          g.fill3DRect(0, 0, w - 1, h - 1, false);
          break;
        case 3:
          g.fill3DRect(0, 0, w - 1, h - 1, true);
          break;
      }
      if (borderColor != null) {
        g.setColor(borderColor);
        g.drawRect(0, 0, w - 1, h - 1);
View Full Code Here

    for (int i = 0; i < ui.length; i++) {
      Graphics2D g = ui[i].createGraphics();
     
      g.setColor((Color) this.get(color[i], component));
      if (borderColor == null) {
        g.fill3DRect(0, 0, w, h, true);
      }
      else { // borderColor != null
        g.fill3DRect(0, 0, w - 1, h - 1, true);
        g.setColor(borderColor);
        g.drawRect(0, 0, w - 1, h - 1);
View Full Code Here

      g.setColor((Color) this.get(color[i], component));
      if (borderColor == null) {
        g.fill3DRect(0, 0, w, h, true);
      }
      else { // borderColor != null
        g.fill3DRect(0, 0, w - 1, h - 1, true);
        g.setColor(borderColor);
        g.drawRect(0, 0, w - 1, h - 1);
      }
     
      g.dispose();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.