-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCreateAJFrame.java
60 lines (47 loc) · 2.64 KB
/
CreateAJFrame.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
Java 14 spams console when a JFrame is created:
Nov 30 08:37:45 donhatch-glaptop2.roam.corp.google.com /usr/libexec/gdm-x-session[4471]: (II) modeset(0): EDID vendor "BOE", prod id 1759
Nov 30 08:37:45 donhatch-glaptop2.roam.corp.google.com /usr/libexec/gdm-x-session[4471]: (II) modeset(0): Printing DDC gathered Modelines:
Nov 30 08:37:45 donhatch-glaptop2.roam.corp.google.com /usr/libexec/gdm-x-session[4471]: (II) modeset(0): Modeline "1920x1080"x0.0 141.40 1920 1980 2012 2142 1080 1083 1089 1100 +hsync -vsync (66.0 kHz eP)
Nov 30 08:37:45 donhatch-glaptop2.roam.corp.google.com /usr/libexec/gdm-x-session[4471]: (II) modeset(0): Modeline "1920x1080"x0.0 113.12 1920 1968 2000 2142 1080 1083 1089 1100 +hsync -vsync (52.8 kHz e)
Nov 30 08:37:46 donhatch-glaptop2.roam.corp.google.com /usr/libexec/gdm-x-session[4471]: (II) modeset(0): EDID vendor "BOE", prod id 1759
Nov 30 08:37:46 donhatch-glaptop2.roam.corp.google.com /usr/libexec/gdm-x-session[4471]: (II) modeset(0): Printing DDC gathered Modelines:
Nov 30 08:37:46 donhatch-glaptop2.roam.corp.google.com /usr/libexec/gdm-x-session[4471]: (II) modeset(0): Modeline "1920x1080"x0.0 141.40 1920 1980 2012 2142 1080 1083 1089 1100 +hsync -vsync (66.0 kHz eP)
Nov 30 08:37:46 donhatch-glaptop2.roam.corp.google.com /usr/libexec/gdm-x-session[4471]: (II) modeset(0): Modeline "1920x1080"x0.0 113.12 1920 1968 2000 2142 1080 1083 1089 1100 +hsync -vsync (52.8 kHz e)
java 14: spams
java 13: spams
java 11: spams
java 8: no spam!
*/
class CreateAJFrame {
private static void Sleep(long millis) {
try {
Thread.sleep(millis);
} catch (InterruptedException e) {
System.err.println("interrupted");
System.exit(33);
}
}
public static void main(String[] args) {
System.out.println("in main");
System.out.println(" sleeping A");
Sleep(1000);
System.out.println(" slept A");
System.out.println(" creating a new something");
// The JFrame class hierarchy: Window is the culprit
//new javax.swing.JFrame(); // spams
//new java.awt.Frame(); // spams
//new java.awt.Window(null); // spams
//new java.awt.Container(); // does not spam
//new java.awt.Component() {}; // does not spam
// The JPanel class hierarchy: JPanel is the culprit
new javax.swing.JPanel(); // spams
//new javax.swing.JComponent() {}; // does not spam
//new java.awt.Container(); // does not spam (same as above)
//new java.awt.Component() {}; // does not spam (same as above)
System.out.println(" created a new something");
System.out.println(" sleeping 2");
Sleep(1000);
System.out.println(" slept 2");
}
}