Java Graphics Draw Border drawBorder(Graphics g, Color c, int x, int y, int w, int h)

Here you can find the source of drawBorder(Graphics g, Color c, int x, int y, int w, int h)

Description

draw Border

License

Open Source License

Declaration

public static void drawBorder(Graphics g, Color c, int x, int y, int w,
            int h) 

Method Source Code

//package com.java2s;
/*//from   w  w  w. ja  va  2  s  . c  om
 * Copyright 2005 MH-Software-Entwicklung. All rights reserved.
 * Use is subject to license terms.
 */

import java.awt.Color;

import java.awt.Graphics;

public class Main {
    public static void drawBorder(Graphics g, Color c, int x, int y, int w,
            int h) {
        g.setColor(c);
        g.drawRect(x, y, w - 1, h - 1);
    }
}

Related

  1. drawBevel3DBorder(Graphics g, int x, int y, int w, int h, Color highlight, Color shadow, Color innerHighlight, Color innerShadow)
  2. drawBorder(Graphics2D g2d, Color borderColor, int x, int y, int width, int height)
  3. drawButtonBorder(Graphics g, int x, int y, int w, int h, Color backgroundColor, Color edgeColor, Color cornerColor)
  4. drawDirectionalTriangle(Graphics2D bbg, double heading, double x, double y, double sideLength, Color fillColor, Color borderColor)
  5. drawEtchedBorder(Graphics g, int x, int y, int width, int height, Color dark, Color bright)