We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abd133a commit 867eb43Copy full SHA for 867eb43
sources/net.sf.j2s.java.core/src/swingjs/a2s/Panel.java
@@ -22,6 +22,12 @@ public Panel(LayoutManager layout) {
22
subclassSetup();
23
setBackground(null);
24
setOpaque(false);
25
+ // next two lines are in case a panel is painted
26
+ // in a way that bypasses its paint() method, as for Canvas
27
+ // See _mpQuaZ_Applets_ResistorApplet_bastel.htm
28
+
29
+ 秘setPaintsSelf(PAINTS_SELF_ALWAYS);
30
+ 秘paintClass = 秘updateClass = /**@j2sNative C$ || */null;
31
A2SContainer.fixAWTPaint(this, JComponent.class);
32
}
33
0 commit comments