<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
On 09/02/2011 06:41 PM, Pavel Porvatov wrote:
<blockquote cite="mid:4E60B2C9.7000409@oracle.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Hi Charles,
<blockquote cite="mid:4E6041E9.4020709@linux.vnet.ibm.com"
type="cite">
<meta http-equiv="Context-Type" content="text/html;
charset=ISO-8859-1">
<title></title>
On 09/01/2011 08:37 PM, Pavel Porvatov wrote:
<blockquote cite="mid:4E5F7C7D.5070502@oracle.com" type="cite">
<title></title>
Hi Charles,
<blockquote cite="mid:4E5DC6AB.1010300@linux.vnet.ibm.com"
type="cite"> On 08/25/2011 05:45 PM, Pavel Porvatov wrote:
<blockquote cite="mid:4E5619A2.6020602@oracle.com"
type="cite"> <br>
</blockquote>
putClientProperty still does not work on my side. I can not
find methods which receive the accessible property changes.
Is the diff attached you supposed to be?<br>
</blockquote>
Take a look at
javax.swing.JComponent.AccessibleJComponent#getAccessibleName<br>
<br>
...<br>
if (name == null) {<br>
name =
(String)getClientProperty(AccessibleContext.ACCESSIBLE_NAME_PROPERTY);<br>
}<br>
...<br>
<br>
<br>
Below is FilePane patch that works on my PC:<br>
<br>
# hg diff src/share/classes/sun/swing/FilePane.java<br>
diff --git a/src/share/classes/sun/swing/FilePane.java
b/src/share/classes/sun/swing/FilePane.java<br>
--- a/src/share/classes/sun/swing/FilePane.java<br>
+++ b/src/share/classes/sun/swing/FilePane.java<br>
@@ -35,6 +35,7 @@<br>
import java.util.List;<br>
import java.util.concurrent.Callable;<br>
<br>
+import javax.accessibility.AccessibleContext;<br>
import javax.swing.*;<br>
import javax.swing.border.*;<br>
import javax.swing.event.*;<br>
@@ -82,6 +83,8 @@<br>
private JPanel currentViewPanel;<br>
private String[] viewTypeActionNames;<br>
<br>
+ private String filesListAccessibleName = null;<br>
+<br>
private JPopupMenu contextMenu;<br>
private JMenu viewMenu;<br>
<br>
@@ -450,6 +453,8 @@<br>
gigaByteString =
UIManager.getString("FileChooser.fileSizeGigaBytes", l);<br>
fullRowSelection =
UIManager.getBoolean("FileView.fullRowSelection");<br>
<br>
+ filesListAccessibleName =
UIManager.getString("FileChooser.filesListAccessibleName",l);<br>
+<br>
renameErrorTitleText =
UIManager.getString("FileChooser.renameErrorTitleText", l);<br>
renameErrorText =
UIManager.getString("FileChooser.renameErrorText", l);<br>
renameErrorFileExistsText =
UIManager.getString("FileChooser.renameErrorFileExistsText",
l);<br>
@@ -634,6 +639,9 @@<br>
if (listViewBorder != null) {<br>
scrollpane.setBorder(listViewBorder);<br>
}<br>
+<br>
+
list.putClientProperty(AccessibleContext.ACCESSIBLE_NAME_PROPERTY,
filesListAccessibleName);<br>
+<br>
p.add(scrollpane, BorderLayout.CENTER);<br>
return p;<br>
}<br>
<br>
I used attached test for checking...<br>
<br>
Regards, Pavel<br>
</blockquote>
Great, it works, though I do not know why it does not work
before....<br>
<br>
So, Pavel my question is still there:<br>
<br>
I do not get "There is no AccessibleDescription for all
resources". Do you mean it is not in all the resource file
(*.properties) or do you mean not all accessible class has
accessible description?<br>
</blockquote>
I meant that we don't add accessible descriptions, therefore I'd
like to remove FileChooser.filesAccessibleDescription from the
patch.<br>
<br>
Regards, Pavel<br>
</blockquote>
Ok. So the new patch goes to (attached):<br>
<br>
<br>
<pre class="moz-signature" cols="72">--
Yours Charles</pre>
</body>
</html>