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 235927 - The DB Insert window cannot Scroll horizontally
Summary: The DB Insert window cannot Scroll horizontally
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 8.0
Hardware: PC Windows 8 x64
: P4 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords: PATCH_AVAILABLE
Depends on:
Blocks:
 
Reported: 2013-09-13 10:23 UTC by _ supunliyanage
Modified: 2013-12-03 13:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (27.13 KB, image/png)
2013-09-13 10:23 UTC, _ supunliyanage
Details
proposed patch v1 (2.28 KB, patch)
2013-09-13 12:40 UTC, matthias42
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description _ supunliyanage 2013-09-13 10:23:21 UTC
Created attachment 140031 [details]
Screenshot

When the DB field count is higher we can't scroll the Insert row DataSet Horizontally,

See attached
Comment 1 matthias42 2013-09-13 12:40:49 UTC
Created attachment 140048 [details]
proposed patch v1

There are two problems:

a) In a basic ResultSetJXTable usage the setHorizontalScrollEnabled(true) was overriden by the following setAutoResizeMode(JXTable.AUTO_RESIZE_OFF) - the latter call reset horizontal scrolling to be disabled.

=> removed the setAutoResizeMode call and enabled horizontalscrolling

b) In InsertRecordTableUI scrolling is disabled by invoking setAutoResizeMode(JXTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS) in the constructor. The guard, that it happens only for tables with less than 7 columns is broken (at construction time the table model has zero columns)

=> remove the call from the constructor and move it to a setModel override
Comment 2 Libor Fischmeistr 2013-12-03 13:46:10 UTC
Patch applied: http://hg.netbeans.org/core-main/rev/04d979524ef0

Thank you Matthias