Last change
on this file since 6186 was 6186, checked in by (none), 20 years ago |
This commit was manufactured by cvs2svn to create tag
'gsdl-2_41-distribution'.
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
488 bytes
|
Line | |
---|
1 | package org.greenstone.gatherer.util;
|
---|
2 |
|
---|
3 | import javax.swing.JComponent;
|
---|
4 | /** Create one of these to shift the gui focus as necessary. Will not run until the specified component is visible. */
|
---|
5 |
|
---|
6 | public class FocusChangerTask
|
---|
7 | extends Thread {
|
---|
8 |
|
---|
9 | private JComponent component;
|
---|
10 |
|
---|
11 | public FocusChangerTask(JComponent component) {
|
---|
12 | super("FocusChangerTask");
|
---|
13 | this.component = component;
|
---|
14 | }
|
---|
15 |
|
---|
16 | public void run() {
|
---|
17 | while(!component.isVisible()) {
|
---|
18 | }
|
---|
19 | component.requestFocus();
|
---|
20 | }
|
---|
21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.