1079 return clipboard;
1080 }
1081
1082 public Clipboard getSystemSelection() {
1083 SecurityManager security = System.getSecurityManager();
1084 if (security != null) {
1085 security.checkSystemClipboardAccess();
1086 }
1087 synchronized (this) {
1088 if (selection == null) {
1089 selection = new XClipboard("Selection", "PRIMARY");
1090 }
1091 }
1092 return selection;
1093 }
1094
1095 public void beep() {
1096 awtLock();
1097 try {
1098 XlibWrapper.XBell(getDisplay(), 0);
1099 } finally {
1100 awtUnlock();
1101 }
1102 }
1103
1104 static String getSystemProperty(final String name) {
1105 return (String)AccessController.doPrivileged(new PrivilegedAction() {
1106 public Object run() {
1107 return System.getProperty(name);
1108 }
1109 });
1110 }
1111
1112 public PrintJob getPrintJob(final Frame frame, final String doctitle,
1113 final Properties props) {
1114
1115 if (GraphicsEnvironment.isHeadless()) {
1116 throw new IllegalArgumentException();
1117 }
1118
|
1079 return clipboard;
1080 }
1081
1082 public Clipboard getSystemSelection() {
1083 SecurityManager security = System.getSecurityManager();
1084 if (security != null) {
1085 security.checkSystemClipboardAccess();
1086 }
1087 synchronized (this) {
1088 if (selection == null) {
1089 selection = new XClipboard("Selection", "PRIMARY");
1090 }
1091 }
1092 return selection;
1093 }
1094
1095 public void beep() {
1096 awtLock();
1097 try {
1098 XlibWrapper.XBell(getDisplay(), 0);
1099 XlibWrapper.XFlush(getDisplay());
1100 } finally {
1101 awtUnlock();
1102 }
1103 }
1104
1105 static String getSystemProperty(final String name) {
1106 return (String)AccessController.doPrivileged(new PrivilegedAction() {
1107 public Object run() {
1108 return System.getProperty(name);
1109 }
1110 });
1111 }
1112
1113 public PrintJob getPrintJob(final Frame frame, final String doctitle,
1114 final Properties props) {
1115
1116 if (GraphicsEnvironment.isHeadless()) {
1117 throw new IllegalArgumentException();
1118 }
1119
|