File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
sources/net.sf.j2s.java.core/src Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2679,7 +2679,7 @@ protected void invalidateComp() {
26792679 if (!isMaximumSizeSet ()) {
26802680 maxSize = null ;
26812681 }
2682- if (parent != null && ! _j2sInvalidateOnAdd ) {
2682+ if (parent != null && _j2sInvalidateOnAdd ) {
26832683 parent .invalidateIfValid ();
26842684 }
26852685 // }
Original file line number Diff line number Diff line change @@ -687,10 +687,11 @@ protected void paintChildren(Graphics g) {
687687 // and probably not do this.
688688 // SwingJS TODO -- allow JSpecView-like layer for writing over buttons
689689 if (jc != null && jc .isVisible ()) {
690- jc .getBounds (tmpRect );
690+ jc .getBounds (tmpRect );
691+ boolean isContentPane = jc .getRootPane ().getContentPane () == jc ;
691692 Rectangle vr = (jc instanceof JTable ? jc .getVisibleRect () : tmpRect );
692693 JSGraphics2D jsg = (JSGraphics2D ) (Object ) sg .create (tmpRect .x ,
693- (jc . isContentPane ? 0 : tmpRect .y ), vr .width , vr .height );
694+ (isContentPane ? 0 : tmpRect .y ), vr .width , vr .height );
694695 jsg .setColor (jc .getForeground ());
695696 jsg .setFont (jc .getFont ());
696697 boolean shouldSetFlagBack = false ;
You can’t perform that action at this time.
0 commit comments