Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error dialog does not wrap text #666

Closed
mitchellsundt opened this issue Jul 9, 2015 · 1 comment
Closed

Error dialog does not wrap text #666

mitchellsundt opened this issue Jul 9, 2015 · 1 comment

Comments

@mitchellsundt
Copy link
Contributor

mitchellsundt commented Jul 9, 2015

Migrated to getodk/briefcase#7 by spacetelescope/github-issues-import

Originally reported on Google Code with ID 665

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);
      }

Reported by yanokwa@nafundi.com on 2012-08-15 19:42:52

@mitchellsundt
Copy link
Contributor Author

mitchellsundt commented Jul 9, 2015

Migrated to opendatakit/briefcase#7 (comment) by spacetelescope/github-issues-import

Fix is in the tree. Will be in the next Briefcase release.

Reported by mitchellsundt on 2012-08-16 00:28:10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants