diff --git a/src/main/java/at/impro/wordclockgenerator/JPGraphToMatrix.java b/src/main/java/at/impro/wordclockgenerator/JPGraphToMatrix.java index d36db09..5722a5a 100644 --- a/src/main/java/at/impro/wordclockgenerator/JPGraphToMatrix.java +++ b/src/main/java/at/impro/wordclockgenerator/JPGraphToMatrix.java @@ -237,7 +237,7 @@ private void jCBfillActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST private void jBExportActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBExportActionPerformed final JFileChooser fc = new JFileChooser(); fc.showSaveDialog(this); - String ln=java.security.AccessController.doPrivileged(new sun.security.action.GetPropertyAction("line.separator")); + String ln= System.lineSeparator(); try (Writer file = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(fc.getSelectedFile()), "utf-8"))) { int lh=resultmatrix.length; int lw=resultmatrix[0].length;