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.
Summary: | Fields are not always marked as green if they are edited | ||
---|---|---|---|
Product: | db | Reporter: | medeag |
Component: | Show Data | Assignee: | Jaroslav Havlin <jhavlin> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | JPESKA |
Priority: | P3 | Keywords: | NETFIX |
Version: | 7.3 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | potential patch v1 |
Description
medeag
2012-11-04 11:55:01 UTC
Created attachment 127087 [details]
potential patch v1
Attached is a potential(!) fix. I fixed this by special casing the CheckBox case and putting then a frame around the whole cell with the right color. It's not perfect, but should work.
This would also work for other special cell renderers, that don't reflect the change in the foreground color done in UpdatedResultSetCellRenderer.
The alternative for the checkbox case (manipulating the checkbox display itself) seems to be to troublesome to consider - this would case problems with LAF specific behaviours later on.
Integrated as http://hg.netbeans.org/core-main/rev/953ae2376417. > Attached is a potential(!) fix. I fixed this by special casing the CheckBox > case and putting then a frame around the whole cell with the right color. It's > not perfect, but should work. I think that this solution is quite fine. If there are any complaints, we can change it later. > The alternative for the checkbox case (manipulating the checkbox display > itself) seems to be to troublesome to consider - this would case problems with > LAF specific behaviours later on. I agree. Many thanks to Matthias for providing the fix, and to Honza for help with evaluation. Integrated into 'main-golden', will be available in build *201211070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/953ae2376417 User: Jaroslav Havlin <jhavlin@netbeans.org> Log: #221428: Fields are not always marked as green if they are edited |