classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: changed modifiers of javax.swing.SwingUtilities.getWin


From: Roman Kennke
Subject: [cp-patches] FYI: changed modifiers of javax.swing.SwingUtilities.getWindowAncestor()
Date: Mon, 30 May 2005 12:51:21 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021204

I accidentally made the method getWindowAncestor() in javax.swing.SwingUtilities non-static. This is fixed.

2005-05-30  Roman Kennke  <address@hidden>

       * javax/swing/SwingUtilities.java:
       (getWindowAncestor): This method has to be static instead of
       non-static.

/Roman
Index: javax/swing/SwingUtilities.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/SwingUtilities.java,v
retrieving revision 1.27
diff -u -r1.27 SwingUtilities.java
--- javax/swing/SwingUtilities.java     23 May 2005 11:12:02 -0000      1.27
+++ javax/swing/SwingUtilities.java     30 May 2005 10:48:15 -0000
@@ -365,7 +365,7 @@
    * @return the first ancestor Window of <code>comp</code> or
    *     <code>null</code> if <code>comp</code> is not contained in a Window
    */
-  public Window getWindowAncestor(Component comp)
+  public static Window getWindowAncestor(Component comp)
   {
     return (Window) getAncestorOfClass(Window.class, comp);
   }

reply via email to

[Prev in Thread] Current Thread [Next in Thread]