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.
For now when a border has non-rectangular shape, then the border usually has to paint even the background of the widget, otherwise it is dificul to implement the separation. Therefore introduce a method on Border interface which will resolve/define a shape for a assigned widget. This way the widget can use the shape (from Border) for clipping the painting of background, graphic and child widgets, ...