Java Swing Border setDebugBorder(final JComponent component)

Here you can find the source of setDebugBorder(final JComponent component)

Description

set Debug Border

License

Open Source License

Declaration

public static void setDebugBorder(final JComponent component) 

Method Source Code

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

import java.awt.Color;

import java.awt.GradientPaint;

import java.awt.Paint;

import javax.swing.BorderFactory;

import javax.swing.JComponent;

public class Main {
    private static final Paint debugBorderPaint = new GradientPaint(0, 0, Color.red, 100, 100, Color.white, true);

    public static void setDebugBorder(final JComponent component) {
        component.setBorder(BorderFactory.createDashedBorder(debugBorderPaint));
    }/*from ww w  .j av  a2 s  .  c o m*/
}

Related

  1. repaintBorder(JComponent component)
  2. repaintBorder(JComponent component)
  3. setBorder(Border b, JComponent... components)
  4. setBorder(JComponent comp, boolean setBorder, Color col)
  5. setBorder(JComponent comp, Border border)
  6. setDefaultComponentsTabOrder(Vector v)
  7. setViewportBorder(JScrollPane scrollPane, int vertical, int horizontal)
  8. showBorder(JComponent c, Color color)
  9. suppressBorders(JComponent comp)