Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
c7e57502
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c7e57502
编写于
1月 15, 2013
作者:
A
alexsch
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8003978: closed/javax/swing/JRootPane/bug4670486.java fails since jdk7u12b01 on macosx
Reviewed-by: serb, leonidr
上级
ae091499
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
25 addition
and
4 deletion
+25
-4
src/share/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java
...e/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java
+0
-1
src/share/classes/com/sun/java/swing/plaf/motif/MotifLookAndFeel.java
...asses/com/sun/java/swing/plaf/motif/MotifLookAndFeel.java
+4
-2
src/share/classes/javax/swing/plaf/basic/BasicLookAndFeel.java
...hare/classes/javax/swing/plaf/basic/BasicLookAndFeel.java
+3
-1
src/share/classes/sun/swing/SwingUtilities2.java
src/share/classes/sun/swing/SwingUtilities2.java
+8
-0
test/java/awt/KeyboardFocusmanager/TypeAhead/SubMenuShowTest/SubMenuShowTest.java
...cusmanager/TypeAhead/SubMenuShowTest/SubMenuShowTest.java
+10
-0
未找到文件。
src/share/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java
浏览文件 @
c7e57502
...
...
@@ -787,7 +787,6 @@ public class GTKLookAndFeel extends SynthLookAndFeel {
"List.font"
,
new
FontLazyValue
(
Region
.
LIST
),
"List.rendererUseUIBorder"
,
Boolean
.
FALSE
,
"Menu.shortcutKeys"
,
new
int
[]
{
KeyEvent
.
ALT_MASK
},
"Menu.arrowIcon"
,
new
GTKStyle
.
GTKLazyValue
(
"com.sun.java.swing.plaf.gtk.GTKIconFactory"
,
"getMenuArrowIcon"
),
...
...
src/share/classes/com/sun/java/swing/plaf/motif/MotifLookAndFeel.java
浏览文件 @
c7e57502
...
...
@@ -630,8 +630,10 @@ public class MotifLookAndFeel extends BasicLookAndFeel
"Menu.menuPopupOffsetY"
,
new
Integer
(
0
),
"Menu.submenuPopupOffsetX"
,
new
Integer
(-
2
),
"Menu.submenuPopupOffsetY"
,
new
Integer
(
3
),
"Menu.shortcutKeys"
,
new
int
[]
{
KeyEvent
.
ALT_MASK
,
KeyEvent
.
META_MASK
},
"Menu.shortcutKeys"
,
new
int
[]{
SwingUtilities2
.
getSystemMnemonicKeyMask
(),
KeyEvent
.
META_MASK
},
"Menu.cancelMode"
,
"hideMenuTree"
,
"MenuBar.border"
,
menuBarBorder
,
...
...
src/share/classes/javax/swing/plaf/basic/BasicLookAndFeel.java
浏览文件 @
c7e57502
...
...
@@ -1153,7 +1153,9 @@ public abstract class BasicLookAndFeel extends LookAndFeel implements Serializab
"Menu.menuPopupOffsetY"
,
new
Integer
(
0
),
"Menu.submenuPopupOffsetX"
,
new
Integer
(
0
),
"Menu.submenuPopupOffsetY"
,
new
Integer
(
0
),
"Menu.shortcutKeys"
,
new
int
[]
{
KeyEvent
.
ALT_MASK
},
"Menu.shortcutKeys"
,
new
int
[]{
SwingUtilities2
.
getSystemMnemonicKeyMask
()
},
"Menu.crossMenuMnemonic"
,
Boolean
.
TRUE
,
// Menu.cancelMode affects the cancel menu action behaviour;
// currently supports:
...
...
src/share/classes/sun/swing/SwingUtilities2.java
浏览文件 @
c7e57502
...
...
@@ -1879,4 +1879,12 @@ public class SwingUtilities2 {
}
return
-
1
;
}
public
static
int
getSystemMnemonicKeyMask
()
{
Toolkit
toolkit
=
Toolkit
.
getDefaultToolkit
();
if
(
toolkit
instanceof
SunToolkit
)
{
return
((
SunToolkit
)
toolkit
).
getFocusAcceleratorKeyMask
();
}
return
InputEvent
.
ALT_MASK
;
}
}
test/java/awt/KeyboardFocusmanager/TypeAhead/SubMenuShowTest/SubMenuShowTest.java
浏览文件 @
c7e57502
...
...
@@ -36,6 +36,7 @@ import java.applet.Applet;
import
java.util.concurrent.atomic.AtomicBoolean
;
import
java.lang.reflect.InvocationTargetException
;
import
test.java.awt.regtesthelpers.Util
;
import
sun.awt.OSInfo
;
public
class
SubMenuShowTest
extends
Applet
{
Robot
robot
;
...
...
@@ -86,6 +87,11 @@ public class SubMenuShowTest extends Applet {
frame
.
setVisible
(
true
);
Util
.
waitForIdle
(
robot
);
boolean
isMacOSX
=
(
OSInfo
.
getOSType
()
==
OSInfo
.
OSType
.
MACOSX
);
if
(
isMacOSX
)
{
robot
.
keyPress
(
KeyEvent
.
VK_CONTROL
);
robot
.
delay
(
20
);
}
robot
.
keyPress
(
KeyEvent
.
VK_ALT
);
robot
.
delay
(
20
);
robot
.
keyPress
(
KeyEvent
.
VK_F
);
...
...
@@ -93,6 +99,10 @@ public class SubMenuShowTest extends Applet {
robot
.
keyRelease
(
KeyEvent
.
VK_F
);
robot
.
delay
(
20
);
robot
.
keyRelease
(
KeyEvent
.
VK_ALT
);
if
(
isMacOSX
)
{
robot
.
keyRelease
(
KeyEvent
.
VK_CONTROL
);
robot
.
delay
(
20
);
}
Util
.
waitForIdle
(
robot
);
robot
.
keyPress
(
KeyEvent
.
VK_M
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录