Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
c9d3a64d
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看板
提交
c9d3a64d
编写于
8月 29, 2011
作者:
L
lana
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
c36286bd
3dc07b8c
变更
34
隐藏空白更改
内联
并排
Showing
34 changed file
with
273 addition
and
82 deletion
+273
-82
src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth.properties
.../sun/swing/internal/plaf/synth/resources/synth.properties
+5
-1
src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_de.properties
...n/swing/internal/plaf/synth/resources/synth_de.properties
+4
-0
src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_es.properties
...n/swing/internal/plaf/synth/resources/synth_es.properties
+4
-0
src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_fr.properties
...n/swing/internal/plaf/synth/resources/synth_fr.properties
+4
-0
src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_it.properties
...n/swing/internal/plaf/synth/resources/synth_it.properties
+4
-0
src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_ja.properties
...n/swing/internal/plaf/synth/resources/synth_ja.properties
+4
-0
src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_ko.properties
...n/swing/internal/plaf/synth/resources/synth_ko.properties
+4
-0
src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_pt_BR.properties
...wing/internal/plaf/synth/resources/synth_pt_BR.properties
+4
-0
src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_sv.properties
...n/swing/internal/plaf/synth/resources/synth_sv.properties
+4
-0
src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_zh_CN.properties
...wing/internal/plaf/synth/resources/synth_zh_CN.properties
+4
-0
src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_zh_TW.properties
...wing/internal/plaf/synth/resources/synth_zh_TW.properties
+4
-0
src/share/classes/javax/swing/SwingUtilities.java
src/share/classes/javax/swing/SwingUtilities.java
+2
-4
src/share/classes/javax/swing/SwingWorker.java
src/share/classes/javax/swing/SwingWorker.java
+2
-2
src/share/classes/javax/swing/package.html
src/share/classes/javax/swing/package.html
+2
-2
src/share/classes/javax/swing/text/AbstractDocument.java
src/share/classes/javax/swing/text/AbstractDocument.java
+8
-8
src/share/classes/javax/swing/text/DefaultCaret.java
src/share/classes/javax/swing/text/DefaultCaret.java
+2
-2
src/share/classes/javax/swing/text/DefaultStyledDocument.java
...share/classes/javax/swing/text/DefaultStyledDocument.java
+8
-8
src/share/classes/javax/swing/text/JTextComponent.java
src/share/classes/javax/swing/text/JTextComponent.java
+4
-4
src/share/classes/javax/swing/text/PlainDocument.java
src/share/classes/javax/swing/text/PlainDocument.java
+2
-2
src/share/classes/javax/swing/text/StyleContext.java
src/share/classes/javax/swing/text/StyleContext.java
+12
-12
src/share/classes/javax/swing/text/html/CSS.java
src/share/classes/javax/swing/text/html/CSS.java
+32
-20
src/share/classes/javax/swing/text/html/HTMLDocument.java
src/share/classes/javax/swing/text/html/HTMLDocument.java
+2
-2
src/share/classes/javax/swing/text/html/TableView.java
src/share/classes/javax/swing/text/html/TableView.java
+3
-3
src/share/classes/sun/swing/PrintingStatus.java
src/share/classes/sun/swing/PrintingStatus.java
+2
-2
src/solaris/classes/sun/awt/X11/XToolkit.java
src/solaris/classes/sun/awt/X11/XToolkit.java
+4
-0
src/windows/classes/sun/awt/windows/WToolkit.java
src/windows/classes/sun/awt/windows/WToolkit.java
+4
-0
test/javax/swing/JPopupMenu/6694823/bug6694823.java
test/javax/swing/JPopupMenu/6694823/bug6694823.java
+29
-10
test/javax/swing/text/html/TableView/7030332/bug7030332.html
test/javax/swing/text/html/TableView/7030332/bug7030332.html
+12
-0
test/javax/swing/text/html/TableView/7030332/bug7030332.java
test/javax/swing/text/html/TableView/7030332/bug7030332.java
+98
-0
test/javax/swing/text/html/TableView/7030332/sample0.png
test/javax/swing/text/html/TableView/7030332/sample0.png
+0
-0
test/javax/swing/text/html/TableView/7030332/sample1.png
test/javax/swing/text/html/TableView/7030332/sample1.png
+0
-0
test/javax/swing/text/html/TableView/7030332/sample2.png
test/javax/swing/text/html/TableView/7030332/sample2.png
+0
-0
test/javax/swing/text/html/TableView/7030332/sample3.png
test/javax/swing/text/html/TableView/7030332/sample3.png
+0
-0
test/javax/swing/text/html/TableView/7030332/sample4.png
test/javax/swing/text/html/TableView/7030332/sample4.png
+0
-0
未找到文件。
src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth.properties
浏览文件 @
c9d3a64d
...
@@ -19,10 +19,14 @@
...
@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS #############
############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText
=
Look In:
FileChooser.lookInLabelText
=
Look In:
FileChooser.lookInLabelMnemonic
=
73
FileChooser.saveInLabelText
=
Save In:
FileChooser.saveInLabelText
=
Save In:
FileChooser.fileNameLabelText
=
File Name:
FileChooser.fileNameLabelText
=
File Name:
FileChooser.folderNameLabelText
=
Folder name:
FileChooser.fileNameLabelMnemonic
=
78
FileChooser.folderNameLabelText
=
Folder Name:
FileChooser.folderNameLabelMnemonic
=
78
FileChooser.filesOfTypeLabelText
=
Files of Type:
FileChooser.filesOfTypeLabelText
=
Files of Type:
FileChooser.filesOfTypeLabelMnemonic
=
84
FileChooser.upFolderToolTipText
=
Up One Level
FileChooser.upFolderToolTipText
=
Up One Level
FileChooser.upFolderAccessibleName
=
Up
FileChooser.upFolderAccessibleName
=
Up
FileChooser.homeFolderToolTipText
=
Home
FileChooser.homeFolderToolTipText
=
Home
...
...
src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_de.properties
浏览文件 @
c9d3a64d
...
@@ -19,10 +19,14 @@
...
@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS #############
############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText
=
Suchen in:
FileChooser.lookInLabelText
=
Suchen in:
FileChooser.lookInLabelMnemonic
=
73
FileChooser.saveInLabelText
=
Speichern in:
FileChooser.saveInLabelText
=
Speichern in:
FileChooser.fileNameLabelText
=
Dateiname:
FileChooser.fileNameLabelText
=
Dateiname:
FileChooser.fileNameLabelMnemonic
=
78
FileChooser.folderNameLabelText
=
Ordnername:
FileChooser.folderNameLabelText
=
Ordnername:
FileChooser.folderNameLabelMnemonic
=
78
FileChooser.filesOfTypeLabelText
=
Dateityp:
FileChooser.filesOfTypeLabelText
=
Dateityp:
FileChooser.filesOfTypeLabelMnemonic
=
84
FileChooser.upFolderToolTipText
=
Eine Ebene h
\u
00F6her
FileChooser.upFolderToolTipText
=
Eine Ebene h
\u
00F6her
FileChooser.upFolderAccessibleName
=
Nach oben
FileChooser.upFolderAccessibleName
=
Nach oben
FileChooser.homeFolderToolTipText
=
Home
FileChooser.homeFolderToolTipText
=
Home
...
...
src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_es.properties
浏览文件 @
c9d3a64d
...
@@ -19,10 +19,14 @@
...
@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS #############
############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText
=
Buscar en:
FileChooser.lookInLabelText
=
Buscar en:
FileChooser.lookInLabelMnemonic
=
73
FileChooser.saveInLabelText
=
Guardar en:
FileChooser.saveInLabelText
=
Guardar en:
FileChooser.fileNameLabelText
=
Nombre de Archivo:
FileChooser.fileNameLabelText
=
Nombre de Archivo:
FileChooser.fileNameLabelMnemonic
=
78
FileChooser.folderNameLabelText
=
Nombre de la Carpeta:
FileChooser.folderNameLabelText
=
Nombre de la Carpeta:
FileChooser.folderNameLabelMnemonic
=
78
FileChooser.filesOfTypeLabelText
=
Archivos de Tipo:
FileChooser.filesOfTypeLabelText
=
Archivos de Tipo:
FileChooser.filesOfTypeLabelMnemonic
=
84
FileChooser.upFolderToolTipText
=
Subir un Nivel
FileChooser.upFolderToolTipText
=
Subir un Nivel
FileChooser.upFolderAccessibleName
=
Arriba
FileChooser.upFolderAccessibleName
=
Arriba
FileChooser.homeFolderToolTipText
=
Inicio
FileChooser.homeFolderToolTipText
=
Inicio
...
...
src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_fr.properties
浏览文件 @
c9d3a64d
...
@@ -19,10 +19,14 @@
...
@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS #############
############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText
=
Rechercher dans :
FileChooser.lookInLabelText
=
Rechercher dans :
FileChooser.lookInLabelMnemonic
=
73
FileChooser.saveInLabelText
=
Enregistrer dans :
FileChooser.saveInLabelText
=
Enregistrer dans :
FileChooser.fileNameLabelText
=
Nom du fichier :
FileChooser.fileNameLabelText
=
Nom du fichier :
FileChooser.fileNameLabelMnemonic
=
78
FileChooser.folderNameLabelText
=
Nom du dossier :
FileChooser.folderNameLabelText
=
Nom du dossier :
FileChooser.folderNameLabelMnemonic
=
78
FileChooser.filesOfTypeLabelText
=
Fichiers de type :
FileChooser.filesOfTypeLabelText
=
Fichiers de type :
FileChooser.filesOfTypeLabelMnemonic
=
84
FileChooser.upFolderToolTipText
=
Remonte d'un niveau.
FileChooser.upFolderToolTipText
=
Remonte d'un niveau.
FileChooser.upFolderAccessibleName
=
Monter
FileChooser.upFolderAccessibleName
=
Monter
FileChooser.homeFolderToolTipText
=
R
\u
00E9pertoire d'origine
FileChooser.homeFolderToolTipText
=
R
\u
00E9pertoire d'origine
...
...
src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_it.properties
浏览文件 @
c9d3a64d
...
@@ -19,10 +19,14 @@
...
@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS #############
############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText
=
Cerca in:
FileChooser.lookInLabelText
=
Cerca in:
FileChooser.lookInLabelMnemonic
=
73
FileChooser.saveInLabelText
=
Salva in:
FileChooser.saveInLabelText
=
Salva in:
FileChooser.fileNameLabelText
=
Nome file:
FileChooser.fileNameLabelText
=
Nome file:
FileChooser.fileNameLabelMnemonic
=
78
FileChooser.folderNameLabelText
=
Nome della cartella:
FileChooser.folderNameLabelText
=
Nome della cartella:
FileChooser.folderNameLabelMnemonic
=
78
FileChooser.filesOfTypeLabelText
=
Tipo file:
FileChooser.filesOfTypeLabelText
=
Tipo file:
FileChooser.filesOfTypeLabelMnemonic
=
84
FileChooser.upFolderToolTipText
=
Cartella superiore
FileChooser.upFolderToolTipText
=
Cartella superiore
FileChooser.upFolderAccessibleName
=
Superiore
FileChooser.upFolderAccessibleName
=
Superiore
FileChooser.homeFolderToolTipText
=
Home
FileChooser.homeFolderToolTipText
=
Home
...
...
src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_ja.properties
浏览文件 @
c9d3a64d
...
@@ -19,10 +19,14 @@
...
@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS #############
############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText
=
\u
53C2
\u7167
:
FileChooser.lookInLabelText
=
\u
53C2
\u7167
:
FileChooser.lookInLabelMnemonic
=
73
FileChooser.saveInLabelText
=
\u
4FDD
\u
5B58:
FileChooser.saveInLabelText
=
\u
4FDD
\u
5B58:
FileChooser.fileNameLabelText
=
\u
30D5
\u
30A1
\u
30A4
\u
30EB
\u
540D:
FileChooser.fileNameLabelText
=
\u
30D5
\u
30A1
\u
30A4
\u
30EB
\u
540D:
FileChooser.fileNameLabelMnemonic
=
78
FileChooser.folderNameLabelText
=
\u
30D5
\u
30A9
\u
30EB
\u
30C0
\u
540D:
FileChooser.folderNameLabelText
=
\u
30D5
\u
30A9
\u
30EB
\u
30C0
\u
540D:
FileChooser.folderNameLabelMnemonic
=
78
FileChooser.filesOfTypeLabelText
=
\u
30D5
\u
30A1
\u
30A4
\u
30EB
\u
306E
\u
30BF
\u
30A4
\u
30D7:
FileChooser.filesOfTypeLabelText
=
\u
30D5
\u
30A1
\u
30A4
\u
30EB
\u
306E
\u
30BF
\u
30A4
\u
30D7:
FileChooser.filesOfTypeLabelMnemonic
=
84
FileChooser.upFolderToolTipText
=
1
\u
30EC
\u
30D9
\u
30EB
\u
4E0A
\u3078
FileChooser.upFolderToolTipText
=
1
\u
30EC
\u
30D9
\u
30EB
\u
4E0A
\u3078
FileChooser.upFolderAccessibleName
=
\u
4E0A
\u3078
FileChooser.upFolderAccessibleName
=
\u
4E0A
\u3078
FileChooser.homeFolderToolTipText
=
\u
30DB
\u
30FC
\u
30E0
FileChooser.homeFolderToolTipText
=
\u
30DB
\u
30FC
\u
30E0
...
...
src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_ko.properties
浏览文件 @
c9d3a64d
...
@@ -19,10 +19,14 @@
...
@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS #############
############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText
=
\u
AC80
\u
C0C9
\u
C704
\u
CE58:
FileChooser.lookInLabelText
=
\u
AC80
\u
C0C9
\u
C704
\u
CE58:
FileChooser.lookInLabelMnemonic
=
73
FileChooser.saveInLabelText
=
\u
C800
\u
C7A5
\u
C704
\u
CE58:
FileChooser.saveInLabelText
=
\u
C800
\u
C7A5
\u
C704
\u
CE58:
FileChooser.fileNameLabelText
=
\u
D30C
\u
C77C
\u
C774
\u
B984:
FileChooser.fileNameLabelText
=
\u
D30C
\u
C77C
\u
C774
\u
B984:
FileChooser.fileNameLabelMnemonic
=
78
FileChooser.folderNameLabelText
=
\u
D3F4
\u
B354
\u
C774
\u
B984:
FileChooser.folderNameLabelText
=
\u
D3F4
\u
B354
\u
C774
\u
B984:
FileChooser.folderNameLabelMnemonic
=
78
FileChooser.filesOfTypeLabelText
=
\u
D30C
\u
C77C
\u
C720
\u
D615:
FileChooser.filesOfTypeLabelText
=
\u
D30C
\u
C77C
\u
C720
\u
D615:
FileChooser.filesOfTypeLabelMnemonic
=
84
FileChooser.upFolderToolTipText
=
\u
D55C
\u
B808
\u
BCA8
\u
C704
\u
B85C
FileChooser.upFolderToolTipText
=
\u
D55C
\u
B808
\u
BCA8
\u
C704
\u
B85C
FileChooser.upFolderAccessibleName
=
\u
C704
\u
B85C
FileChooser.upFolderAccessibleName
=
\u
C704
\u
B85C
FileChooser.homeFolderToolTipText
=
\u
D648
FileChooser.homeFolderToolTipText
=
\u
D648
...
...
src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_pt_BR.properties
浏览文件 @
c9d3a64d
...
@@ -19,10 +19,14 @@
...
@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS #############
############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText
=
Consultar Em:
FileChooser.lookInLabelText
=
Consultar Em:
FileChooser.lookInLabelMnemonic
=
73
FileChooser.saveInLabelText
=
Salvar Em:
FileChooser.saveInLabelText
=
Salvar Em:
FileChooser.fileNameLabelText
=
Nome do Arquivo:
FileChooser.fileNameLabelText
=
Nome do Arquivo:
FileChooser.fileNameLabelMnemonic
=
78
FileChooser.folderNameLabelText
=
Nome da pasta:
FileChooser.folderNameLabelText
=
Nome da pasta:
FileChooser.folderNameLabelMnemonic
=
78
FileChooser.filesOfTypeLabelText
=
Arquivos do Tipo:
FileChooser.filesOfTypeLabelText
=
Arquivos do Tipo:
FileChooser.filesOfTypeLabelMnemonic
=
84
FileChooser.upFolderToolTipText
=
Um N
\u
00EDvel Acima
FileChooser.upFolderToolTipText
=
Um N
\u
00EDvel Acima
FileChooser.upFolderAccessibleName
=
Acima
FileChooser.upFolderAccessibleName
=
Acima
FileChooser.homeFolderToolTipText
=
In
\u
00EDcio
FileChooser.homeFolderToolTipText
=
In
\u
00EDcio
...
...
src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_sv.properties
浏览文件 @
c9d3a64d
...
@@ -19,10 +19,14 @@
...
@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS #############
############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText
=
Leta i:
FileChooser.lookInLabelText
=
Leta i:
FileChooser.lookInLabelMnemonic
=
73
FileChooser.saveInLabelText
=
Spara i:
FileChooser.saveInLabelText
=
Spara i:
FileChooser.fileNameLabelText
=
Filnamn:
FileChooser.fileNameLabelText
=
Filnamn:
FileChooser.fileNameLabelMnemonic
=
78
FileChooser.folderNameLabelText
=
Mapp:
FileChooser.folderNameLabelText
=
Mapp:
FileChooser.folderNameLabelMnemonic
=
78
FileChooser.filesOfTypeLabelText
=
Filformat:
FileChooser.filesOfTypeLabelText
=
Filformat:
FileChooser.filesOfTypeLabelMnemonic
=
84
FileChooser.upFolderToolTipText
=
Upp en niv
\u
00E5
FileChooser.upFolderToolTipText
=
Upp en niv
\u
00E5
FileChooser.upFolderAccessibleName
=
Upp
FileChooser.upFolderAccessibleName
=
Upp
FileChooser.homeFolderToolTipText
=
Hem
FileChooser.homeFolderToolTipText
=
Hem
...
...
src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_zh_CN.properties
浏览文件 @
c9d3a64d
...
@@ -19,10 +19,14 @@
...
@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS #############
############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText
=
\u
67E5
\u
770B:
FileChooser.lookInLabelText
=
\u
67E5
\u
770B:
FileChooser.lookInLabelMnemonic
=
73
FileChooser.saveInLabelText
=
\u
4FDD
\u
5B58:
FileChooser.saveInLabelText
=
\u
4FDD
\u
5B58:
FileChooser.fileNameLabelText
=
\u6587\u
4EF6
\u
540D:
FileChooser.fileNameLabelText
=
\u6587\u
4EF6
\u
540D:
FileChooser.fileNameLabelMnemonic
=
78
FileChooser.folderNameLabelText
=
\u6587\u
4EF6
\u5939\u
540D:
FileChooser.folderNameLabelText
=
\u6587\u
4EF6
\u5939\u
540D:
FileChooser.folderNameLabelMnemonic
=
78
FileChooser.filesOfTypeLabelText
=
\u6587\u
4EF6
\u
7C7B
\u
578B:
FileChooser.filesOfTypeLabelText
=
\u6587\u
4EF6
\u
7C7B
\u
578B:
FileChooser.filesOfTypeLabelMnemonic
=
84
FileChooser.upFolderToolTipText
=
\u5411\u
4E0A
\u
4E00
\u
7EA7
FileChooser.upFolderToolTipText
=
\u5411\u
4E0A
\u
4E00
\u
7EA7
FileChooser.upFolderAccessibleName
=
\u5411\u
4E0A
FileChooser.upFolderAccessibleName
=
\u5411\u
4E0A
FileChooser.homeFolderToolTipText
=
\u
4E3B
\u
76EE
\u
5F55
FileChooser.homeFolderToolTipText
=
\u
4E3B
\u
76EE
\u
5F55
...
...
src/share/classes/com/sun/swing/internal/plaf/synth/resources/synth_zh_TW.properties
浏览文件 @
c9d3a64d
...
@@ -19,10 +19,14 @@
...
@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS #############
############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText
=
\u
67E5
\u
8A62:
FileChooser.lookInLabelText
=
\u
67E5
\u
8A62:
FileChooser.lookInLabelMnemonic
=
73
FileChooser.saveInLabelText
=
\u5132\u
5B58
\u
65BC:
FileChooser.saveInLabelText
=
\u5132\u
5B58
\u
65BC:
FileChooser.fileNameLabelText
=
\u
6A94
\u6848\u
540D
\u
7A31:
FileChooser.fileNameLabelText
=
\u
6A94
\u6848\u
540D
\u
7A31:
FileChooser.fileNameLabelMnemonic
=
78
FileChooser.folderNameLabelText
=
\u
8CC7
\u6599\u
593E
\u
540D
\u
7A31:
FileChooser.folderNameLabelText
=
\u
8CC7
\u6599\u
593E
\u
540D
\u
7A31:
FileChooser.folderNameLabelMnemonic
=
78
FileChooser.filesOfTypeLabelText
=
\u
6A94
\u6848\u
985E
\u
578B:
FileChooser.filesOfTypeLabelText
=
\u
6A94
\u6848\u
985E
\u
578B:
FileChooser.filesOfTypeLabelMnemonic
=
84
FileChooser.upFolderToolTipText
=
\u
5F80
\u
4E0A
\u
4E00
\u
5C64
FileChooser.upFolderToolTipText
=
\u
5F80
\u
4E0A
\u
4E00
\u
5C64
FileChooser.upFolderAccessibleName
=
\u
5F80
\u
4E0A
FileChooser.upFolderAccessibleName
=
\u
5F80
\u
4E0A
FileChooser.homeFolderToolTipText
=
\u
4E3B
\u
76EE
\u9304
FileChooser.homeFolderToolTipText
=
\u
4E3B
\u
76EE
\u9304
...
...
src/share/classes/javax/swing/SwingUtilities.java
浏览文件 @
c9d3a64d
...
@@ -1274,8 +1274,7 @@ public class SwingUtilities implements SwingConstants
...
@@ -1274,8 +1274,7 @@ public class SwingUtilities implements SwingConstants
* <p>
* <p>
* Additional documentation and examples for this method can be
* Additional documentation and examples for this method can be
* found in
* found in
* <A HREF="http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html">How to Use Threads</a>,
* <A HREF="http://download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency in Swing</a>.
* in <em>The Java Tutorial</em>.
* <p>
* <p>
* As of 1.3 this method is just a cover for <code>java.awt.EventQueue.invokeLater()</code>.
* As of 1.3 this method is just a cover for <code>java.awt.EventQueue.invokeLater()</code>.
* <p>
* <p>
...
@@ -1326,8 +1325,7 @@ public class SwingUtilities implements SwingConstants
...
@@ -1326,8 +1325,7 @@ public class SwingUtilities implements SwingConstants
* <p>
* <p>
* Additional documentation and examples for this method can be
* Additional documentation and examples for this method can be
* found in
* found in
* <A HREF="http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html">How to Use Threads</a>,
* <A HREF="http://download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency in Swing</a>.
* in <em>The Java Tutorial</em>.
* <p>
* <p>
* As of 1.3 this method is just a cover for
* As of 1.3 this method is just a cover for
* <code>java.awt.EventQueue.invokeAndWait()</code>.
* <code>java.awt.EventQueue.invokeAndWait()</code>.
...
...
src/share/classes/javax/swing/SwingWorker.java
浏览文件 @
c9d3a64d
...
@@ -50,8 +50,8 @@ import sun.swing.AccumulativeRunnable;
...
@@ -50,8 +50,8 @@ import sun.swing.AccumulativeRunnable;
* When writing a multi-threaded application using Swing, there are
* When writing a multi-threaded application using Swing, there are
* two constraints to keep in mind:
* two constraints to keep in mind:
* (refer to
* (refer to
* <a href="http://
java.sun.com/docs/books/tutorial/uiswing/misc/threads
.html">
* <a href="http://
download.oracle.com/javase/tutorial/uiswing/concurrency/index
.html">
*
How to Use Threads
*
Concurrency in Swing
* </a> for more details):
* </a> for more details):
* <ul>
* <ul>
* <li> Time-consuming tasks should not be run on the <i>Event
* <li> Time-consuming tasks should not be run on the <i>Event
...
...
src/share/classes/javax/swing/package.html
浏览文件 @
c9d3a64d
...
@@ -119,9 +119,9 @@ input. Refer to {@link javax.swing.SwingWorker} for the preferred way to do such
...
@@ -119,9 +119,9 @@ input. Refer to {@link javax.swing.SwingWorker} for the preferred way to do such
processing when working with Swing.
processing when working with Swing.
<p>
<p>
More information on this topic can be found in the
More information on this topic can be found in the
<a
href=
"http://
java.sun.com/docs/books
/tutorial/uiswing/"
>
Swing tutorial
</a>
,
<a
href=
"http://
download.oracle.com/javase
/tutorial/uiswing/"
>
Swing tutorial
</a>
,
in particular the section on
in particular the section on
<a
href=
"http://
java.sun.com/docs/books/tutorial/uiswing/misc/threads.html"
>
How to Use Threads
</a>
.
<a
href=
"http://
download.oracle.com/javase/tutorial/uiswing/concurrency/index.html"
>
Concurrency in Swing
</a>
.
<H2>
<H2>
...
...
src/share/classes/javax/swing/text/AbstractDocument.java
浏览文件 @
c9d3a64d
...
@@ -409,8 +409,8 @@ public abstract class AbstractDocument implements Document, Serializable {
...
@@ -409,8 +409,8 @@ public abstract class AbstractDocument implements Document, Serializable {
* <p>
* <p>
* This method is thread safe, although most Swing methods
* This method is thread safe, although most Swing methods
* are not. Please see
* are not. Please see
* <A HREF="http://
java.sun.com/docs/books/tutorial/uiswing/misc/threads.html">How
* <A HREF="http://
download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
*
to Use Threads
</A> for more information.
*
in Swing
</A> for more information.
*
*
* @param r the renderer to execute
* @param r the renderer to execute
*/
*/
...
@@ -570,8 +570,8 @@ public abstract class AbstractDocument implements Document, Serializable {
...
@@ -570,8 +570,8 @@ public abstract class AbstractDocument implements Document, Serializable {
* <p>
* <p>
* This method is thread safe, although most Swing methods
* This method is thread safe, although most Swing methods
* are not. Please see
* are not. Please see
* <A HREF="http://
java.sun.com/docs/books/tutorial/uiswing/misc/threads.html">How
* <A HREF="http://
download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
*
to Use Threads
</A> for more information.
*
in Swing
</A> for more information.
*
*
* @param offs the starting offset >= 0
* @param offs the starting offset >= 0
* @param len the number of characters to remove >= 0
* @param len the number of characters to remove >= 0
...
@@ -683,8 +683,8 @@ public abstract class AbstractDocument implements Document, Serializable {
...
@@ -683,8 +683,8 @@ public abstract class AbstractDocument implements Document, Serializable {
* <p>
* <p>
* This method is thread safe, although most Swing methods
* This method is thread safe, although most Swing methods
* are not. Please see
* are not. Please see
* <A HREF="http://
java.sun.com/docs/books/tutorial/uiswing/misc/threads.html">How
* <A HREF="http://
download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
*
to Use Threads
</A> for more information.
*
in Swing
</A> for more information.
*
*
* @param offs the starting offset >= 0
* @param offs the starting offset >= 0
* @param str the string to insert; does nothing with null/empty strings
* @param str the string to insert; does nothing with null/empty strings
...
@@ -818,8 +818,8 @@ public abstract class AbstractDocument implements Document, Serializable {
...
@@ -818,8 +818,8 @@ public abstract class AbstractDocument implements Document, Serializable {
* <p>
* <p>
* This method is thread safe, although most Swing methods
* This method is thread safe, although most Swing methods
* are not. Please see
* are not. Please see
* <A HREF="http://
java.sun.com/docs/books/tutorial/uiswing/misc/threads.html">How
* <A HREF="http://
download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
*
to Use Threads
</A> for more information.
*
in Swing
</A> for more information.
*
*
* @param offs the position in the model >= 0
* @param offs the position in the model >= 0
* @return the position
* @return the position
...
...
src/share/classes/javax/swing/text/DefaultCaret.java
浏览文件 @
c9d3a64d
...
@@ -237,8 +237,8 @@ public class DefaultCaret extends Rectangle implements Caret, FocusListener, Mou
...
@@ -237,8 +237,8 @@ public class DefaultCaret extends Rectangle implements Caret, FocusListener, Mou
* <p>
* <p>
* This method is thread safe, although most Swing methods
* This method is thread safe, although most Swing methods
* are not. Please see
* are not. Please see
* <A HREF="http://
java.sun.com/docs/books/tutorial/uiswing/misc/threads.html">How
* <A HREF="http://
download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
*
to Use Threads
</A> for more information.
*
in Swing
</A> for more information.
*/
*/
protected
final
synchronized
void
repaint
()
{
protected
final
synchronized
void
repaint
()
{
if
(
component
!=
null
)
{
if
(
component
!=
null
)
{
...
...
src/share/classes/javax/swing/text/DefaultStyledDocument.java
浏览文件 @
c9d3a64d
...
@@ -173,8 +173,8 @@ public class DefaultStyledDocument extends AbstractDocument implements StyledDoc
...
@@ -173,8 +173,8 @@ public class DefaultStyledDocument extends AbstractDocument implements StyledDoc
* <p>
* <p>
* This method is thread safe, although most Swing methods
* This method is thread safe, although most Swing methods
* are not. Please see
* are not. Please see
* <A HREF="http://
java.sun.com/docs/books/tutorial/uiswing/misc/threads.html">How
* <A HREF="http://
download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
*
to Use Threads
</A> for more information.
*
in Swing
</A> for more information.
*
*
* @param offset the starting offset >= 0
* @param offset the starting offset >= 0
* @param data the element data
* @param data the element data
...
@@ -426,8 +426,8 @@ public class DefaultStyledDocument extends AbstractDocument implements StyledDoc
...
@@ -426,8 +426,8 @@ public class DefaultStyledDocument extends AbstractDocument implements StyledDoc
* <p>
* <p>
* This method is thread safe, although most Swing methods
* This method is thread safe, although most Swing methods
* are not. Please see
* are not. Please see
* <A HREF="http://
java.sun.com/docs/books/tutorial/uiswing/misc/threads.html">How
* <A HREF="http://
download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
*
to Use Threads
</A> for more information.
*
in Swing
</A> for more information.
*
*
* @param pos the offset from the start of the document >= 0
* @param pos the offset from the start of the document >= 0
* @param s the logical style to assign to the paragraph, null if none
* @param s the logical style to assign to the paragraph, null if none
...
@@ -483,8 +483,8 @@ public class DefaultStyledDocument extends AbstractDocument implements StyledDoc
...
@@ -483,8 +483,8 @@ public class DefaultStyledDocument extends AbstractDocument implements StyledDoc
* <p>
* <p>
* This method is thread safe, although most Swing methods
* This method is thread safe, although most Swing methods
* are not. Please see
* are not. Please see
* <A HREF="http://
java.sun.com/docs/books/tutorial/uiswing/misc/threads.html">How
* <A HREF="http://
download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
*
to Use Threads
</A> for more information.
*
in Swing
</A> for more information.
*
*
* @param offset the offset in the document >= 0
* @param offset the offset in the document >= 0
* @param length the length >= 0
* @param length the length >= 0
...
@@ -536,8 +536,8 @@ public class DefaultStyledDocument extends AbstractDocument implements StyledDoc
...
@@ -536,8 +536,8 @@ public class DefaultStyledDocument extends AbstractDocument implements StyledDoc
* <p>
* <p>
* This method is thread safe, although most Swing methods
* This method is thread safe, although most Swing methods
* are not. Please see
* are not. Please see
* <A HREF="http://
java.sun.com/docs/books/tutorial/uiswing/misc/threads.html">How
* <A HREF="http://
download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
*
to Use Threads
</A> for more information.
*
in Swing
</A> for more information.
*
*
* @param offset the offset into the paragraph >= 0
* @param offset the offset into the paragraph >= 0
* @param length the number of characters affected >= 0
* @param length the number of characters affected >= 0
...
...
src/share/classes/javax/swing/text/JTextComponent.java
浏览文件 @
c9d3a64d
...
@@ -2213,8 +2213,8 @@ public abstract class JTextComponent extends JComponent implements Scrollable, A
...
@@ -2213,8 +2213,8 @@ public abstract class JTextComponent extends JComponent implements Scrollable, A
* <p>
* <p>
* This method is thread-safe, although most Swing methods are not. Please
* This method is thread-safe, although most Swing methods are not. Please
* see <A
* see <A
* HREF="http://
java.sun.com/docs/books/tutorial/uiswing/misc/threads
.html">
* HREF="http://
download.oracle.com/javase/tutorial/uiswing/concurrency/index
.html">
*
How to Use Threads
</A> for more information.
*
Concurrency in Swing
</A> for more information.
*
*
* <p>
* <p>
* <b>Sample Usage</b>. This code snippet shows a cross-platform print
* <b>Sample Usage</b>. This code snippet shows a cross-platform print
...
@@ -2471,8 +2471,8 @@ public abstract class JTextComponent extends JComponent implements Scrollable, A
...
@@ -2471,8 +2471,8 @@ public abstract class JTextComponent extends JComponent implements Scrollable, A
* <p>
* <p>
* This method is thread-safe, although most Swing methods are not. Please
* This method is thread-safe, although most Swing methods are not. Please
* see <A
* see <A
* HREF="http://
java.sun.com/docs/books/tutorial/uiswing/misc/threads
.html">
* HREF="http://
download.oracle.com/javase/tutorial/uiswing/concurrency/index
.html">
*
How to Use Threads
</A> for more information.
*
Concurrency in Swing
</A> for more information.
*
*
* <p>
* <p>
* The returned {@code Printable} can be printed on any thread.
* The returned {@code Printable} can be printed on any thread.
...
...
src/share/classes/javax/swing/text/PlainDocument.java
浏览文件 @
c9d3a64d
...
@@ -100,8 +100,8 @@ public class PlainDocument extends AbstractDocument {
...
@@ -100,8 +100,8 @@ public class PlainDocument extends AbstractDocument {
* <p>
* <p>
* This method is thread safe, although most Swing methods
* This method is thread safe, although most Swing methods
* are not. Please see
* are not. Please see
* <A HREF="http://
java.sun.com/docs/books/tutorial/uiswing/misc/threads.html">How
* <A HREF="http://
download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
*
to Use Threads
</A> for more information.
*
in Swing
</A> for more information.
*
*
* @param offs the starting offset >= 0
* @param offs the starting offset >= 0
* @param str the string to insert; does nothing with null/empty strings
* @param str the string to insert; does nothing with null/empty strings
...
...
src/share/classes/javax/swing/text/StyleContext.java
浏览文件 @
c9d3a64d
...
@@ -292,8 +292,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
...
@@ -292,8 +292,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
* <p>
* <p>
* This method is thread safe, although most Swing methods
* This method is thread safe, although most Swing methods
* are not. Please see
* are not. Please see
* <A HREF="http://
java.sun.com/docs/books/tutorial/uiswing/misc/threads.html">How
* <A HREF="http://
download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
*
to Use Threads
</A> for more information.
*
in Swing
</A> for more information.
*
*
* @param old the old attribute set
* @param old the old attribute set
* @param name the non-null attribute name
* @param name the non-null attribute name
...
@@ -321,8 +321,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
...
@@ -321,8 +321,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
* <p>
* <p>
* This method is thread safe, although most Swing methods
* This method is thread safe, although most Swing methods
* are not. Please see
* are not. Please see
* <A HREF="http://
java.sun.com/docs/books/tutorial/uiswing/misc/threads.html">How
* <A HREF="http://
download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
*
to Use Threads
</A> for more information.
*
in Swing
</A> for more information.
*
*
* @param old the old attribute set
* @param old the old attribute set
* @param attr the attributes to add
* @param attr the attributes to add
...
@@ -349,8 +349,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
...
@@ -349,8 +349,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
* <p>
* <p>
* This method is thread safe, although most Swing methods
* This method is thread safe, although most Swing methods
* are not. Please see
* are not. Please see
* <A HREF="http://
java.sun.com/docs/books/tutorial/uiswing/misc/threads.html">How
* <A HREF="http://
download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
*
to Use Threads
</A> for more information.
*
in Swing
</A> for more information.
*
*
* @param old the old set of attributes
* @param old the old set of attributes
* @param name the non-null attribute name
* @param name the non-null attribute name
...
@@ -377,8 +377,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
...
@@ -377,8 +377,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
* <p>
* <p>
* This method is thread safe, although most Swing methods
* This method is thread safe, although most Swing methods
* are not. Please see
* are not. Please see
* <A HREF="http://
java.sun.com/docs/books/tutorial/uiswing/misc/threads.html">How
* <A HREF="http://
download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
*
to Use Threads
</A> for more information.
*
in Swing
</A> for more information.
*
*
* @param old the old attribute set
* @param old the old attribute set
* @param names the attribute names
* @param names the attribute names
...
@@ -405,8 +405,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
...
@@ -405,8 +405,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
* <p>
* <p>
* This method is thread safe, although most Swing methods
* This method is thread safe, although most Swing methods
* are not. Please see
* are not. Please see
* <A HREF="http://
java.sun.com/docs/books/tutorial/uiswing/misc/threads.html">How
* <A HREF="http://
download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
*
to Use Threads
</A> for more information.
*
in Swing
</A> for more information.
*
*
* @param old the old attribute set
* @param old the old attribute set
* @param attrs the attributes
* @param attrs the attributes
...
@@ -445,8 +445,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
...
@@ -445,8 +445,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
* <p>
* <p>
* This method is thread safe, although most Swing methods
* This method is thread safe, although most Swing methods
* are not. Please see
* are not. Please see
* <A HREF="http://
java.sun.com/docs/books/tutorial/uiswing/misc/threads.html">How
* <A HREF="http://
download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
*
to Use Threads
</A> for more information.
*
in Swing
</A> for more information.
*
*
* @param a the set to reclaim
* @param a the set to reclaim
*/
*/
...
...
src/share/classes/javax/swing/text/html/CSS.java
浏览文件 @
c9d3a64d
...
@@ -806,15 +806,11 @@ public class CSS implements Serializable {
...
@@ -806,15 +806,11 @@ public class CSS implements Serializable {
// translate border width into the cells, if it has non-zero value.
// translate border width into the cells, if it has non-zero value.
AttributeSet
tableAttr
=
elem
.
getParentElement
().
AttributeSet
tableAttr
=
elem
.
getParentElement
().
getParentElement
().
getAttributes
();
getParentElement
().
getAttributes
();
int
borderWidth
;
try
{
int
borderWidth
=
getTableBorder
(
tableAttr
);
borderWidth
=
Integer
.
parseInt
(
(
String
)
tableAttr
.
getAttribute
(
HTML
.
Attribute
.
BORDER
));
}
catch
(
NumberFormatException
e
)
{
borderWidth
=
0
;
}
if
(
borderWidth
>
0
)
{
if
(
borderWidth
>
0
)
{
translateAttribute
(
HTML
.
Attribute
.
BORDER
,
tableAttr
,
cssAttrSet
);
// If table contains the BORDER attribute cells should have border width equals 1
translateAttribute
(
HTML
.
Attribute
.
BORDER
,
"1"
,
cssAttrSet
);
}
}
String
pad
=
(
String
)
tableAttr
.
getAttribute
(
HTML
.
Attribute
.
CELLPADDING
);
String
pad
=
(
String
)
tableAttr
.
getAttribute
(
HTML
.
Attribute
.
CELLPADDING
);
if
(
pad
!=
null
)
{
if
(
pad
!=
null
)
{
...
@@ -850,6 +846,21 @@ public class CSS implements Serializable {
...
@@ -850,6 +846,21 @@ public class CSS implements Serializable {
return
cssAttrSet
;
return
cssAttrSet
;
}
}
private
static
int
getTableBorder
(
AttributeSet
tableAttr
)
{
String
borderValue
=
(
String
)
tableAttr
.
getAttribute
(
HTML
.
Attribute
.
BORDER
);
if
(
borderValue
==
HTML
.
NULL_ATTRIBUTE_VALUE
||
""
.
equals
(
borderValue
))
{
// Some browsers accept <TABLE BORDER> and <TABLE BORDER=""> with the same semantics as BORDER=1
return
1
;
}
try
{
return
Integer
.
parseInt
(
borderValue
);
}
catch
(
NumberFormatException
e
)
{
return
0
;
}
}
private
static
final
Hashtable
<
String
,
Attribute
>
attributeMap
=
new
Hashtable
<
String
,
Attribute
>();
private
static
final
Hashtable
<
String
,
Attribute
>
attributeMap
=
new
Hashtable
<
String
,
Attribute
>();
private
static
final
Hashtable
<
String
,
Value
>
valueMap
=
new
Hashtable
<
String
,
Value
>();
private
static
final
Hashtable
<
String
,
Value
>
valueMap
=
new
Hashtable
<
String
,
Value
>();
...
@@ -1400,17 +1411,20 @@ public class CSS implements Serializable {
...
@@ -1400,17 +1411,20 @@ public class CSS implements Serializable {
}
}
}
}
}
else
{
}
else
{
/*
* The html size attribute has a mapping in the CSS world only
* if it is par of a font or base font tag.
*/
if
(
key
==
HTML
.
Attribute
.
SIZE
&&
!
isHTMLFontTag
(
tag
))
{
if
(
key
==
HTML
.
Attribute
.
SIZE
&&
!
isHTMLFontTag
(
tag
))
{
continue
;
/*
* The html size attribute has a mapping in the CSS world only
* if it is par of a font or base font tag.
*/
}
else
if
(
tag
==
HTML
.
Tag
.
TABLE
&&
key
==
HTML
.
Attribute
.
BORDER
)
{
int
borderWidth
=
getTableBorder
(
htmlAttrSet
);
if
(
borderWidth
>
0
)
{
translateAttribute
(
HTML
.
Attribute
.
BORDER
,
Integer
.
toString
(
borderWidth
),
cssAttrSet
);
}
}
else
{
translateAttribute
(
key
,
(
String
)
htmlAttrSet
.
getAttribute
(
key
),
cssAttrSet
);
}
}
translateAttribute
(
key
,
htmlAttrSet
,
cssAttrSet
);
}
}
}
else
if
(
name
instanceof
CSS
.
Attribute
)
{
}
else
if
(
name
instanceof
CSS
.
Attribute
)
{
cssAttrSet
.
addAttribute
(
name
,
htmlAttrSet
.
getAttribute
(
name
));
cssAttrSet
.
addAttribute
(
name
,
htmlAttrSet
.
getAttribute
(
name
));
...
@@ -1419,7 +1433,7 @@ public class CSS implements Serializable {
...
@@ -1419,7 +1433,7 @@ public class CSS implements Serializable {
}
}
private
void
translateAttribute
(
HTML
.
Attribute
key
,
private
void
translateAttribute
(
HTML
.
Attribute
key
,
AttributeSet
htmlAttrSet
,
String
htmlAttrValue
,
MutableAttributeSet
cssAttrSet
)
{
MutableAttributeSet
cssAttrSet
)
{
/*
/*
* In the case of all remaining HTML.Attribute's they
* In the case of all remaining HTML.Attribute's they
...
@@ -1427,8 +1441,6 @@ public class CSS implements Serializable {
...
@@ -1427,8 +1441,6 @@ public class CSS implements Serializable {
*/
*/
CSS
.
Attribute
[]
cssAttrList
=
getCssAttribute
(
key
);
CSS
.
Attribute
[]
cssAttrList
=
getCssAttribute
(
key
);
String
htmlAttrValue
=
(
String
)
htmlAttrSet
.
getAttribute
(
key
);
if
(
cssAttrList
==
null
||
htmlAttrValue
==
null
)
{
if
(
cssAttrList
==
null
||
htmlAttrValue
==
null
)
{
return
;
return
;
}
}
...
...
src/share/classes/javax/swing/text/html/HTMLDocument.java
浏览文件 @
c9d3a64d
...
@@ -474,8 +474,8 @@ public class HTMLDocument extends DefaultStyledDocument {
...
@@ -474,8 +474,8 @@ public class HTMLDocument extends DefaultStyledDocument {
* <p>
* <p>
* This method is thread safe, although most Swing methods
* This method is thread safe, although most Swing methods
* are not. Please see
* are not. Please see
* <A HREF="http://
java.sun.com/docs/books/tutorial/uiswing/misc/threads.html">How
* <A HREF="http://
download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
*
to Use Threads
</A> for more information.
*
in Swing
</A> for more information.
*
*
* @param offset the offset into the paragraph (must be at least 0)
* @param offset the offset into the paragraph (must be at least 0)
* @param length the number of characters affected (must be at least 0)
* @param length the number of characters affected (must be at least 0)
...
...
src/share/classes/javax/swing/text/html/TableView.java
浏览文件 @
c9d3a64d
...
@@ -242,7 +242,8 @@ import javax.swing.text.*;
...
@@ -242,7 +242,8 @@ import javax.swing.text.*;
if
(
lv
!=
null
)
{
if
(
lv
!=
null
)
{
cellSpacing
=
(
int
)
lv
.
getValue
();
cellSpacing
=
(
int
)
lv
.
getValue
();
}
else
{
}
else
{
cellSpacing
=
0
;
// Default cell spacing equals 2
cellSpacing
=
2
;
}
}
lv
=
(
CSS
.
LengthValue
)
lv
=
(
CSS
.
LengthValue
)
attr
.
getAttribute
(
CSS
.
Attribute
.
BORDER_TOP_WIDTH
);
attr
.
getAttribute
(
CSS
.
Attribute
.
BORDER_TOP_WIDTH
);
...
@@ -251,8 +252,7 @@ import javax.swing.text.*;
...
@@ -251,8 +252,7 @@ import javax.swing.text.*;
}
else
{
}
else
{
borderWidth
=
0
;
borderWidth
=
0
;
}
}
}
}
}
}
/**
/**
...
...
src/share/classes/sun/swing/PrintingStatus.java
浏览文件 @
c9d3a64d
...
@@ -43,8 +43,8 @@ import java.lang.reflect.InvocationTargetException;
...
@@ -43,8 +43,8 @@ import java.lang.reflect.InvocationTargetException;
* <p/>
* <p/>
* Methods of these class are thread safe, although most Swing methods
* Methods of these class are thread safe, although most Swing methods
* are not. Please see
* are not. Please see
* <A HREF="http://
java.sun.com/docs/books/tutorial/uiswing/misc/threads.html">How
* <A HREF="http://
download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
*
to Use Threads
</A> for more information.
*
in Swing
</A> for more information.
*
*
* @author Alexander Potochkin
* @author Alexander Potochkin
* @since 1.6
* @since 1.6
...
...
src/solaris/classes/sun/awt/X11/XToolkit.java
浏览文件 @
c9d3a64d
...
@@ -1532,6 +1532,10 @@ public final class XToolkit extends UNIXToolkit implements Runnable {
...
@@ -1532,6 +1532,10 @@ public final class XToolkit extends UNIXToolkit implements Runnable {
}
}
public
synchronized
void
addPropertyChangeListener
(
String
name
,
PropertyChangeListener
pcl
)
{
public
synchronized
void
addPropertyChangeListener
(
String
name
,
PropertyChangeListener
pcl
)
{
if
(
name
==
null
)
{
// See JavaDoc for the Toolkit.addPropertyChangeListener() method
return
;
}
initXSettingsIfNeeded
(
name
);
initXSettingsIfNeeded
(
name
);
super
.
addPropertyChangeListener
(
name
,
pcl
);
super
.
addPropertyChangeListener
(
name
,
pcl
);
}
}
...
...
src/windows/classes/sun/awt/windows/WToolkit.java
浏览文件 @
c9d3a64d
...
@@ -879,6 +879,10 @@ public class WToolkit extends SunToolkit implements Runnable {
...
@@ -879,6 +879,10 @@ public class WToolkit extends SunToolkit implements Runnable {
}
}
public
synchronized
void
addPropertyChangeListener
(
String
name
,
PropertyChangeListener
pcl
)
{
public
synchronized
void
addPropertyChangeListener
(
String
name
,
PropertyChangeListener
pcl
)
{
if
(
name
==
null
)
{
// See JavaDoc for the Toolkit.addPropertyChangeListener() method
return
;
}
if
(
WDesktopProperties
.
isWindowsProperty
(
name
)
if
(
WDesktopProperties
.
isWindowsProperty
(
name
)
||
name
.
startsWith
(
awtPrefix
)
||
name
.
startsWith
(
awtPrefix
)
||
name
.
startsWith
(
dndPrefix
))
||
name
.
startsWith
(
dndPrefix
))
...
...
test/javax/swing/JPopupMenu/6694823/bug6694823.java
浏览文件 @
c9d3a64d
...
@@ -69,7 +69,12 @@ public class bug6694823 {
...
@@ -69,7 +69,12 @@ public class bug6694823 {
toolkit
.
realSync
();
toolkit
.
realSync
();
System
.
out
.
println
(
"Test passed!"
);
System
.
out
.
println
(
"Test passed!"
);
frame
.
dispose
();
SwingUtilities
.
invokeAndWait
(
new
Runnable
()
{
public
void
run
()
{
frame
.
dispose
();
}
});
}
}
private
static
void
createGui
()
{
private
static
void
createGui
()
{
...
@@ -88,30 +93,44 @@ public class bug6694823 {
...
@@ -88,30 +93,44 @@ public class bug6694823 {
frame
.
setSize
(
200
,
200
);
frame
.
setSize
(
200
,
200
);
}
}
private
static
void
showPopup
(
final
boolean
shouldBeShifted
)
{
private
static
void
showPopup
(
final
boolean
shouldBeShifted
)
throws
Exception
{
SwingUtilities
.
invoke
Later
(
new
Runnable
()
{
SwingUtilities
.
invoke
AndWait
(
new
Runnable
()
{
public
void
run
()
{
public
void
run
()
{
// Place frame just above the task bar
// Place frame just above the task bar
Dimension
screenSize
=
toolkit
.
getScreenSize
();
Dimension
screenSize
=
toolkit
.
getScreenSize
();
frame
.
setLocation
(
screenSize
.
width
/
2
,
frame
.
setLocation
(
screenSize
.
width
/
2
,
screenSize
.
height
-
frame
.
getHeight
()
-
screenInsets
.
bottom
);
screenSize
.
height
-
frame
.
getHeight
()
-
screenInsets
.
bottom
);
frame
.
setVisible
(
true
);
frame
.
setVisible
(
true
);
}
});
// Ensure frame is visible
toolkit
.
realSync
();
final
Point
point
=
new
Point
();
SwingUtilities
.
invokeAndWait
(
new
Runnable
()
{
public
void
run
()
{
// Place popup over the task bar
// Place popup over the task bar
Point
frameLoc
=
frame
.
getLocationOnScreen
()
;
point
.
x
=
0
;
int
x
=
0
;
point
.
y
=
frame
.
getHeight
()
-
popup
.
getPreferredSize
().
height
+
screenInsets
.
bottom
;
int
y
=
frame
.
getHeight
()
popup
.
show
(
frame
,
point
.
x
,
point
.
y
);
-
popup
.
getPreferredSize
().
height
+
screenInsets
.
bottom
;
}
popup
.
show
(
frame
,
x
,
y
);
}
);
// Ensure popup is visible
toolkit
.
realSync
();
SwingUtilities
.
invokeAndWait
(
new
Runnable
()
{
public
void
run
()
{
Point
frameLoc
=
frame
.
getLocationOnScreen
();
if
(
shouldBeShifted
)
{
if
(
shouldBeShifted
)
{
if
(
popup
.
getLocationOnScreen
()
if
(
popup
.
getLocationOnScreen
()
.
equals
(
new
Point
(
frameLoc
.
x
,
frameLoc
.
y
+
y
)))
{
.
equals
(
new
Point
(
frameLoc
.
x
,
frameLoc
.
y
+
point
.
y
)))
{
throw
new
RuntimeException
(
"Popup is not shifted"
);
throw
new
RuntimeException
(
"Popup is not shifted"
);
}
}
}
else
{
}
else
{
if
(!
popup
.
getLocationOnScreen
()
if
(!
popup
.
getLocationOnScreen
()
.
equals
(
new
Point
(
frameLoc
.
x
,
frameLoc
.
y
+
y
)))
{
.
equals
(
new
Point
(
frameLoc
.
x
,
frameLoc
.
y
+
point
.
y
)))
{
throw
new
RuntimeException
(
"Popup is unexpectedly shifted"
);
throw
new
RuntimeException
(
"Popup is unexpectedly shifted"
);
}
}
}
}
...
...
test/javax/swing/text/html/TableView/7030332/bug7030332.html
0 → 100644
浏览文件 @
c9d3a64d
<html>
<body>
<applet
code=
"bug7030332.class"
width=
600
height=
400
></applet>
Compare Golden Images with rendered JEditorPane.
They should looks simalar in each line. Pay attention to:
1. Border width around tables
2. Border width around cells
</body>
</html>
test/javax/swing/text/html/TableView/7030332/bug7030332.java
0 → 100644
浏览文件 @
c9d3a64d
/*
* Copyright (c) 2011, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/* @test
@bug 7030332
@summary Default borders in tables looks incorrect JEditorPane
@author Pavel Porvatov
* @run applet/manual=yesno bug7030332.html
*/
import
javax.swing.*
;
import
java.awt.*
;
import
java.net.URL
;
public
class
bug7030332
extends
JApplet
{
public
static
final
String
[]
HTML_SAMPLES
=
new
String
[]{
"<table border><tr><th>Column1</th><th>Column2</th></tr></table>"
,
"<table border=\"\"><tr><th>Column1</th><th>Column2</th></tr></table>"
,
"<table border=\"1\"><tr><th>Column1</th><th>Column2</th></tr></table>"
,
"<table border=\"2\"><tr><th>Column1</th><th>Column2</th></tr></table>"
,
};
public
static
void
main
(
String
[]
args
)
throws
Exception
{
SwingUtilities
.
invokeLater
(
new
Runnable
()
{
public
void
run
()
{
JFrame
frame
=
new
JFrame
();
frame
.
setContentPane
(
createContentPane
());
frame
.
setDefaultCloseOperation
(
JFrame
.
DISPOSE_ON_CLOSE
);
frame
.
setSize
(
600
,
400
);
frame
.
setLocationRelativeTo
(
null
);
frame
.
setVisible
(
true
);
}
});
}
public
void
init
()
{
try
{
SwingUtilities
.
invokeAndWait
(
new
Runnable
()
{
public
void
run
()
{
setContentPane
(
createContentPane
());
}
});
}
catch
(
Exception
e
)
{
throw
new
RuntimeException
(
e
);
}
}
private
static
Container
createContentPane
()
{
JPanel
result
=
new
JPanel
(
new
GridLayout
(
HTML_SAMPLES
.
length
+
1
,
3
,
10
,
10
));
result
.
add
(
new
JLabel
(
"Html code"
));
result
.
add
(
new
JLabel
(
"Golden image"
));
result
.
add
(
new
JLabel
(
"JEditorPane"
));
for
(
int
i
=
0
;
i
<
HTML_SAMPLES
.
length
;
i
++)
{
String
htmlSample
=
HTML_SAMPLES
[
i
];
JTextArea
textArea
=
new
JTextArea
(
htmlSample
);
textArea
.
setLineWrap
(
true
);
result
.
add
(
textArea
);
String
imageName
=
"sample"
+
i
+
".png"
;
URL
resource
=
bug7030332
.
class
.
getResource
(
imageName
);
result
.
add
(
resource
==
null
?
new
JLabel
(
imageName
+
" not found"
)
:
new
JLabel
(
new
ImageIcon
(
resource
),
SwingConstants
.
LEFT
));
result
.
add
(
new
JEditorPane
(
"text/html"
,
htmlSample
));
}
return
result
;
}
}
test/javax/swing/text/html/TableView/7030332/sample0.png
0 → 100644
浏览文件 @
c9d3a64d
696 字节
test/javax/swing/text/html/TableView/7030332/sample1.png
0 → 100644
浏览文件 @
c9d3a64d
696 字节
test/javax/swing/text/html/TableView/7030332/sample2.png
0 → 100644
浏览文件 @
c9d3a64d
696 字节
test/javax/swing/text/html/TableView/7030332/sample3.png
0 → 100644
浏览文件 @
c9d3a64d
660 字节
test/javax/swing/text/html/TableView/7030332/sample4.png
0 → 100644
浏览文件 @
c9d3a64d
660 字节
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录