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 - Should use text fields to display variable-length paths
Summary: Should use text fields to display variable-length paths
Status: VERIFIED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-20 22:21 UTC by Jesse Glick
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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