Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
6a2a9f2a
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看板
提交
6a2a9f2a
编写于
8月 01, 2016
作者:
A
asaha
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
a95acdc7
a34ce555
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
22 addition
and
3 deletion
+22
-3
.hgtags
.hgtags
+1
-0
src/windows/classes/sun/awt/windows/WFramePeer.java
src/windows/classes/sun/awt/windows/WFramePeer.java
+14
-1
src/windows/classes/sun/awt/windows/WMenuBarPeer.java
src/windows/classes/sun/awt/windows/WMenuBarPeer.java
+7
-2
未找到文件。
.hgtags
浏览文件 @
6a2a9f2a
...
...
@@ -635,6 +635,7 @@ de1d09f09e571e38afdf1fb72984ec210e7c19e6 jdk8u111-b02
710f0c95444deb36b422f449f422d925a72f6b2c jdk8u111-b04
d689f7b806c89e535f784ba94bea1ae129ee0f19 jdk8u111-b05
6c822cce832523a5aee9632e28065f0c302187ed jdk8u111-b06
1afe84012d643b4092dbf25f1cbb761508c19ed2 jdk8u111-b07
47e20a90bdbb2327289e330606b73a9fe4dc857e jdk8u112-b00
96393e490afd4acba5b92c5ede68dc9bbb60a38e jdk8u112-b01
b44d695f738baba091370828b84ae2c4cd715c1b jdk8u112-b02
...
...
src/windows/classes/sun/awt/windows/WFramePeer.java
浏览文件 @
6a2a9f2a
/*
* Copyright (c) 1996, 201
4
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 201
6
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -153,6 +153,19 @@ class WFramePeer extends WWindowPeer implements FramePeer {
@Override
public
void
setMenuBar
(
MenuBar
mb
)
{
WMenuBarPeer
mbPeer
=
(
WMenuBarPeer
)
WToolkit
.
targetToPeer
(
mb
);
if
(
mbPeer
!=
null
)
{
if
(
mbPeer
.
framePeer
!=
this
)
{
mb
.
removeNotify
();
mb
.
addNotify
();
mbPeer
=
(
WMenuBarPeer
)
WToolkit
.
targetToPeer
(
mb
);
if
(
mbPeer
!=
null
&&
mbPeer
.
framePeer
!=
this
)
{
throw
new
IllegalStateException
(
"Wrong parent peer"
);
}
}
if
(
mbPeer
!=
null
)
{
addChildPeer
(
mbPeer
);
}
}
setMenuBar0
(
mbPeer
);
updateInsets
(
insets_
);
}
...
...
src/windows/classes/sun/awt/windows/WMenuBarPeer.java
浏览文件 @
6a2a9f2a
/*
* Copyright (c) 1996, 201
4
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 201
6
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -31,6 +31,8 @@ final class WMenuBarPeer extends WMenuPeer implements MenuBarPeer {
// MenuBarPeer implementation
final
WFramePeer
framePeer
;
@Override
public
native
void
addMenu
(
Menu
m
);
@Override
...
...
@@ -44,8 +46,11 @@ final class WMenuBarPeer extends WMenuPeer implements MenuBarPeer {
// Toolkit & peer internals
WMenuBarPeer
(
MenuBar
target
)
{
this
.
target
=
target
;
WFramePeer
framePeer
=
(
WFramePeer
)
framePeer
=
(
WFramePeer
)
WToolkit
.
targetToPeer
(
target
.
getParent
());
if
(
framePeer
!=
null
)
{
framePeer
.
addChildPeer
(
this
);
}
create
(
framePeer
);
// fix for 5088782: check if menu object is created successfully
checkMenuCreation
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录