Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DockingVl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Software Control System
Libraries
java
DockingVl
Commits
0115406e
Commit
0115406e
authored
Nov 2, 2015
by
Raphael GIRARDOT
Browse files
Options
Downloads
Patches
Plain Diff
minor changes
parent
107da02b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/fr/soleil/docking/vl/view/VlDockView.java
+6
-6
6 additions, 6 deletions
src/main/java/fr/soleil/docking/vl/view/VlDockView.java
with
6 additions
and
6 deletions
src/main/java/fr/soleil/docking/vl/view/VlDockView.java
+
6
−
6
View file @
0115406e
...
...
@@ -111,27 +111,27 @@ public class VlDockView implements IView, Dockable, DockingActionListener, Focus
public
void
select
()
{
setVisible
(
true
);
// TODO Doesn't work !!!!!!
focus
(
component
);
focus
(
component
,
true
);
focusGained
(
new
FocusEvent
(
component
,
FocusEvent
.
FOCUS_GAINED
));
}
protected
static
boolean
focus
(
Component
comp
)
{
protected
static
boolean
focus
(
Component
comp
,
boolean
forceFocus
)
{
boolean
focused
=
false
;
if
(
comp
!=
null
)
{
if
(
comp
.
isVisible
()
&&
comp
.
isShowing
())
{
if
(
forceFocus
||
(
comp
.
isVisible
()
&&
comp
.
isShowing
())
)
{
if
(
comp
.
isFocusable
())
{
comp
.
requestFocus
();
comp
.
requestFocusInWindow
();
focused
=
true
;
}
else
if
(
comp
instanceof
Container
)
{
Container
container
=
(
Container
)
comp
;
for
(
Component
child
:
container
.
getComponents
())
{
if
(
focus
(
child
))
{
if
(
focus
(
child
,
false
))
{
focused
=
true
;
break
;
}
}
}
}
else
{
comp
.
setVisible
(
true
);
}
}
return
focused
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment