Skip to content

Commit 9f9b75a

Browse files
committed
SwingJS update
1 parent 62b671a commit 9f9b75a

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed
0 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20200522165843
1+
20200527175654
0 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20200522165843
1+
20200524153112

sources/net.sf.j2s.java.core/src/test/Test_Applet_1.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,19 @@ public class Test_Applet_1 extends JApplet implements AdjustmentListener, Proper
3030

3131
int ipt;
3232

33+
int width = 300;
34+
35+
public int getWidth() {
36+
return width;
37+
}
3338
@Override
3439
public void init() {
40+
setSize(500,500);
41+
System.out.println(getWidth());
42+
System.out.println(getSize());
43+
System.out.println(getBounds());
44+
System.out.println(getBounds(null));
45+
System.out.println(width);
3546
JScrollBar bar = new JScrollBar(JScrollBar.HORIZONTAL);
3647
bar.addAdjustmentListener(this);
3748
bar.addPropertyChangeListener(this);

0 commit comments

Comments
 (0)