Big AWT patch.
From-SVN: r34976
This commit is contained in:
parent
406a65d0db
commit
c7a136d3ef
70 changed files with 4838 additions and 277 deletions
|
@ -28,6 +28,12 @@ public abstract class ResourceBundle
|
|||
public ResourceBundle ()
|
||||
{
|
||||
}
|
||||
|
||||
public Locale getLocale()
|
||||
{
|
||||
// FIXME: Stub added for this missing method because it is needed for AWT.
|
||||
return null;
|
||||
}
|
||||
|
||||
public final String getString (String key) throws MissingResourceException
|
||||
{
|
||||
|
@ -110,9 +116,14 @@ public abstract class ResourceBundle
|
|||
|
||||
// Look for a properties file.
|
||||
{
|
||||
String prop_name = (bundleName.replace('.', '/') + ".properties");
|
||||
System.out.println ("trying '" + prop_name + "' for '" + bundleName);
|
||||
InputStream i = ClassLoader.getSystemResourceAsStream (prop_name);
|
||||
/*
|
||||
InputStream i =
|
||||
ClassLoader.getSystemResourceAsStream (bundleName.replace ('.', '/')
|
||||
+ ".properties");
|
||||
*/
|
||||
if (i != null)
|
||||
{
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue