Skip to content

Commit 34e2867

Browse files
hansonrhansonr
authored andcommitted
SwingJS-zip
1 parent 734ccc9 commit 34e2867

File tree

7 files changed

+16
-3
lines changed

7 files changed

+16
-3
lines changed
161 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20190710094824
1+
20190712142428
161 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20190710094824
1+
20190712142428
161 Bytes
Binary file not shown.

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ public void mouseClicked(MouseEvent e) {
196196

197197
@Override
198198
public void mousePressed(MouseEvent e) {
199+
System.out.println(frame.getContentPane().getSize());
200+
frame.getContentPane().setBackground(Color.yellow);
201+
((JPanel)frame.getContentPane()).setOpaque(true);
199202
//System.out.println(e.getButton());
200203
if (e.getButton() != MouseEvent.BUTTON3)
201204
return;
@@ -262,7 +265,8 @@ Container getVisualPaneContent(JMenu menu, JMenu menu1, JMenu menu2) {
262265
Font font = new Font("Verdana", Font.PLAIN, 12);
263266

264267
JPanel panel = new JPanel();
265-
panel.setPreferredSize(new Dimension(400, 600));
268+
panel.setPreferredSize(new Dimension(600, 600));
269+
panel.setMaximumSize(new Dimension(600, 600));
266270
panel.setOpaque(true);
267271
panel.setLayout(new BorderLayout());
268272
panel.add(status = new Label("ok"), BorderLayout.SOUTH);

sources/net.sf.j2s.java.core/srcjs/swingjs2.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16842,8 +16842,17 @@ Sys.exit$I = Sys.exit$;
1684216842
Sys.out = new Clazz._O ();
1684316843
Sys.out.__CLASS_NAME__ = "java.io.PrintStream";
1684416844

16845+
Sys.setOut$java_io_PrintStream = function(ps) {
16846+
Sys.out = ps;
16847+
};
16848+
16849+
Sys.setErr$java_io_PrintStream = function(ps) {
16850+
Sys.err = ps;
16851+
};
16852+
1684516853

1684616854
Sys.out.print = Sys.out.print$O = Sys.out.print$Z = Sys.out.print$I = Sys.out.println$J = Sys.out.print$S = Sys.out.print$C = Sys.out.print = function (s) {
16855+
1684716856
Con.consoleOutput (s);
1684816857
};
1684916858

0 commit comments

Comments
 (0)