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
Original issue reported on code.google.com by
yano...@nafundi.com
on 15 Aug 2012 at 7:42