SourceForge.net Logo

Title

Click on any component (labels, buttons, text area) to see its layout code. A complete source code overview is available as well.


    cts.attachToBorder(TOP, FIXED, 5);
    cts.attachNone(BOTTOM);

    //Title and Labels 1 to 3 are added to column_1 which is defined as follows:
    //  cts.attachToBorder(LEFT, FIXED, 5);
    //  cts.attachToBorder(RIGHT, ELASTIC, 120);
    //  attachLayout.defineColumn("column_1", cts);
    cts.addToColumn("column_1", FIXED, 0, ELASTIC, 0);

    panel.add(title, cts);