summaryrefslogtreecommitdiffstats
path: root/modules/hebrew-wlc/WLC2OSIS/Utilities/GetParentFrame.java
diff options
context:
space:
mode:
authorMartin Gruner <mg.pub@gmx.net>2005-06-01 20:02:04 +0000
committerMartin Gruner <mg.pub@gmx.net>2005-06-01 20:02:04 +0000
commita81f9438f49c04b3ae2317eac0a7030b69f3ac1c (patch)
tree6baee296bab6f681e36464dc5f7916d1ba47bfed /modules/hebrew-wlc/WLC2OSIS/Utilities/GetParentFrame.java
parent84677a0fef8ef467202dde5ceceab18ab6714d3c (diff)
downloadsword-tools-a81f9438f49c04b3ae2317eac0a7030b69f3ac1c.tar.gz
update^
git-svn-id: https://www.crosswire.org/svn/sword-tools/trunk@38 07627401-56e2-0310-80f4-f8cd0041bdcd
Diffstat (limited to 'modules/hebrew-wlc/WLC2OSIS/Utilities/GetParentFrame.java')
-rw-r--r--modules/hebrew-wlc/WLC2OSIS/Utilities/GetParentFrame.java68
1 files changed, 34 insertions, 34 deletions
diff --git a/modules/hebrew-wlc/WLC2OSIS/Utilities/GetParentFrame.java b/modules/hebrew-wlc/WLC2OSIS/Utilities/GetParentFrame.java
index 9fcd472..80e0f2a 100644
--- a/modules/hebrew-wlc/WLC2OSIS/Utilities/GetParentFrame.java
+++ b/modules/hebrew-wlc/WLC2OSIS/Utilities/GetParentFrame.java
@@ -1,34 +1,34 @@
-package Utilities ;
-
-import java.awt.*;
-import javax.swing.*;
-//==============================================================================
-/**
- * <b>Gets ultimate parent Frame of a component.</b><p>
- *
- * From page 274 of Pure JFC Swing.<p>
- *
- */
-//==============================================================================
-
-public class GetParentFrame{
-
-//-------------------------------------------------------------------------------
-/**
- * Gets the ultimate parent Frame of a Component.<p>
- *
- * @param comp a Component whose parent is sought.
- * @return a Frame Ultimate parent Frame of component.
- */
-static public Frame GetParentFrame(Component comp){
- if (comp instanceof Frame) return (JFrame)comp ;
- for (Component c = comp; c!= null; c = c.getParent() ){
- if (c instanceof Frame){
- return (Frame)c ;
- }
- }
- return null ;
- }
-// end of class
-}
-//==============================================================================
+package Utilities ;
+
+import java.awt.*;
+import javax.swing.*;
+//==============================================================================
+/**
+ * <b>Gets ultimate parent Frame of a component.</b><p>
+ *
+ * From page 274 of Pure JFC Swing.<p>
+ *
+ */
+//==============================================================================
+
+public class GetParentFrame{
+
+//-------------------------------------------------------------------------------
+/**
+ * Gets the ultimate parent Frame of a Component.<p>
+ *
+ * @param comp a Component whose parent is sought.
+ * @return a Frame Ultimate parent Frame of component.
+ */
+static public Frame GetParentFrame(Component comp){
+ if (comp instanceof Frame) return (JFrame)comp ;
+ for (Component c = comp; c!= null; c = c.getParent() ){
+ if (c instanceof Frame){
+ return (Frame)c ;
+ }
+ }
+ return null ;
+ }
+// end of class
+}
+//==============================================================================