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.
package org.netbeans.api.visual.border;
import org.netbeans.modules.visual.border.ResizeBorder;
import org.netbeans.modules.visual.border.SwingBorder;
/**
* This class contains support method for working with borders.
*/
public static boolean isOuterResizeBorder (Border border) {
return border instanceof ResizeBorder && ((ResizeBorder) border).isOuter ();
}
* Returns a swing border of a border created using BorderFactory.createSwingBorder or Widget.setBorder(javax.swing.border.Border).
* @param border the widget border
* @return Swing border if possible; otherwise null
public static javax.swing.border.Border getSwingBorder (Border border) {
return border instanceof SwingBorder ? ((SwingBorder) border).getSwingBorder () : null;
public boolean isOpaque () {
return false;
public javax.swing.border.Border getSwingBorder () {
return swingBorder;