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 51733 - Split add JAR/folder into two separate buttons
Summary: Split add JAR/folder into two separate buttons
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker with 3 votes (vote)
Assignee: Tomas Zezula
Keywords: UI
Depends on:
Reported: 2004-11-22 21:38 UTC by _ gtzabari
Modified: 2013-09-04 13:46 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2004-11-22 21:38:19 UTC
dev build 200411211900
JDK 1.5

There is a *very* annoying usability problem with
the "add jar/folder" button in the library
manager. Because you allow the selection of
directories, it is impossible to enter:
"c:\program files<enter>" in order to quickly
navigate to that directory in order to choose a
JAR file. By splitting up the button into two
separate options, you can have the JAR chooser
expect only files (not directories) and this will
allow better keyboard navigation. Currently it is
an absolute nightmare to enter JAR paths using the
file-chooser. Using the mouse is too slow.
Comment 1 Petr Hrebejk 2004-11-23 11:52:30 UTC
Jano? Maybe something to consider during the design of ui redesign.
However it would be just a workaround for the bad usability of
Comment 2 Jesse Glick 2004-12-01 18:43:05 UTC
Probably WONTFIX, though we are continuing to push on the Swing team
to produce a better UI for JFileChooser which would actually work for
directory selection mode.
Comment 3 _ gtzabari 2004-12-01 19:31:35 UTC

I specifically remember filing a bug against the JDK for this issue
and they told me that as far as they are concerned there is no such
problem/bug because if your JFileChooser allows the input of
directories then the current behavior is "correct". As such, are we
really sure they are aware we are pushing for this? I expect that even
if JFileChooser allows the input of directories I have to explicitly
hit "open" for the JFileChooser to close -- as opposed to the current
behavior where entering the path in the text field and pressing enter
closes the JFileChooser immediately. The required change is: hitting
enter in the text field does not close the JFileChooser.
Comment 4 locked 2009-03-23 09:03:55 UTC
Once in a while (or even more often), there is a type of question on the nb users mailinglist when people report the
"bug" that "add jar/folder" doesn't work when they're adding a folder full of jars.
The IDE reacts correctly and puts the folder on the classpath (NOT the jars within the folder) - but users expect that
the jars are added to the classpath (as the button also says "add jar/folder").

I'd propose to either add jars in a folder automatically to the classpath (and do what a user would expect) OR split the
button into "add jar" and "add folder". I think that'd be much more obvious.