Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

oracle.javatools.ui
Class Borders

java.lang.Object
  extended by oracle.javatools.ui.Borders

public final class Borders
extends java.lang.Object

Borders provides utilities for attaching error and warning borders to Swing components.


Method Summary
static void attachBorder(javax.swing.JComponent component, java.awt.Color outer, java.awt.Color inner)
           
static void attachErrorBorder(javax.swing.JComponent component)
          Attaches an error border to the specified component.
static void attachWarningBorder(javax.swing.JComponent component)
          Attaches a warning border to the specified component.
static void restoreBorder(javax.swing.JComponent component)
          Restores the original border of a component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

attachErrorBorder

public static void attachErrorBorder(javax.swing.JComponent component)
Attaches an error border to the specified component.

Parameters:
component - a component to attach an error border to. Must not be null.
Throws:
java.lang.NullPointerException - if component is null.

attachWarningBorder

public static void attachWarningBorder(javax.swing.JComponent component)
Attaches a warning border to the specified component.

Parameters:
component - a component to attach a warning border to. Must not be null.
Throws:
java.lang.NullPointerException - if component is null.

attachBorder

public static void attachBorder(javax.swing.JComponent component,
                                java.awt.Color outer,
                                java.awt.Color inner)

restoreBorder

public static void restoreBorder(javax.swing.JComponent component)
Restores the original border of a component. Calling this method on a component which you have not attached an error or warning border using attachErrorBorder(JComponent) or attachWarningBorder(JComponent) will have no effect.

Parameters:
component - a component to restore the border for. Must not be null.
Throws:
java.lang.NullPointerException - if component is null.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

Copyright © 1997, 2011, Oracle. All rights reserved.