Skip to content

Commit 17f3678

Browse files
committed
Window opacity restored after moving to subclass JComponent
1 parent edf4ea7 commit 17f3678

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed
4.93 KB
Binary file not shown.

sources/net.sf.j2s.java.core/src/java/awt/Window.java

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@
6262
import swingjs.JSUtil;
6363

6464
/**
65+
*
66+
* SWINGJS NOTE! As of 6/23/2018 java.awt.Window has been moved to
67+
* subclass JComponent. It is fair to say that there will be issues
68+
* with this, but the reason was to allow JInternalFrame to subclass JFrame
69+
* instead of duplicating in code all of its functionality.
70+
*
71+
*
6572
* A <code>Window</code> object is a top-level window with no borders and no
6673
* menubar.
6774
* The default layout for a window is <code>BorderLayout</code>.
@@ -3353,10 +3360,14 @@ public void setBackground(Color bgColor) {
33533360
}
33543361
*/
33553362

3356-
@SuppressWarnings("unused")
3357-
private transient boolean opaque = true;
3363+
private boolean opaque = true;
3364+
3365+
public boolean isOpaque() {
3366+
// SwingJS
3367+
return opaque;
3368+
}
33583369

3359-
public void setOpaque(boolean opaque) {
3370+
public void setOpaque(boolean opaque) {
33603371
synchronized (getTreeLock()) {
33613372
//TODO ?
33623373
// GraphicsConfiguration gc = getGraphicsConfiguration();

0 commit comments

Comments
 (0)