Java Swing Border drawDisabledBorder(Graphics g, int x, int y, int w, int h)

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

Description

draw Disabled Border

License

Open Source License

Declaration

static void drawDisabledBorder(Graphics g, int x, int y, int w, int h) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.awt.Graphics;

import javax.swing.plaf.metal.MetalLookAndFeel;

public class Main {
    static void drawDisabledBorder(Graphics g, int x, int y, int w, int h) {
        g.translate(x, y);/*  ww w .  j a  va 2s  .co m*/
        g.setColor(MetalLookAndFeel.getControlShadow());
        g.drawRect(0, 0, w - 1, h - 1);
        g.translate(-x, -y);
    }
}

Related

  1. createTitledBorder(Color color, String name)
  2. createVerticalBox(Border border, Component... comps)
  3. drawBorderTrans(Graphics2D g, JComponent focusOwner, JComponent area)
  4. drawBorderWhite(Graphics2D g, JComponent focusOwner, JComponent area)
  5. drawDisabledBorder(Graphics g, int x, int y, int w, int h)
  6. extendByBorder(JLabel label, Dimension dm)
  7. findComponentWithBorder(JComponent panel, Class aClass)
  8. generatePanelWithoutBorder()
  9. getDefaultBorder()