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 157626 - setting focus on "elements" text field in jTable Binding panel causes loss of Binding configuration
Summary: setting focus on "elements" text field in jTable Binding panel causes loss of...
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Binding (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-29 16:43 UTC by rcushman
Modified: 2009-05-25 20:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rcushman 2009-01-29 16:43:01 UTC
Setting focus on "elements" text field in jTable Binding panel causes loss of Binding configuration information.

Erasure of configuration information should not occur simply from setting focus on this field.  Configuration
information should be erased only if the value of this field is changed manually.

To reproduce:
- follow initial instructions from tutorial:
  http://www.netbeans.org/kb/docs/java/gui-db-custom.html
  o Setting Up the Database
  o Creating the Application Skeleton
- run program
  o click New button under first table
  o set focus to left-hand column in first table (should be First Name)
  o type "first"; press tab
  o click New button under second table
  o set focus to left-hand column in second table (should be Order Date)
  o type "Jan 30, 2009"; press tab
  o type "1"; press tab
  o type "1"; press tab
  o click "Save"
  o exit program
- go to CustomerRecordsView.java design view
- select detailTable
- view Bindings pane
- set focus to the "elements" text field (not the button)
- tab out of the "elements" text field
- run program
  o set focus to row in first table
  o observe that the second table is not populated with column headers
    or data entered into table
  o exit program
- go to CustomerRecordsView.java design view
- select detailTable
- view Bindings pane
- click the "elements" button
- observe that the Selected box contains no DB table columns
- Select orderDate, productId, quantity
- go to advanced tab
- check "Unreadable Source Value"; verify custom property code is:
  "java.util.Collections.emptyList()"
- close dialog
- run program
  o set focus to row in first table
  o observe that the second table is once again populated with column headers
    and data entered into table
Comment 1 Jan Stola 2009-04-15 15:24:54 UTC
Reproducible.