提交 c9d3a64d 编写于 作者: L lana

Merge

...@@ -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
......
...@@ -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\u00F6her FileChooser.upFolderToolTipText=Eine Ebene h\u00F6her
FileChooser.upFolderAccessibleName=Nach oben FileChooser.upFolderAccessibleName=Nach oben
FileChooser.homeFolderToolTipText=Home FileChooser.homeFolderToolTipText=Home
......
...@@ -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
......
...@@ -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\u00E9pertoire d'origine FileChooser.homeFolderToolTipText=R\u00E9pertoire d'origine
......
...@@ -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
......
...@@ -19,10 +19,14 @@ ...@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS ############# ############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText=\u53C2\u7167: FileChooser.lookInLabelText=\u53C2\u7167:
FileChooser.lookInLabelMnemonic=73
FileChooser.saveInLabelText=\u4FDD\u5B58: FileChooser.saveInLabelText=\u4FDD\u5B58:
FileChooser.fileNameLabelText=\u30D5\u30A1\u30A4\u30EB\u540D: FileChooser.fileNameLabelText=\u30D5\u30A1\u30A4\u30EB\u540D:
FileChooser.fileNameLabelMnemonic=78
FileChooser.folderNameLabelText=\u30D5\u30A9\u30EB\u30C0\u540D: FileChooser.folderNameLabelText=\u30D5\u30A9\u30EB\u30C0\u540D:
FileChooser.folderNameLabelMnemonic=78
FileChooser.filesOfTypeLabelText=\u30D5\u30A1\u30A4\u30EB\u306E\u30BF\u30A4\u30D7: FileChooser.filesOfTypeLabelText=\u30D5\u30A1\u30A4\u30EB\u306E\u30BF\u30A4\u30D7:
FileChooser.filesOfTypeLabelMnemonic=84
FileChooser.upFolderToolTipText=1\u30EC\u30D9\u30EB\u4E0A\u3078 FileChooser.upFolderToolTipText=1\u30EC\u30D9\u30EB\u4E0A\u3078
FileChooser.upFolderAccessibleName=\u4E0A\u3078 FileChooser.upFolderAccessibleName=\u4E0A\u3078
FileChooser.homeFolderToolTipText=\u30DB\u30FC\u30E0 FileChooser.homeFolderToolTipText=\u30DB\u30FC\u30E0
......
...@@ -19,10 +19,14 @@ ...@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS ############# ############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText=\uAC80\uC0C9 \uC704\uCE58: FileChooser.lookInLabelText=\uAC80\uC0C9 \uC704\uCE58:
FileChooser.lookInLabelMnemonic=73
FileChooser.saveInLabelText=\uC800\uC7A5 \uC704\uCE58: FileChooser.saveInLabelText=\uC800\uC7A5 \uC704\uCE58:
FileChooser.fileNameLabelText=\uD30C\uC77C \uC774\uB984: FileChooser.fileNameLabelText=\uD30C\uC77C \uC774\uB984:
FileChooser.fileNameLabelMnemonic=78
FileChooser.folderNameLabelText=\uD3F4\uB354 \uC774\uB984: FileChooser.folderNameLabelText=\uD3F4\uB354 \uC774\uB984:
FileChooser.folderNameLabelMnemonic=78
FileChooser.filesOfTypeLabelText=\uD30C\uC77C \uC720\uD615: FileChooser.filesOfTypeLabelText=\uD30C\uC77C \uC720\uD615:
FileChooser.filesOfTypeLabelMnemonic=84
FileChooser.upFolderToolTipText=\uD55C \uB808\uBCA8 \uC704\uB85C FileChooser.upFolderToolTipText=\uD55C \uB808\uBCA8 \uC704\uB85C
FileChooser.upFolderAccessibleName=\uC704\uB85C FileChooser.upFolderAccessibleName=\uC704\uB85C
FileChooser.homeFolderToolTipText=\uD648 FileChooser.homeFolderToolTipText=\uD648
......
...@@ -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\u00EDvel Acima FileChooser.upFolderToolTipText=Um N\u00EDvel Acima
FileChooser.upFolderAccessibleName=Acima FileChooser.upFolderAccessibleName=Acima
FileChooser.homeFolderToolTipText=In\u00EDcio FileChooser.homeFolderToolTipText=In\u00EDcio
......
...@@ -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\u00E5 FileChooser.upFolderToolTipText=Upp en niv\u00E5
FileChooser.upFolderAccessibleName=Upp FileChooser.upFolderAccessibleName=Upp
FileChooser.homeFolderToolTipText=Hem FileChooser.homeFolderToolTipText=Hem
......
...@@ -19,10 +19,14 @@ ...@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS ############# ############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText=\u67E5\u770B: FileChooser.lookInLabelText=\u67E5\u770B:
FileChooser.lookInLabelMnemonic=73
FileChooser.saveInLabelText=\u4FDD\u5B58: FileChooser.saveInLabelText=\u4FDD\u5B58:
FileChooser.fileNameLabelText=\u6587\u4EF6\u540D: FileChooser.fileNameLabelText=\u6587\u4EF6\u540D:
FileChooser.fileNameLabelMnemonic=78
FileChooser.folderNameLabelText=\u6587\u4EF6\u5939\u540D: FileChooser.folderNameLabelText=\u6587\u4EF6\u5939\u540D:
FileChooser.folderNameLabelMnemonic=78
FileChooser.filesOfTypeLabelText=\u6587\u4EF6\u7C7B\u578B: FileChooser.filesOfTypeLabelText=\u6587\u4EF6\u7C7B\u578B:
FileChooser.filesOfTypeLabelMnemonic=84
FileChooser.upFolderToolTipText=\u5411\u4E0A\u4E00\u7EA7 FileChooser.upFolderToolTipText=\u5411\u4E0A\u4E00\u7EA7
FileChooser.upFolderAccessibleName=\u5411\u4E0A FileChooser.upFolderAccessibleName=\u5411\u4E0A
FileChooser.homeFolderToolTipText=\u4E3B\u76EE\u5F55 FileChooser.homeFolderToolTipText=\u4E3B\u76EE\u5F55
......
...@@ -19,10 +19,14 @@ ...@@ -19,10 +19,14 @@
############ FILE CHOOSER STRINGS ############# ############ FILE CHOOSER STRINGS #############
FileChooser.lookInLabelText=\u67E5\u8A62: FileChooser.lookInLabelText=\u67E5\u8A62:
FileChooser.lookInLabelMnemonic=73
FileChooser.saveInLabelText=\u5132\u5B58\u65BC: FileChooser.saveInLabelText=\u5132\u5B58\u65BC:
FileChooser.fileNameLabelText=\u6A94\u6848\u540D\u7A31: FileChooser.fileNameLabelText=\u6A94\u6848\u540D\u7A31:
FileChooser.fileNameLabelMnemonic=78
FileChooser.folderNameLabelText=\u8CC7\u6599\u593E\u540D\u7A31: FileChooser.folderNameLabelText=\u8CC7\u6599\u593E\u540D\u7A31:
FileChooser.folderNameLabelMnemonic=78
FileChooser.filesOfTypeLabelText=\u6A94\u6848\u985E\u578B: FileChooser.filesOfTypeLabelText=\u6A94\u6848\u985E\u578B:
FileChooser.filesOfTypeLabelMnemonic=84
FileChooser.upFolderToolTipText=\u5F80\u4E0A\u4E00\u5C64 FileChooser.upFolderToolTipText=\u5F80\u4E0A\u4E00\u5C64
FileChooser.upFolderAccessibleName=\u5F80\u4E0A FileChooser.upFolderAccessibleName=\u5F80\u4E0A
FileChooser.homeFolderToolTipText=\u4E3B\u76EE\u9304 FileChooser.homeFolderToolTipText=\u4E3B\u76EE\u9304
......
...@@ -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>.
......
...@@ -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
......
...@@ -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>
......
...@@ -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
......
...@@ -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) {
......
...@@ -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
......
...@@ -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.
......
...@@ -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
......
...@@ -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
*/ */
......
...@@ -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;
} }
......
...@@ -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)
......
...@@ -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;
} }
}
}
} }
/** /**
......
...@@ -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
......
...@@ -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);
} }
......
...@@ -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))
......
...@@ -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.invokeLater(new Runnable() { SwingUtilities.invokeAndWait(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");
} }
} }
......
<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>
/*
* 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;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册