Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
d440f642
Commit
d440f642
authored
Jan 17, 2004
by
Tom Tromey
Committed by
Tom Tromey
Jan 17, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* java/awt/Container.java: Typo and indentation fixes.
From-SVN: r76004
parent
b54a2715
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
19 deletions
+21
-19
libjava/ChangeLog
+2
-0
libjava/java/awt/Container.java
+19
-19
No files found.
libjava/ChangeLog
View file @
d440f642
2004
-
01
-
16
Tom
Tromey
<
tromey
@
redhat
.
com
>
*
java
/
awt
/
Container
.
java
:
Typo
and
indentation
fixes
.
*
java
/
lang
/
natClassLoader
.
cc
:
Moved
VMClassLoader
methods
...
*
java
/
lang
/
natVMClassLoader
.
cc
:
...
here
.
New
file
.
*
Makefile
.
in
:
Rebuilt
.
...
...
libjava/java/awt/Container.java
View file @
d440f642
/* Container.java -- parent container class in AWT
Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation
Copyright (C) 1999, 2000, 2002, 2003
, 2004
Free Software Foundation
This file is part of GNU Classpath.
...
...
@@ -1516,7 +1516,7 @@ public class Container extends Component
(
ACCESSIBLE_CHILD_PROPERTY
,
e
.
getChild
(),
null
);
}
}
// class AccessibleContainerHandler
}
// class AccessibleAWT
Panel
}
// class AccessibleAWT
Container
}
// class Container
/**
...
...
@@ -1562,26 +1562,26 @@ class LightweightDispatcher implements Serializable
Component
candidate
=
mouseEventTarget
;
boolean
candidate_is_container_with_children
=
((
candidate
!=
null
)
&&
(
candidate
instanceof
Container
)
&&
(((
Container
)
candidate
).
getComponentCount
()
>
0
));
((
candidate
!=
null
)
&&
(
candidate
instanceof
Container
)
&&
(((
Container
)
candidate
).
getComponentCount
()
>
0
));
boolean
candidate_does_not_contain_point
=
((
candidate
!=
null
)
&&
(!
candidate
.
contains
(
x
-
candidate
.
getX
(),
((
candidate
!=
null
)
&&
(!
candidate
.
contains
(
x
-
candidate
.
getX
(),
y
-
candidate
.
getY
())));
if
(
candidate
==
null
||
candidate_is_container_with_children
||
candidate_does_not_contain_point
)
{
{
// Try to reacquire.
candidate
=
nativeContainer
.
findComponentAt
(
x
,
y
);
}
}
if
(
mouseEventTarget
!=
null
&&
mouseEventTarget
!=
candidate
)
{
{
int
nx
=
x
-
mouseEventTarget
.
getX
();
int
ny
=
y
-
mouseEventTarget
.
getY
();
MouseEvent
exited
=
new
MouseEvent
(
mouseEventTarget
,
...
...
@@ -1594,15 +1594,15 @@ class LightweightDispatcher implements Serializable
me
.
getButton
());
mouseEventTarget
.
dispatchEvent
(
exited
);
mouseEventTarget
=
null
;
}
}
if
(
candidate
!=
null
)
{
{
// Possibly set new state.
if
(
candidate
.
isLightweight
()
&&
candidate
!=
nativeContainer
&&
candidate
!=
mouseEventTarget
)
{
{
mouseEventTarget
=
candidate
;
...
...
@@ -1620,16 +1620,16 @@ class LightweightDispatcher implements Serializable
me
.
getButton
());
mouseEventTarget
.
dispatchEvent
(
entered
);
}
}
}
}
boolean
handleEvent
(
AWTEvent
e
)
{
if
((
eventMask
&
e
.
getID
())
==
0
)
return
false
;
return
false
;
if
(
e
instanceof
MouseEvent
)
{
{
MouseEvent
me
=
(
MouseEvent
)
e
;
acquireComponentForMouseEvent
(
me
);
...
...
@@ -1640,11 +1640,11 @@ class LightweightDispatcher implements Serializable
mouseEventTarget
.
dispatchEvent
(
me
);
me
.
setSource
(
oldSource
);
}
}
}
else
if
(
e
instanceof
KeyEvent
&&
focus
!=
null
)
{
{
focus
.
processKeyEvent
((
KeyEvent
)
e
);
}
}
return
e
.
isConsumed
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment