Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
ef046a1b
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看板
提交
ef046a1b
编写于
7月 14, 2017
作者:
S
ssadetsky
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8078269: JTabbedPane UI Property TabbedPane.tabAreaBackground no longer works
Reviewed-by: serb, alexsch
上级
a3c553ae
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
19 addition
and
6 deletion
+19
-6
src/share/classes/javax/swing/plaf/metal/MetalTabbedPaneUI.java
...are/classes/javax/swing/plaf/metal/MetalTabbedPaneUI.java
+3
-2
test/javax/swing/JTabbedPane/8007563/Test8007563.java
test/javax/swing/JTabbedPane/8007563/Test8007563.java
+16
-4
未找到文件。
src/share/classes/javax/swing/plaf/metal/MetalTabbedPaneUI.java
浏览文件 @
ef046a1b
...
@@ -806,11 +806,12 @@ public class MetalTabbedPaneUI extends BasicTabbedPaneUI {
...
@@ -806,11 +806,12 @@ public class MetalTabbedPaneUI extends BasicTabbedPaneUI {
// Paint the background for the tab area
// Paint the background for the tab area
if
(
tabPane
.
isOpaque
()
)
{
if
(
tabPane
.
isOpaque
()
)
{
if
(!
c
.
isBackgroundSet
()
&&
(
tabAreaBackground
!=
null
))
{
Color
background
=
c
.
getBackground
();
if
(
background
instanceof
UIResource
&&
tabAreaBackground
!=
null
)
{
g
.
setColor
(
tabAreaBackground
);
g
.
setColor
(
tabAreaBackground
);
}
}
else
{
else
{
g
.
setColor
(
c
.
getBackground
()
);
g
.
setColor
(
background
);
}
}
switch
(
tabPlacement
)
{
switch
(
tabPlacement
)
{
case
LEFT:
case
LEFT:
...
...
test/javax/swing/JTabbedPane/8007563/Test8007563.java
浏览文件 @
ef046a1b
...
@@ -21,9 +21,7 @@
...
@@ -21,9 +21,7 @@
* questions.
* questions.
*/
*/
import
java.awt.Color
;
import
java.awt.*
;
import
java.awt.Point
;
import
java.awt.Robot
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.concurrent.CountDownLatch
;
import
java.util.concurrent.CountDownLatch
;
import
javax.swing.JFrame
;
import
javax.swing.JFrame
;
...
@@ -119,6 +117,20 @@ public class Test8007563 implements Runnable {
...
@@ -119,6 +117,20 @@ public class Test8007563 implements Runnable {
}
}
}
}
invokeLater
(
this
);
SecondaryLoop
secondaryLoop
=
Toolkit
.
getDefaultToolkit
().
getSystemEventQueue
()
.
createSecondaryLoop
();
new
Thread
()
{
@Override
public
void
run
()
{
try
{
Thread
.
sleep
(
200
);
}
catch
(
InterruptedException
e
)
{
}
secondaryLoop
.
exit
();
invokeLater
(
Test8007563
.
this
);
}
}.
start
();
secondaryLoop
.
enter
();
}
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录