Parent Directory | Revision Log | Patch
revision 1.15.2.14 by gnu_andrew, Wed Nov 2 00:43:48 2005 UTC | revision 1.15.2.15 by tromey, Sat Nov 26 05:29:42 2005 UTC | |
---|---|---|
# | Line 344 public class SwingUtilities | Line 344 public class SwingUtilities |
344 | * @see #getAncestorOfClass | * @see #getAncestorOfClass |
345 | * @see #windowForComponent | * @see #windowForComponent |
346 | */ | */ |
347 | public static Container getAncestorOfClass(Class c, Component comp) | public static Container getAncestorOfClass(Class<?> c, Component comp) |
348 | { | { |
349 | while (comp != null && (! c.isInstance(comp))) | while (comp != null && (! c.isInstance(comp))) |
350 | comp = comp.getParent(); | comp = comp.getParent(); |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |