Skip to content

Commit 4423b2e

Browse files
committed
error handling when drawing
1 parent 7ed6e21 commit 4423b2e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sources/net.sf.j2s.java.core/src/javax/swing/JComponent.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,9 @@ protected void paintComponent(Graphics g) {
631631
ui.update(scratchGraphics, this);
632632
//JSGraphics2D jsg = 秘getJSGraphic2D(scratchGraphics);
633633
//秘isBackgroundPainted = (jsg != null && jsg.isBackgroundPainted());
634-
} finally {
634+
} catch (Throwable t) {
635+
t.printStackTrace();
636+
} finally {
635637
scratchGraphics.dispose();
636638
}
637639
}

0 commit comments

Comments
 (0)