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 194927 - Matisse: JScrollPane border can't be removed when containing JTable
Summary: Matisse: JScrollPane border can't be removed when containing JTable
Status: RESOLVED DUPLICATE of bug 190167
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-31 20:57 UTC by tlazaro
Modified: 2011-11-04 09:07 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 tlazaro 2011-01-31 20:57:12 UTC
There is a really old known "bug" in Java http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4143601 where a JTable inside a JScrollPane shows border even if "setBorder(null)" or "setViewportBorder(null)".

When chosing "No Border" from the matisse editor, code is autogenerated with a null border. It would be best if it created instead a "new javax.swing.EmptyBorder(0,0,0,0)" which will always work and produce the desired results. A single EmptyBorder instance could be shared among all components.
Comment 1 Jan Stola 2011-11-04 09:07:53 UTC

*** This bug has been marked as a duplicate of bug 190167 ***