This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Please see the attached screenshot. The error message gets cut-off. The only way to view the entire message is to expand the window. The size of the window in the screenshot is by default, so the text should at least fit this window.
Created attachment 34643 [details] screenshot
This is a wizard bug, the errormessage is not wrapped automatically.
We are using standard netbeans wizard to show errors and it does not wrap the error. A work around is available, the error message is shown also on standard output tab. see attached screen shot.
Created attachment 34645 [details] validation error shown also on standard output.
Also, if you point over the mouse over the error message, the entire text of the message is displayed as a float-over. (Not optimal, but better than not seeing the rest of the message text.)
Can we get this fixed in the standard Netbeans Wizard? If not for this release, at least for a future release?
accidentally removed whiteboard keyword...adding it back
This can be fixed in 5.5.1. We can add our own text area which can scroll. We do not need to rely on netbeans default error message support as it doesn't scroll.
*** Issue 87464 has been marked as a duplicate of this issue. ***
*** Issue 91502 has been marked as a duplicate of this issue. ***
Kini, Lets put a custom UI in the wizard which has a scrollable text area.
The netbeans wizard provides this to set error message in wizard panel at the bottom which is what we are using: wiz.putProperty ("WizardPanel_errorMessage", this.mErrorMessage); // NOI18N The wizard does not wrap the error message. This should be fixed in netbeans core in the wizard. The bottom error label should be scrollable.
making the error message scrollable is not a good solution. 1. scrolling one line is non-efficient and ugly. 2. having multiple lines reserved for error messages would possibly break multiple wizards that are optimized for the current content size (which would get smaller) 3. it's no possible to have a JLabel multiline (with the exception of <html>-zed test) so whe would have to replace it with JTextArea. I suggest we either provide a tooltip with complete message (possibly with automatic initial appearance) or by introducing a button on the right-hand side that would show the message in a popup window. none of these shall go to 5.5.1 however. It's too risky to introduce such change that potencially breaks other wizards. BTW not sure why this is assigned to projects, should be openide/dialogs instead.
I suggest to provide shorter message as fix for 5.5.1. As fix we could consider couple of options: 1) providing a tooltip with the whole text on mouseover 2) or maybe a button to show entire message if the message is too long Both fixes needs to be consulted with HIE. Putting the text into scroll pane if the text is too long is not good solution because it might break the layout of the whole panel or the area would have to be extended, which will downsize the utilizable place.
Agreed. This is probably WONTFIX. Suggested approaches for the implementor of this wizard: 1. Use a shorter error message. Usually for the best anyway. 2. If the message must be multiline, try using HTML, e.g.: <html>This is one part of the message.<br>This is another part. As far as I know Swing should render multiline HTML text in a JLabel acceptably. (Using a JTextArea is a bad idea as it is difficult to make it look right on every L&F.)
5.5.1_candidate status whiteboard removed
I have been trying to set html code in the errormessage property. Without the <br>, the label still expands out of the wizard. And its not possible to find out where to put the <br> in the error/warning message. It would be good if the wizard could do this.
Reassigning to openide/dialogs for evaluation.
Closed as WONTFIX on Jesse's recommendation in some comment before.
Verified wasn't fixed in NB 6.1