| | |
| | | * limitations under the License.
|
| | | */
|
| | | package com.gitblit.authority;
|
| | | import javax.swing.*;
|
| | | import javax.swing.event.*;
|
| | | import javax.swing.JComponent;
|
| | | import javax.swing.event.AncestorEvent;
|
| | | import javax.swing.event.AncestorListener;
|
| | |
|
| | | /**
|
| | | * Convenience class to request focus on a component.
|
| | |
| | | * allows you to specify a boolean value of false to prevent the
|
| | | * AncestorListener from being removed when the event is generated. This will
|
| | | * allow you to reuse the listener each time the event is generated.
|
| | | * |
| | | *
|
| | | * @author Rob Camick
|
| | | */
|
| | | public class RequestFocusListener implements AncestorListener
|