SourceForge.net Logo

TextArea

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.attachToComponent(LEFT, FIXED, 10, button_1, RIGHT);
    cts.attachToComponent(BOTTOM, FIXED, 10, button_yes, TOP);
    cts.attachToBorder(RIGHT, FIXED, 5);

    cts.setPreferredWidth(145);
    cts.setPreferredHeight(50);

    panel.add(textarea, cts);