anupmishra20 / opendatakit

Automatically exported from code.google.com/p/opendatakit
0 stars 0 forks source link

Error dialog does not wrap text #665

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The error dialog that Briefcase uses doesn't wrap text and so is not user 
friendly...

In ServerConnectionDialog.java something like this would work...

      if ( isSuccessful ) {
        serverInfo = info;
        this.setVisible(false);
      } else {

          JTextArea textArea = new JTextArea(errorString);
          textArea.setColumns(30);
          textArea.setLineWrap(true);
          textArea.setWrapStyleWord(true);
          textArea.setBackground(new Color(0, 0, 0, 0));
          textArea.setSize(textArea.getPreferredSize().width, 1);

        JOptionPane.showMessageDialog(this, textArea, "Server error",
            JOptionPane.ERROR_MESSAGE);
        okButton.setEnabled(true);
        cancelButton.setEnabled(true);
      }

Original issue reported on code.google.com by yano...@nafundi.com on 15 Aug 2012 at 7:42

GoogleCodeExporter commented 9 years ago
Fix is in the tree. Will be in the next Briefcase release.

Original comment by mitchellsundt@gmail.com on 16 Aug 2012 at 12:28