Skip to content

Commit 1e93f7c

Browse files
hansonrhansonr
authored andcommitted
AWT Frame/Dialog defaults
1 parent a564fb7 commit 1e93f7c

File tree

1 file changed

+8
-8
lines changed
  • sources/net.sf.j2s.java.core/src/swingjs/a2s

1 file changed

+8
-8
lines changed

sources/net.sf.j2s.java.core/src/swingjs/a2s/Util.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
package swingjs.a2s;
22

3-
//import java.awt.Color;
4-
//import java.awt.Component;
5-
//import java.awt.Font;
3+
import java.awt.Color;
4+
import java.awt.Component;
5+
import java.awt.Font;
66

77
public class Util {
88
// public int junk =1;
99
// static Color CONTROL = new Color(238,238,238); // #EEEEEE
1010
// static Color CONTROL_TEXT = new Color(51,51,51); // #333333
11-
// static void setAWTWindowDefaults(Component c) {
12-
// c.setBackground(CONTROL);
13-
// c.setForeground(CONTROL_TEXT);
14-
// c.setFont(new Font(Font.DIALOG, Font.PLAIN, 12));
15-
// }
11+
static void setAWTWindowDefaults(Component c) {
12+
c.setBackground(Color.white);
13+
c.setForeground(Color.black);
14+
c.setFont(new Font(Font.DIALOG, Font.PLAIN, 12));
15+
}
1616
//
1717
// public static void drawString(Graphics g, String text, int x, int y) {
1818
// g.drawString(text, x, y);

0 commit comments

Comments
 (0)