protected static class

BorderedComponent.FocusBorder

extends AbstractBorder
implements FocusListener
java.lang.Object
   ↳ javax.swing.border.AbstractBorder
     ↳ sun.tools.jconsole.BorderedComponent.FocusBorder

Summary

Public Constructors
BorderedComponent.FocusBorder(Component comp)
Public Methods
void focusGained(FocusEvent e)
Invoked when a component gains the keyboard focus.
void focusLost(FocusEvent e)
Invoked when a component loses the keyboard focus.
Insets getBorderInsets(Component c, Insets insets)
Reinitializes the insets parameter with this Border's current Insets.
Insets getBorderInsets(Component c)
This default implementation returns a new Insets instance where the top, left, bottom, and right fields are set to 0.
void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
This default implementation does no painting.
[Expand]
Inherited Methods
From class javax.swing.border.AbstractBorder
From class java.lang.Object
From interface java.awt.event.FocusListener
From interface javax.swing.border.Border

Public Constructors

public BorderedComponent.FocusBorder (Component comp)

Public Methods

public void focusGained (FocusEvent e)

Invoked when a component gains the keyboard focus.

public void focusLost (FocusEvent e)

Invoked when a component loses the keyboard focus.

public Insets getBorderInsets (Component c, Insets insets)

Reinitializes the insets parameter with this Border's current Insets.

Parameters
c the component for which this border insets value applies
insets the object to be reinitialized
Returns
  • the insets object

public Insets getBorderInsets (Component c)

This default implementation returns a new Insets instance where the top, left, bottom, and right fields are set to 0.

Parameters
c the component for which this border insets value applies
Returns
  • the new Insets object initialized to 0

public void paintBorder (Component c, Graphics g, int x, int y, int width, int height)

This default implementation does no painting.

Parameters
c the component for which this border is being painted
g the paint graphics
x the x position of the painted border
y the y position of the painted border
width the width of the painted border
height the height of the painted border