Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
ae4cedab
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看板
提交
ae4cedab
编写于
2月 18, 2014
作者:
A
anashaty
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7094099: DropDown List of JComboBox detached
Reviewed-by: alexp, dcherepanov
上级
3aa29563
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
12 addition
and
2 deletion
+12
-2
src/share/classes/javax/swing/MenuSelectionManager.java
src/share/classes/javax/swing/MenuSelectionManager.java
+8
-1
src/share/classes/sun/swing/SwingUtilities2.java
src/share/classes/sun/swing/SwingUtilities2.java
+4
-1
未找到文件。
src/share/classes/javax/swing/MenuSelectionManager.java
浏览文件 @
ae4cedab
/*
/*
* Copyright (c) 1997, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
4
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -30,6 +30,7 @@ import java.awt.event.*;
...
@@ -30,6 +30,7 @@ import java.awt.event.*;
import
javax.swing.event.*
;
import
javax.swing.event.*
;
import
sun.awt.AppContext
;
import
sun.awt.AppContext
;
import
sun.swing.SwingUtilities2
;
/**
/**
* A MenuSelectionManager owns the selection in menu hierarchy.
* A MenuSelectionManager owns the selection in menu hierarchy.
...
@@ -60,6 +61,12 @@ public class MenuSelectionManager {
...
@@ -60,6 +61,12 @@ public class MenuSelectionManager {
if
(
msm
==
null
)
{
if
(
msm
==
null
)
{
msm
=
new
MenuSelectionManager
();
msm
=
new
MenuSelectionManager
();
context
.
put
(
MENU_SELECTION_MANAGER_KEY
,
msm
);
context
.
put
(
MENU_SELECTION_MANAGER_KEY
,
msm
);
// installing additional listener if found in the AppContext
Object
o
=
context
.
get
(
SwingUtilities2
.
MENU_SELECTION_MANAGER_LISTENER_KEY
);
if
(
o
!=
null
&&
o
instanceof
ChangeListener
)
{
msm
.
addChangeListener
((
ChangeListener
)
o
);
}
}
}
return
msm
;
return
msm
;
...
...
src/share/classes/sun/swing/SwingUtilities2.java
浏览文件 @
ae4cedab
/*
/*
* Copyright (c) 2002, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 201
4
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -81,6 +81,9 @@ public class SwingUtilities2 {
...
@@ -81,6 +81,9 @@ public class SwingUtilities2 {
public
static
final
Object
LAF_STATE_KEY
=
public
static
final
Object
LAF_STATE_KEY
=
new
StringBuffer
(
"LookAndFeel State"
);
new
StringBuffer
(
"LookAndFeel State"
);
public
static
final
Object
MENU_SELECTION_MANAGER_LISTENER_KEY
=
new
StringBuffer
(
"MenuSelectionManager listener key"
);
// Maintain a cache of CACHE_SIZE fonts and the left side bearing
// Maintain a cache of CACHE_SIZE fonts and the left side bearing
// of the characters falling into the range MIN_CHAR_INDEX to
// of the characters falling into the range MIN_CHAR_INDEX to
// MAX_CHAR_INDEX. The values in fontCache are created as needed.
// MAX_CHAR_INDEX. The values in fontCache are created as needed.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录