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 88175 - No horizontal scroll bar for the J2SE project types project properties->Sources->Source Packages and Test Packages content JTables
Summary: No horizontal scroll bar for the J2SE project types project properties->Sourc...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-28 04:42 UTC by _ wadechandler
Modified: 2007-06-07 12:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch for java/j2se projects which fixes the UI and allows the columns to be resized (2.18 KB, text/plain)
2007-01-07 22:35 UTC, _ wadechandler
Details
Screenshot (42.36 KB, image/jpeg)
2007-04-19 12:57 UTC, Tomas Zezula
Details
Original diff fileupdated for current NB 6.0 (2.42 KB, patch)
2007-04-19 13:05 UTC, Tomas Zezula
Details | Diff
Latest patch for allowing source folders to be resized when they contain long paths so the user can see them. (3.72 KB, text/plain)
2007-06-02 21:48 UTC, _ wadechandler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ wadechandler 2006-10-28 04:42:43 UTC
Currently there is no horizontal scroll bar for the J2SE project types project
properties->Sources->Source Packages and Test Packages content JTables.  This
makes it hard to see and use when you have long paths or names.  One has to
resize the entire dialog instead of being able to resize the "Package Folder"
column.  See the WAR  projects Libraries Panel/Compile Tab/Name Column (Project
(right click)->properties->libraries) for the way it should work.  If you resize
the name column a horizontal scrollbar appears allowing one to resize the column
far enough to see all the contents name.
Comment 1 _ wadechandler 2007-01-07 22:29:30 UTC
Submitting a patch to fix the UI.  It allows the columns mentioned to be resized
for long paths.
Comment 2 _ wadechandler 2007-01-07 22:35:51 UTC
Created attachment 37123 [details]
Patch for java/j2se projects which fixes the UI and allows the columns to be resized
Comment 3 _ wadechandler 2007-04-18 22:21:04 UTC
Tomas, has this patch been applied to the j2seproject in the trunk yet?  If not
do you see any problems with it?  If not if you can get me CVS checkin access to
the project I can update my trunk, apply and test the patch, then check it in. 
I currently have CVS write access for core, form, and openide.  Let me know what
you would like to do. Thanks.
Comment 4 Tomas Zezula 2007-04-19 08:21:48 UTC
There is no problem with the patch, I forgot about it, sorry for it I am very
busy with the new java infrastructure. I will integrate the patch today. If you
want the CVS access to java/* modules please request a developer role on java
module, I don't have rights to give you the write access to java/*.
Comment 5 Tomas Zezula 2007-04-19 12:56:02 UTC
I've tried the patch on the JDK 1.6.0-b105 but it behaves strange, see the
attached picture.
Comment 6 Tomas Zezula 2007-04-19 12:57:05 UTC
Created attachment 41242 [details]
Screenshot
Comment 7 Tomas Zezula 2007-04-19 13:05:58 UTC
Created attachment 41243 [details]
Original diff fileupdated for current NB 6.0
Comment 8 _ wadechandler 2007-04-19 20:27:53 UTC
I think I need to calculate the table width and set the columns sizes
accordingly.  This seems to be the issue I think.  I'll try to get it right in
the next couple days.  Thanks.
Comment 9 _ wadechandler 2007-06-01 21:26:46 UTC
Completely forgot about this. Doing it now.
Comment 10 _ wadechandler 2007-06-02 21:46:37 UTC
OK Tomas, I finally got this working right I believe. The patch I'll attach
after this comment is against the latest daily code. I just did an update then
put my code back in once I had it work correctly. I attach a ComponentAdapter to
the panel to set the column sizes when the dialog is maximized. The JTable will
not let the user resize the columns unless auto resize is completely off. What I
have seems to work well. Please let me know what you think. Basically the user
can make the columns shorter than the form, but at least they would know they
did it. When they reopen the dialog the sizes auto-reset to fill in the table
area. When you get the patch applied and tested we should be able to mark it as
fixed. I don't think I'm a developer on the j2seproject type...haven't checked
anyways, so I didn't commit anything.  Patch will be attached now.
Comment 11 _ wadechandler 2007-06-02 21:48:39 UTC
Created attachment 43152 [details]
Latest patch for allowing source folders to be resized when they contain long paths so the user can see them.
Comment 12 Tomas Zezula 2007-06-04 18:01:18 UTC
OK, thanks. I will look at it tomorrow.
Comment 13 Tomas Zezula 2007-06-07 12:29:53 UTC
Checking in
src/org/netbeans/modules/java/j2seproject/ui/customizer/CustomizerSources.java;
/cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/CustomizerSources.java,v
 <--  CustomizerSources.java
new revision: 1.17; previous revision: 1.16
done