Java Code Examples for org.netbeans.api.visual.border.BorderFactory#createEmptyBorder()

The following examples show how to use org.netbeans.api.visual.border.BorderFactory#createEmptyBorder() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Widget.java    From netbeans with Apache License 2.0 5 votes vote down vote up
/**
 * Creates a new widget which will be used in a specified scene.
 * @param scene the scene where the widget is going to be used
 */
public Widget (Scene scene) {
    if (scene == null)
        scene = (Scene) this;
    this.scene = scene;
    children = new ArrayList<Widget> ();
    childrenUm = Collections.unmodifiableList (children);

    actionsChain = new WidgetAction.Chain ();

    opaque = false;
    font = null;
    background = (new DefaultLookFeel()).getBackground();//Color.WHITE;
    foreground = (new DefaultLookFeel()).getForeground();//Color.BLACK;
    border = BorderFactory.createEmptyBorder ();
    layout = LayoutFactory.createAbsoluteLayout ();
    preferredLocation = null;
    preferredBounds = null;
    checkClipping = false;
    enabled = true;

    location = new Point ();
    bounds = null;
    calculatedPreferredBounds = null;
    requiresFullValidation = true;
    requiresPartValidation = true;
}
 
Example 2
Source File: DB_VMDGraph.java    From BART with MIT License 5 votes vote down vote up
public DB_VMDGraph(IDatabase db,String topCompName) {
    scene = new VMDGraphScene();
    this.db=db;
    this.topCompName = topCompName;
    highlighterErrorBorderAttr = BorderFactory.createLineBorder(3, Color.MAGENTA);
    emptyBorder = BorderFactory.createEmptyBorder();
    graphLayout = new GridGraphLayout<String, String> ();
    sceneGraphLayout = LayoutFactory.createSceneGraphLayout(scene, graphLayout);
    createTables();
    createEdges();
}