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

Print this page

        

*** 68,78 **** 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; --- 68,77 ----
*** 113,124 **** 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); --- 112,121 ----
*** 250,270 **** 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); --- 247,256 ----