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 61681 - [LWMP] multiple libraries -> use JList
Summary: [LWMP] multiple libraries -> use JList
Status: NEW
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker with 5 votes (vote)
Assignee: Martin Kozeny
Keywords: UI
: 63589 (view as bug list)
Depends on:
Reported: 2005-08-02 16:37 UTC by pzajac
Modified: 2013-02-14 13:17 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 pzajac 2005-08-02 16:37:25 UTC
The first panel of Library Wrapper Module Project Wizard uses JTextField for
multiple files of libraries. There should be better to use JList for this purpose. 
Libraries: -------------------------------
           | jar1                         | Add Button
           | jar2                         | Remove button  
           |                              |
Comment 1 Jesse Glick 2005-08-02 19:26:22 UTC
Perhaps. However the wizard does not encourage multiple JAR selections anyway;
it is usually not the best approach. Leaving TBD.
Comment 2 pzajac 2005-08-03 14:52:27 UTC
UI specs tells:
Library holds the path to a JAR file which the user can select with Browse…
(filter: *.jar,*.zip). Multiple JARs may also be selected.

A error message:
At least one library.jar needs to be specied. 

Ok we don't need to implement it. So don't allow multiple jar support. 
Comment 3 Jesse Glick 2005-08-03 20:37:33 UTC
In the current spec (and I hope impl), it's *possible* to have a multiselection,
but it's not intended to be the common case.
Comment 4 Jesse Glick 2005-09-02 19:17:36 UTC
*** Issue 63589 has been marked as a duplicate of this issue. ***
Comment 5 _ sandipchitale 2006-02-03 15:25:17 UTC
RE: "it's *possible* to have a multiselection".

1. If JARs are in differrent folder multi selection is not possible in the 
file chooser.

2. It is not obvious that the set of JAR file paths can be typed in the 
Libraries text field. The paths should be separated using char.

IMHO if it is possible but dicouraged then support the requested UI but have a 
warning and/or info label. Also a dialog could be shown which tells the 
reasons why this practice of multiple jars in a single LWMP is discouraged 
with instructions/links to instructions of better approach. The dialog could 
have a check box - "Don't show this message again".
Comment 6 _ wadechandler 2007-02-12 04:06:35 UTC
It really does not seem logical to not allow multiple jars and discourage it in
all situations.  By that I mean, in many applications the developer may want to
select all jars and simple dependencies as one library.  Hibernate for instance
or something like it...pick any library.  The point being not all development
will be done to support the IDE or for "everyone" to use as a plug-in/module, so
anything to make building simple applications easier and faster with the
platform needs to be looked at.  If we want to have more users and an easier
entry point for new users then we really should focus on little issues as this.
 On the screen where the library selections occur we can add a very visible text
pane with the message about why this is discouraged in most cases, and explain
the point of having multiple versions of libraries etc.  At least this way
supports all use cases instead of a more narrowed view.
Comment 7 thoku 2007-02-12 13:28:28 UTC
Often jars *need* to be grouped and treated as a single logical unit and it doesn't make sense to split 
them up (Wade mentions Hibernate which is a good example). If people take this one-jar-per-wrapper 
dogma too far, it increases the frustration of managing inter-dependencies between library wrapper 
@jglick and @sandipchitale, its important to take a step back and consider what a turn-off Library Wrapper 
Modules are for newcomers to NetBeans module/platform development. This one-jar-per-wrapper hang-
up is a symptom of the NetBeans developer fraternity ignoring usability and adoption concerns. Please see 
my Feb 11 '07 email to titled "Library Wrapper Modules: A major obstacle for