Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
2dbc7d70
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
2dbc7d70
编写于
3月 24, 2011
作者:
A
alexp
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6992716: Typos in JLayer files
Reviewed-by: rupashka
上级
6d02aea3
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
13 addition
and
15 deletion
+13
-15
src/share/classes/javax/swing/JLayer.java
src/share/classes/javax/swing/JLayer.java
+2
-2
src/share/classes/javax/swing/plaf/LayerUI.java
src/share/classes/javax/swing/plaf/LayerUI.java
+11
-13
未找到文件。
src/share/classes/javax/swing/JLayer.java
浏览文件 @
2dbc7d70
...
@@ -476,7 +476,7 @@ public final class JLayer<V extends Component>
...
@@ -476,7 +476,7 @@ public final class JLayer<V extends Component>
* for this {@code JLayer} and the {@code JLayer}
* for this {@code JLayer} and the {@code JLayer}
* is displayable.
* is displayable.
* <p/>
* <p/>
* The following example shows how to correc
lt
y use this method
* The following example shows how to correc
tl
y use this method
* in the {@code LayerUI} implementations:
* in the {@code LayerUI} implementations:
* <pre>
* <pre>
* public void installUI(JComponent c) {
* public void installUI(JComponent c) {
...
@@ -834,7 +834,7 @@ public final class JLayer<V extends Component>
...
@@ -834,7 +834,7 @@ public final class JLayer<V extends Component>
}
}
/**
/**
* First, implementat
at
ion of this method iterates through
* First, implementation of this method iterates through
* glassPane's child components and returns {@code true}
* glassPane's child components and returns {@code true}
* if any of them is visible and contains passed x,y point.
* if any of them is visible and contains passed x,y point.
* After that it checks if no mouseListeners is attached to this component
* After that it checks if no mouseListeners is attached to this component
...
...
src/share/classes/javax/swing/plaf/LayerUI.java
浏览文件 @
2dbc7d70
...
@@ -25,9 +25,7 @@
...
@@ -25,9 +25,7 @@
package
javax.swing.plaf
;
package
javax.swing.plaf
;
import
javax.accessibility.Accessible
;
import
javax.swing.*
;
import
javax.swing.*
;
import
javax.swing.plaf.ComponentUI
;
import
java.awt.*
;
import
java.awt.*
;
import
java.awt.event.*
;
import
java.awt.event.*
;
import
java.beans.PropertyChangeEvent
;
import
java.beans.PropertyChangeEvent
;
...
@@ -38,7 +36,7 @@ import java.io.Serializable;
...
@@ -38,7 +36,7 @@ import java.io.Serializable;
/**
/**
* The base class for all {@link javax.swing.JLayer}'s UI delegates.
* The base class for all {@link javax.swing.JLayer}'s UI delegates.
* <p/>
* <p/>
* {@link #paint(java.awt.Graphics, javax.swing.JComponent)} method perform
e
s the
* {@link #paint(java.awt.Graphics, javax.swing.JComponent)} method performs the
* painting of the {@code JLayer}
* painting of the {@code JLayer}
* and {@link #eventDispatched(AWTEvent, JLayer)} method is notified
* and {@link #eventDispatched(AWTEvent, JLayer)} method is notified
* about any {@code AWTEvent}s which have been generated by a {@code JLayer}
* about any {@code AWTEvent}s which have been generated by a {@code JLayer}
...
@@ -165,7 +163,7 @@ public class LayerUI<V extends Component>
...
@@ -165,7 +163,7 @@ public class LayerUI<V extends Component>
* l.setLayerEventMask(AWTEvent.COMPONENT_EVENT_MASK);
* l.setLayerEventMask(AWTEvent.COMPONENT_EVENT_MASK);
* }
* }
*
*
* public void unistallUI(JComponent c) {
* public void uni
n
stallUI(JComponent c) {
* super.uninstallUI(c);
* super.uninstallUI(c);
* JLayer l = (JLayer) c;
* JLayer l = (JLayer) c;
* l.setLayerEventMask(0);
* l.setLayerEventMask(0);
...
@@ -197,7 +195,7 @@ public class LayerUI<V extends Component>
...
@@ -197,7 +195,7 @@ public class LayerUI<V extends Component>
* l.setLayerEventMask(AWTEvent.FOCUS_EVENT_MASK);
* l.setLayerEventMask(AWTEvent.FOCUS_EVENT_MASK);
* }
* }
*
*
* public void unistallUI(JComponent c) {
* public void uni
n
stallUI(JComponent c) {
* super.uninstallUI(c);
* super.uninstallUI(c);
* JLayer l = (JLayer) c;
* JLayer l = (JLayer) c;
* l.setLayerEventMask(0);
* l.setLayerEventMask(0);
...
@@ -229,7 +227,7 @@ public class LayerUI<V extends Component>
...
@@ -229,7 +227,7 @@ public class LayerUI<V extends Component>
* l.setLayerEventMask(AWTEvent.KEY_EVENT_MASK);
* l.setLayerEventMask(AWTEvent.KEY_EVENT_MASK);
* }
* }
*
*
* public void unistallUI(JComponent c) {
* public void uni
n
stallUI(JComponent c) {
* super.uninstallUI(c);
* super.uninstallUI(c);
* JLayer l = (JLayer) c;
* JLayer l = (JLayer) c;
* l.setLayerEventMask(0);
* l.setLayerEventMask(0);
...
@@ -261,7 +259,7 @@ public class LayerUI<V extends Component>
...
@@ -261,7 +259,7 @@ public class LayerUI<V extends Component>
* l.setLayerEventMask(AWTEvent.MOUSE_EVENT_MASK);
* l.setLayerEventMask(AWTEvent.MOUSE_EVENT_MASK);
* }
* }
*
*
* public void unistallUI(JComponent c) {
* public void uni
n
stallUI(JComponent c) {
* super.uninstallUI(c);
* super.uninstallUI(c);
* JLayer l = (JLayer) c;
* JLayer l = (JLayer) c;
* l.setLayerEventMask(0);
* l.setLayerEventMask(0);
...
@@ -293,7 +291,7 @@ public class LayerUI<V extends Component>
...
@@ -293,7 +291,7 @@ public class LayerUI<V extends Component>
* l.setLayerEventMask(AWTEvent.MOUSE_MOTION_EVENT_MASK);
* l.setLayerEventMask(AWTEvent.MOUSE_MOTION_EVENT_MASK);
* }
* }
*
*
* public void unistallUI(JComponent c) {
* public void uni
n
stallUI(JComponent c) {
* super.uninstallUI(c);
* super.uninstallUI(c);
* JLayer l = (JLayer) c;
* JLayer l = (JLayer) c;
* l.setLayerEventMask(0);
* l.setLayerEventMask(0);
...
@@ -325,7 +323,7 @@ public class LayerUI<V extends Component>
...
@@ -325,7 +323,7 @@ public class LayerUI<V extends Component>
* l.setLayerEventMask(AWTEvent.MOUSE_WHEEL_EVENT_MASK);
* l.setLayerEventMask(AWTEvent.MOUSE_WHEEL_EVENT_MASK);
* }
* }
*
*
* public void unistallUI(JComponent c) {
* public void uni
n
stallUI(JComponent c) {
* super.uninstallUI(c);
* super.uninstallUI(c);
* JLayer l = (JLayer) c;
* JLayer l = (JLayer) c;
* l.setLayerEventMask(0);
* l.setLayerEventMask(0);
...
@@ -357,7 +355,7 @@ public class LayerUI<V extends Component>
...
@@ -357,7 +355,7 @@ public class LayerUI<V extends Component>
* l.setLayerEventMask(AWTEvent.INPUT_METHOD_EVENT_MASK);
* l.setLayerEventMask(AWTEvent.INPUT_METHOD_EVENT_MASK);
* }
* }
*
*
* public void unistallUI(JComponent c) {
* public void uni
n
stallUI(JComponent c) {
* super.uninstallUI(c);
* super.uninstallUI(c);
* JLayer l = (JLayer) c;
* JLayer l = (JLayer) c;
* l.setLayerEventMask(0);
* l.setLayerEventMask(0);
...
@@ -389,7 +387,7 @@ public class LayerUI<V extends Component>
...
@@ -389,7 +387,7 @@ public class LayerUI<V extends Component>
* l.setLayerEventMask(AWTEvent.HIERARCHY_EVENT_MASK);
* l.setLayerEventMask(AWTEvent.HIERARCHY_EVENT_MASK);
* }
* }
*
*
* public void unistallUI(JComponent c) {
* public void uni
n
stallUI(JComponent c) {
* super.uninstallUI(c);
* super.uninstallUI(c);
* JLayer l = (JLayer) c;
* JLayer l = (JLayer) c;
* l.setLayerEventMask(0);
* l.setLayerEventMask(0);
...
@@ -421,7 +419,7 @@ public class LayerUI<V extends Component>
...
@@ -421,7 +419,7 @@ public class LayerUI<V extends Component>
* l.setLayerEventMask(AWTEvent.HIERARCHY_BOUNDS_EVENT_MASK);
* l.setLayerEventMask(AWTEvent.HIERARCHY_BOUNDS_EVENT_MASK);
* }
* }
*
*
* public void unistallUI(JComponent c) {
* public void uni
n
stallUI(JComponent c) {
* super.uninstallUI(c);
* super.uninstallUI(c);
* JLayer l = (JLayer) c;
* JLayer l = (JLayer) c;
* l.setLayerEventMask(0);
* l.setLayerEventMask(0);
...
@@ -691,7 +689,7 @@ public class LayerUI<V extends Component>
...
@@ -691,7 +689,7 @@ public class LayerUI<V extends Component>
* Otherwise, the default implementation is used.
* Otherwise, the default implementation is used.
*
*
* @param c {@code JLayer} to return preferred size for
* @param c {@code JLayer} to return preferred size for
* @return maximu
n
size for the passed {@code JLayer}
* @return maximu
m
size for the passed {@code JLayer}
*/
*/
public
Dimension
getMaximumSize
(
JComponent
c
)
{
public
Dimension
getMaximumSize
(
JComponent
c
)
{
JLayer
l
=
(
JLayer
)
c
;
JLayer
l
=
(
JLayer
)
c
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录