File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
sources/net.sf.j2s.java.core/src/java/awt Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -3430,14 +3430,12 @@ public void setOpaque(boolean opaque) {
34303430 private static final Color TRANSPARENT_BACKGROUND_COLOR = new Color (0 , 0 , 0 , 0 );
34313431
34323432 private static void setLayersOpaque (Component component , boolean isOpaque ) {
3433- // Shouldn't use instanceof to avoid loading Swing classes
3434- // if it's a pure AWT application.
34353433 if (component instanceof RootPaneContainer ) {
34363434 RootPaneContainer rpc = (RootPaneContainer ) component ;
34373435 JRootPane root = rpc .getRootPane ();
34383436 JLayeredPane lp = root .getLayeredPane ();
34393437 Container c = root .getContentPane ();
3440- JComponent content = (c instanceof JComponent ) ? (JComponent ) c : null ;
3438+ JComponent content = (c instanceof JComponent ? (JComponent ) c : null ) ;
34413439// JComponent gp = (rpc.getGlassPane() instanceof JComponent) ? (JComponent) rpc
34423440// .getGlassPane() : null;
34433441 // if (gp != null) {
You can’t perform that action at this time.
0 commit comments