[Bug 235927] The DB Insert window cannot Scroll horizontally

  • From:
  • To:
  • Subject: [Bug 235927] The DB Insert window cannot Scroll horizontally
  • Date: Fri, 13 Sep 2013 12:40:49 +0000
  • Auto-submitted: auto-generated

https://netbeans.org/bugzilla/show_bug.cgi?id=235927

--- Comment #1 from 

 ---
Created attachment 140048
  --> https://netbeans.org/bugzilla/attachment.cgi?id=140048&action=edit
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

-- 
You are receiving this mail because:
You are the QA Contact for the bug.


[Bug 235927] New: The DB Insert window cannot Scroll horizontally

supunliyanage 09/13/2013

[Bug 235927] The DB Insert window cannot Scroll horizontally

matthias42 09/13/2013

Project Features

About this Project

DB was started in November 2009, is owned by Antonin Nebuzelsky, and has 113 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close