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.

Bug 46362

Summary: Should use text fields to display variable-length paths
Product: java Reporter: Jesse Glick <jglick>
Component: UnsupportedAssignee: issues@java <issues>
Status: VERIFIED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Jesse Glick 2004-07-20 22:21:25 UTC
In the "Scanning Project Classpaths" dialog you
often see things like

Scanning: .../share/classes
Package: java.lang.reflect

The "Package" part is usually fine. But too much
is truncated from the "Scanning" part; it is often
ambiguous. Rather than truncating a fixed number
of path components and showing it in the same
JLabel, it would be better to arrange the dialog
properly in a grid with labels and fields:

+----------------------------------------------+
|                                              |
| Scanning: [...142src/j2se/src/share/classes] |
| Package:  [java.lang.reflect_______________] |
|                                              |
+----------------------------------------------+

where you set the caret in the JTextField to the
end to display as much detail as possible. This
tends to show more useful detail - for example,
the fact that I am scanning JDK 1.4.2 sources in
this example - and make it possible to see very
long paths by just resizing the dialog.

Also a standard label/field arrangement using
labelFor is probably more accessible.

BTW please also use FileUtil.getFileDisplayName
which is intended for exactly this kind of situation.
Comment 1 Jan Lahoda 2006-12-18 14:25:24 UTC
This issue seems obsolete to me. Please feel free to reopen.
Comment 2 Jesse Glick 2006-12-18 21:35:09 UTC
Only applies to a dialog which was removed I think in 4.1.
Comment 3 Quality Engineering 2007-09-20 10:21:29 UTC
Reorganization of java component