This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: Patch: javax.swing.UIManager


Hi list,


I commited the attached patch to merge javax.swing.UIManager with classpath 
again.


Michael
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.2372
diff -u -b -B -r1.2372 ChangeLog
--- ChangeLog	26 Nov 2003 22:23:39 -0000	1.2372
+++ ChangeLog	27 Nov 2003 08:51:57 -0000
@@ -1,3 +1,10 @@
+2003-11-27  Sascha Brawer  <brawer@dandelis.ch>
+
+	* javax/swing/UIManager.java (getDefaults, getDimension,
+	getIcon, getInsets, getInstalledLookAndFeels, getInt,
+	getLookAndFeel, getString, getSystemLookAndFeelClassName):
+	Declare as public.
+
 2003-11-26  Sascha Brawer  <brawer@dandelis.ch>
 
 	* javax/swing/undo/StateEdit.java (getPresentationName): Docfix.
Index: javax/swing/UIManager.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/UIManager.java,v
retrieving revision 1.5
diff -u -b -B -r1.5 UIManager.java
--- javax/swing/UIManager.java	14 Jul 2003 05:33:30 -0000	1.5
+++ javax/swing/UIManager.java	27 Nov 2003 08:51:57 -0000
@@ -1,5 +1,5 @@
 /* UIManager.java -- 
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -168,7 +168,7 @@
   /**
    * Returns the default values for this look and feel. 
    */
-  static  UIDefaults getDefaults()
+  public static UIDefaults getDefaults()
   {
     return getLookAndFeel().getDefaults();
   }
@@ -176,7 +176,7 @@
   /**
    * Returns a dimension from the defaults table. 
    */
-  static  Dimension getDimension(Object key)
+  public static Dimension getDimension(Object key)
   {
     System.out.println("UIManager.getDim");
     return new Dimension(200,100);
@@ -195,24 +195,24 @@
     return (Font) getLookAndFeel().getDefaults().get(key);
   }
 
-  static Icon getIcon(Object key)
+  public static Icon getIcon(Object key)
     // Returns an Icon from the defaults table. 
   {
     return (Icon) getLookAndFeel().getDefaults().get(key);
   }
   
-  static Insets getInsets(Object key)
+  public static Insets getInsets(Object key)
     // Returns an Insets object from the defaults table. 
   {
     return (Insets) getLookAndFeel().getDefaults().getInsets(key);
   }
 
-  static LookAndFeelInfo[] getInstalledLookAndFeels()
+  public static LookAndFeelInfo[] getInstalledLookAndFeels()
   {
     return installed;
   }
 
-  static  int getInt(Object key)
+  public static int getInt(Object key)
   {
     Integer x = (Integer) getLookAndFeel().getDefaults().get(key);
     if (x == null)
@@ -220,7 +220,7 @@
     return x.intValue();
   }
 
-  static  LookAndFeel getLookAndFeel()
+  public static LookAndFeel getLookAndFeel()
   {
     return look_and_feel;
   }
@@ -234,13 +234,13 @@
     return getLookAndFeel().getDefaults();
   }
 
-  static String getString(Object key)
+  public static String getString(Object key)
     // Returns a string from the defaults table. 
   {
     return (String) getLookAndFeel().getDefaults().get(key);
   }
   
-  static String getSystemLookAndFeelClassName()
+  public static String getSystemLookAndFeelClassName()
     // Returns the name of the LookAndFeel class that implements the native systems look and feel if there is one, otherwise the name of the default cross platform LookAndFeel class. 
   {
     return getCrossPlatformLookAndFeelClassName();

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]