src/share/classes/sun/awt/ComponentAccessor.java

Print this page

        

@@ -68,11 +68,10 @@
     private static Method methodEnableEvents;
     private static Field fieldParent;
     private static Field fieldBackground;
     private static Field fieldForeground;
     private static Field fieldFont;
-    private static Field fieldPacked;
     private static Field fieldIgnoreRepaint;
     private static Field fieldPeer;
     private static Field fieldVisible;
     private static Method methodIsEnabledImpl;
     private static Method methodGetCursorNoClientCode;

@@ -113,12 +112,10 @@
                         methodEnableEvents = componentClass.getDeclaredMethod("enableEvents",argTypesForMethodEnableEvents);
                         methodEnableEvents.setAccessible(true);
 
                         fieldParent  = componentClass.getDeclaredField("parent");
                         fieldParent.setAccessible(true);
-                        fieldPacked = componentClass.getDeclaredField("isPacked");
-                        fieldPacked.setAccessible(true);
                         fieldIgnoreRepaint = componentClass.getDeclaredField("ignoreRepaint");
                         fieldIgnoreRepaint.setAccessible(true);
 
                         fieldPeer = componentClass.getDeclaredField("peer");
                         fieldPeer.setAccessible(true);

@@ -250,21 +247,10 @@
             log.log(Level.FINE, "Unable to access the Component object", e);
         }
         return 0;
     }
 
-    public static boolean getIsPacked(Component c) {
-        try {
-            return fieldPacked.getBoolean(c);
-        }
-        catch (IllegalAccessException e)
-        {
-            log.log(Level.FINE, "Unable to access the Component object", e);
-        }
-        return false;
-    }
-
     public static Container getParent_NoClientCode(Component c) {
         Container parent=null;
 
         try {
             parent = (Container) methodGetParentNoClientCode.invoke(c, (Object[]) null);