Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
cece1496
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看板
提交
cece1496
编写于
10月 14, 2013
作者:
M
malenkov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7165112: Incomprehensible garbage in doc for RootPaneContainer
Reviewed-by: alexsch
上级
1b4dccec
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
28 addition
and
23 deletion
+28
-23
src/share/classes/javax/swing/JApplet.java
src/share/classes/javax/swing/JApplet.java
+4
-3
src/share/classes/javax/swing/JDialog.java
src/share/classes/javax/swing/JDialog.java
+4
-3
src/share/classes/javax/swing/JFrame.java
src/share/classes/javax/swing/JFrame.java
+4
-3
src/share/classes/javax/swing/JInternalFrame.java
src/share/classes/javax/swing/JInternalFrame.java
+4
-3
src/share/classes/javax/swing/JWindow.java
src/share/classes/javax/swing/JWindow.java
+4
-3
src/share/classes/javax/swing/RootPaneContainer.java
src/share/classes/javax/swing/RootPaneContainer.java
+8
-8
未找到文件。
src/share/classes/javax/swing/JApplet.java
浏览文件 @
cece1496
...
@@ -46,9 +46,10 @@ import javax.accessibility.*;
...
@@ -46,9 +46,10 @@ import javax.accessibility.*;
* <code>java.applet.Applet</code>. <code>JApplet</code> contains a
* <code>java.applet.Applet</code>. <code>JApplet</code> contains a
* <code>JRootPane</code> as its only child. The <code>contentPane</code>
* <code>JRootPane</code> as its only child. The <code>contentPane</code>
* should be the parent of any children of the <code>JApplet</code>.
* should be the parent of any children of the <code>JApplet</code>.
* As a convenience <code>add</code> and its variants, <code>remove</code> and
* As a convenience, the {@code add}, {@code remove}, and {@code setLayout}
* <code>setLayout</code> have been overridden to forward to the
* methods of this class are overridden, so that they delegate calls
* <code>contentPane</code> as necessary. This means you can write:
* to the corresponding methods of the {@code ContentPane}.
* For example, you can add a child component to an applet as follows:
* <pre>
* <pre>
* applet.add(child);
* applet.add(child);
* </pre>
* </pre>
...
...
src/share/classes/javax/swing/JDialog.java
浏览文件 @
cece1496
...
@@ -44,9 +44,10 @@ import javax.accessibility.*;
...
@@ -44,9 +44,10 @@ import javax.accessibility.*;
* as its only child.
* as its only child.
* The {@code contentPane} should be the parent of any children of the
* The {@code contentPane} should be the parent of any children of the
* {@code JDialog}.
* {@code JDialog}.
* As a convenience {@code add} and its variants, {@code remove} and
* As a convenience, the {@code add}, {@code remove}, and {@code setLayout}
* {@code setLayout} have been overridden to forward to the
* methods of this class are overridden, so that they delegate calls
* {@code contentPane} as necessary. This means you can write:
* to the corresponding methods of the {@code ContentPane}.
* For example, you can add a child component to a dialog as follows:
* <pre>
* <pre>
* dialog.add(child);
* dialog.add(child);
* </pre>
* </pre>
...
...
src/share/classes/javax/swing/JFrame.java
浏览文件 @
cece1496
...
@@ -50,9 +50,10 @@ import javax.accessibility.*;
...
@@ -50,9 +50,10 @@ import javax.accessibility.*;
* as a rule, contain
* as a rule, contain
* all the non-menu components displayed by the <code>JFrame</code>.
* all the non-menu components displayed by the <code>JFrame</code>.
* This is different from the AWT <code>Frame</code> case.
* This is different from the AWT <code>Frame</code> case.
* As a conveniance <code>add</code> and its variants, <code>remove</code> and
* As a convenience, the {@code add}, {@code remove}, and {@code setLayout}
* <code>setLayout</code> have been overridden to forward to the
* methods of this class are overridden, so that they delegate calls
* <code>contentPane</code> as necessary. This means you can write:
* to the corresponding methods of the {@code ContentPane}.
* For example, you can add a child component to a frame as follows:
* <pre>
* <pre>
* frame.add(child);
* frame.add(child);
* </pre>
* </pre>
...
...
src/share/classes/javax/swing/JInternalFrame.java
浏览文件 @
cece1496
...
@@ -63,9 +63,10 @@ import sun.swing.SwingUtilities2;
...
@@ -63,9 +63,10 @@ import sun.swing.SwingUtilities2;
* <p>
* <p>
* The <code>JInternalFrame</code> content pane
* The <code>JInternalFrame</code> content pane
* is where you add child components.
* is where you add child components.
* As a conveniance <code>add</code> and its variants, <code>remove</code> and
* As a convenience, the {@code add}, {@code remove}, and {@code setLayout}
* <code>setLayout</code> have been overridden to forward to the
* methods of this class are overridden, so that they delegate calls
* <code>contentPane</code> as necessary. This means you can write:
* to the corresponding methods of the {@code ContentPane}.
* For example, you can add a child component to an internal frame as follows:
* <pre>
* <pre>
* internalFrame.add(child);
* internalFrame.add(child);
* </pre>
* </pre>
...
...
src/share/classes/javax/swing/JWindow.java
浏览文件 @
cece1496
...
@@ -43,9 +43,10 @@ import javax.accessibility.*;
...
@@ -43,9 +43,10 @@ import javax.accessibility.*;
* The <code>JWindow</code> component contains a <code>JRootPane</code>
* The <code>JWindow</code> component contains a <code>JRootPane</code>
* as its only child. The <code>contentPane</code> should be the parent
* as its only child. The <code>contentPane</code> should be the parent
* of any children of the <code>JWindow</code>.
* of any children of the <code>JWindow</code>.
* As a conveniance <code>add</code> and its variants, <code>remove</code> and
* As a convenience, the {@code add}, {@code remove}, and {@code setLayout}
* <code>setLayout</code> have been overridden to forward to the
* methods of this class are overridden, so that they delegate calls
* <code>contentPane</code> as necessary. This means you can write:
* to the corresponding methods of the {@code ContentPane}.
* For example, you can add a child component to a window as follows:
* <pre>
* <pre>
* window.add(child);
* window.add(child);
* </pre>
* </pre>
...
...
src/share/classes/javax/swing/RootPaneContainer.java
浏览文件 @
cece1496
...
@@ -45,18 +45,18 @@ import java.awt.Container;
...
@@ -45,18 +45,18 @@ import java.awt.Container;
* dropping a component on a RootPaneContainer would be interpreted
* dropping a component on a RootPaneContainer would be interpreted
* as <code>frame.getContentPane().add(child)</code>.
* as <code>frame.getContentPane().add(child)</code>.
* <p>
* <p>
*
For convenian
ce
*
As a convenience, the standard classes that implement this interfa
ce
*
<code>JFrame</code>, <code>JDialog</code>, <code>JWindow</code>
,
*
(such as {@code JFrame}, {@code JDialog}, {@code JWindow}, {@code JApplet}
,
*
<code>JApplet</code> and <code>JInternalFrame</code>, by default
,
*
and {@code JInternalFrame}) have their {@code add}, {@code remove}
,
*
forward, by default, all calls to the <code>add</code>,
*
and {@code setLayout} methods overridden, so that they delegate calls
*
<code>remove</code> and <code>setLayout</code> methods, to the
*
to the corresponding methods of the {@code ContentPane}.
*
<code>contentPane</code>. This means you can call
:
*
For example, you can add a child component to a frame as follows
:
* <pre>
* <pre>
*
rootPaneContainer.add(component
);
*
frame.add(child
);
* </pre>
* </pre>
* instead of:
* instead of:
* <pre>
* <pre>
*
rootPaneContainer.getContentPane().add(component
);
*
frame.getContentPane().add(child
);
* </pre>
* </pre>
* <p>
* <p>
* The behavior of the <code>add</code> and
* The behavior of the <code>add</code> and
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录