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

Summary: Matisse: JScrollPane border can't be removed when containing JTable
Product: guibuilder Reporter: tlazaro
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows Vista   
Issue Type: DEFECT Exception Reporter:

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 ***