Example usage for javax.swing JTextArea JTextArea

List of usage examples for javax.swing JTextArea JTextArea

Introduction

In this page you can find the example usage for javax.swing JTextArea JTextArea.

Prototype

public JTextArea(Document doc) 

Source Link

Document

Constructs a new JTextArea with the given document model, and defaults for all of the other arguments (null, 0, 0).

Usage

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmSwing.CFCrmSwingTenantAskDeleteJPanel.java

public CFCrmSwingTenantAskDeleteJPanel(ICFCrmSwingSchema argSchema, ICFCrmTenantObj argFocus) {
    super();/*from  ww w  .  j a  v  a  2s .c  o m*/
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    swingFocus = argFocus;
    // Construct the various objects
    textAreaMessage = new JTextArea("Are you sure you want to delete this Tenant?");
    actionOk = new ActionOk();
    actionCancel = new ActionCancel();
    buttonOk = new JButton(actionOk);
    buttonCancel = new JButton(actionCancel);
    attrJPanel = argSchema.getTenantFactory().newAttrJPanel(argFocus);
    scrollPane = new CFHSlaveJScrollPane(attrJPanel);
    // Lay out the widgets
    setSize(1024, 480);
    Dimension min = new Dimension(480, 300);
    setMinimumSize(min);
    add(textAreaMessage);
    textAreaMessage.setBounds(0, 0, 1024, 50);
    int xparts = (768 - (2 * 125)) / 3;
    add(buttonOk);
    buttonOk.setBounds(xparts, 55, 125, 40);
    add(buttonCancel);
    buttonCancel.setBounds(xparts + 125 + xparts, 55, 125, 40);
    add(scrollPane);
    scrollPane.setBounds(0, 100, 1024, 480 - 100);
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_1.CFCrmSwing.CFCrmSwingClusterAskDeleteJPanel.java

public CFCrmSwingClusterAskDeleteJPanel(ICFCrmSwingSchema argSchema, ICFCrmClusterObj argFocus) {
    super();/*from  w  w w .  j a va  2  s. c  o  m*/
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    swingFocus = argFocus;
    // Construct the various objects
    textAreaMessage = new JTextArea("Are you sure you want to delete this Cluster?");
    actionOk = new ActionOk();
    actionCancel = new ActionCancel();
    buttonOk = new JButton(actionOk);
    buttonCancel = new JButton(actionCancel);
    attrJPanel = argSchema.getClusterFactory().newAttrJPanel(argFocus);
    scrollPane = new CFHSlaveJScrollPane(attrJPanel);
    // Lay out the widgets
    setSize(1024, 480);
    Dimension min = new Dimension(480, 300);
    setMinimumSize(min);
    add(textAreaMessage);
    textAreaMessage.setBounds(0, 0, 1024, 50);
    int xparts = (768 - (2 * 125)) / 3;
    add(buttonOk);
    buttonOk.setBounds(xparts, 55, 125, 40);
    add(buttonCancel);
    buttonCancel.setBounds(xparts + 125 + xparts, 55, 125, 40);
    add(scrollPane);
    scrollPane.setBounds(0, 100, 1024, 480 - 100);
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmSwing.CFCrmSwingContactAskDeleteJPanel.java

public CFCrmSwingContactAskDeleteJPanel(ICFCrmSwingSchema argSchema, ICFCrmContactObj argFocus) {
    super();//from ww w.  ja  va 2s  . c  o m
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    swingFocus = argFocus;
    // Construct the various objects
    textAreaMessage = new JTextArea("Are you sure you want to delete this Contact?");
    actionOk = new ActionOk();
    actionCancel = new ActionCancel();
    buttonOk = new JButton(actionOk);
    buttonCancel = new JButton(actionCancel);
    attrJPanel = argSchema.getContactFactory().newAttrJPanel(argFocus);
    scrollPane = new CFHSlaveJScrollPane(attrJPanel);
    // Lay out the widgets
    setSize(1024, 480);
    Dimension min = new Dimension(480, 300);
    setMinimumSize(min);
    add(textAreaMessage);
    textAreaMessage.setBounds(0, 0, 1024, 50);
    int xparts = (768 - (2 * 125)) / 3;
    add(buttonOk);
    buttonOk.setBounds(xparts, 55, 125, 40);
    add(buttonCancel);
    buttonCancel.setBounds(xparts + 125 + xparts, 55, 125, 40);
    add(scrollPane);
    scrollPane.setBounds(0, 100, 1024, 480 - 100);
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmSwing.CFCrmSwingMemoTagAskDeleteJPanel.java

public CFCrmSwingMemoTagAskDeleteJPanel(ICFCrmSwingSchema argSchema, ICFCrmMemoTagObj argFocus) {
    super();/*ww  w.j  av a 2  s .c o m*/
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    swingFocus = argFocus;
    // Construct the various objects
    textAreaMessage = new JTextArea("Are you sure you want to delete this Memo Tag?");
    actionOk = new ActionOk();
    actionCancel = new ActionCancel();
    buttonOk = new JButton(actionOk);
    buttonCancel = new JButton(actionCancel);
    attrJPanel = argSchema.getMemoTagFactory().newAttrJPanel(argFocus);
    scrollPane = new CFHSlaveJScrollPane(attrJPanel);
    // Lay out the widgets
    setSize(1024, 480);
    Dimension min = new Dimension(480, 300);
    setMinimumSize(min);
    add(textAreaMessage);
    textAreaMessage.setBounds(0, 0, 1024, 50);
    int xparts = (768 - (2 * 125)) / 3;
    add(buttonOk);
    buttonOk.setBounds(xparts, 55, 125, 40);
    add(buttonCancel);
    buttonCancel.setBounds(xparts + 125 + xparts, 55, 125, 40);
    add(scrollPane);
    scrollPane.setBounds(0, 100, 1024, 480 - 100);
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmSwing.CFCrmSwingSecFormAskDeleteJPanel.java

public CFCrmSwingSecFormAskDeleteJPanel(ICFCrmSwingSchema argSchema, ICFCrmSecFormObj argFocus) {
    super();/*  w  ww  .  j  a va2  s .  c  o  m*/
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    swingFocus = argFocus;
    // Construct the various objects
    textAreaMessage = new JTextArea("Are you sure you want to delete this Security Form?");
    actionOk = new ActionOk();
    actionCancel = new ActionCancel();
    buttonOk = new JButton(actionOk);
    buttonCancel = new JButton(actionCancel);
    attrJPanel = argSchema.getSecFormFactory().newAttrJPanel(argFocus);
    scrollPane = new CFHSlaveJScrollPane(attrJPanel);
    // Lay out the widgets
    setSize(1024, 480);
    Dimension min = new Dimension(480, 300);
    setMinimumSize(min);
    add(textAreaMessage);
    textAreaMessage.setBounds(0, 0, 1024, 50);
    int xparts = (768 - (2 * 125)) / 3;
    add(buttonOk);
    buttonOk.setBounds(xparts, 55, 125, 40);
    add(buttonCancel);
    buttonCancel.setBounds(xparts + 125 + xparts, 55, 125, 40);
    add(scrollPane);
    scrollPane.setBounds(0, 100, 1024, 480 - 100);
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmSwing.CFCrmSwingSecUserAskDeleteJPanel.java

public CFCrmSwingSecUserAskDeleteJPanel(ICFCrmSwingSchema argSchema, ICFCrmSecUserObj argFocus) {
    super();//from  ww w. j a v  a  2 s. c  om
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    swingFocus = argFocus;
    // Construct the various objects
    textAreaMessage = new JTextArea("Are you sure you want to delete this Security User?");
    actionOk = new ActionOk();
    actionCancel = new ActionCancel();
    buttonOk = new JButton(actionOk);
    buttonCancel = new JButton(actionCancel);
    attrJPanel = argSchema.getSecUserFactory().newAttrJPanel(argFocus);
    scrollPane = new CFHSlaveJScrollPane(attrJPanel);
    // Lay out the widgets
    setSize(1024, 480);
    Dimension min = new Dimension(480, 300);
    setMinimumSize(min);
    add(textAreaMessage);
    textAreaMessage.setBounds(0, 0, 1024, 50);
    int xparts = (768 - (2 * 125)) / 3;
    add(buttonOk);
    buttonOk.setBounds(xparts, 55, 125, 40);
    add(buttonCancel);
    buttonCancel.setBounds(xparts + 125 + xparts, 55, 125, 40);
    add(scrollPane);
    scrollPane.setBounds(0, 100, 1024, 480 - 100);
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmSwing.CFCrmSwingServiceAskDeleteJPanel.java

public CFCrmSwingServiceAskDeleteJPanel(ICFCrmSwingSchema argSchema, ICFCrmServiceObj argFocus) {
    super();/*from  w ww.j av a  2 s . c  om*/
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    swingFocus = argFocus;
    // Construct the various objects
    textAreaMessage = new JTextArea("Are you sure you want to delete this Service?");
    actionOk = new ActionOk();
    actionCancel = new ActionCancel();
    buttonOk = new JButton(actionOk);
    buttonCancel = new JButton(actionCancel);
    attrJPanel = argSchema.getServiceFactory().newAttrJPanel(argFocus);
    scrollPane = new CFHSlaveJScrollPane(attrJPanel);
    // Lay out the widgets
    setSize(1024, 480);
    Dimension min = new Dimension(480, 300);
    setMinimumSize(min);
    add(textAreaMessage);
    textAreaMessage.setBounds(0, 0, 1024, 50);
    int xparts = (768 - (2 * 125)) / 3;
    add(buttonOk);
    buttonOk.setBounds(xparts, 55, 125, 40);
    add(buttonCancel);
    buttonCancel.setBounds(xparts + 125 + xparts, 55, 125, 40);
    add(scrollPane);
    scrollPane.setBounds(0, 100, 1024, 480 - 100);
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmSwing.CFCrmSwingVersionAskDeleteJPanel.java

public CFCrmSwingVersionAskDeleteJPanel(ICFCrmSwingSchema argSchema, ICFCrmVersionObj argFocus) {
    super();//from   w w  w. jav a  2 s .co  m
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    swingFocus = argFocus;
    // Construct the various objects
    textAreaMessage = new JTextArea("Are you sure you want to delete this Version?");
    actionOk = new ActionOk();
    actionCancel = new ActionCancel();
    buttonOk = new JButton(actionOk);
    buttonCancel = new JButton(actionCancel);
    attrJPanel = argSchema.getVersionFactory().newAttrJPanel(argFocus);
    scrollPane = new CFHSlaveJScrollPane(attrJPanel);
    // Lay out the widgets
    setSize(1024, 480);
    Dimension min = new Dimension(480, 300);
    setMinimumSize(min);
    add(textAreaMessage);
    textAreaMessage.setBounds(0, 0, 1024, 50);
    int xparts = (768 - (2 * 125)) / 3;
    add(buttonOk);
    buttonOk.setBounds(xparts, 55, 125, 40);
    add(buttonCancel);
    buttonCancel.setBounds(xparts + 125 + xparts, 55, 125, 40);
    add(scrollPane);
    scrollPane.setBounds(0, 100, 1024, 480 - 100);
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmSwing.CFCrmSwingHostNodeAskDeleteJPanel.java

public CFCrmSwingHostNodeAskDeleteJPanel(ICFCrmSwingSchema argSchema, ICFCrmHostNodeObj argFocus) {
    super();//from  ww w.  j ava 2s.  c o  m
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    swingFocus = argFocus;
    // Construct the various objects
    textAreaMessage = new JTextArea("Are you sure you want to delete this Host Node?");
    actionOk = new ActionOk();
    actionCancel = new ActionCancel();
    buttonOk = new JButton(actionOk);
    buttonCancel = new JButton(actionCancel);
    attrJPanel = argSchema.getHostNodeFactory().newAttrJPanel(argFocus);
    scrollPane = new CFHSlaveJScrollPane(attrJPanel);
    // Lay out the widgets
    setSize(1024, 480);
    Dimension min = new Dimension(480, 300);
    setMinimumSize(min);
    add(textAreaMessage);
    textAreaMessage.setBounds(0, 0, 1024, 50);
    int xparts = (768 - (2 * 125)) / 3;
    add(buttonOk);
    buttonOk.setBounds(xparts, 55, 125, 40);
    add(buttonCancel);
    buttonCancel.setBounds(xparts + 125 + xparts, 55, 125, 40);
    add(scrollPane);
    scrollPane.setBounds(0, 100, 1024, 480 - 100);
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmSwing.CFCrmSwingMimeTypeAskDeleteJPanel.java

public CFCrmSwingMimeTypeAskDeleteJPanel(ICFCrmSwingSchema argSchema, ICFCrmMimeTypeObj argFocus) {
    super();/*  w w  w .j  a  v  a2  s .co  m*/
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    swingFocus = argFocus;
    // Construct the various objects
    textAreaMessage = new JTextArea("Are you sure you want to delete this MIME Type?");
    actionOk = new ActionOk();
    actionCancel = new ActionCancel();
    buttonOk = new JButton(actionOk);
    buttonCancel = new JButton(actionCancel);
    attrJPanel = argSchema.getMimeTypeFactory().newAttrJPanel(argFocus);
    scrollPane = new CFHSlaveJScrollPane(attrJPanel);
    // Lay out the widgets
    setSize(1024, 480);
    Dimension min = new Dimension(480, 300);
    setMinimumSize(min);
    add(textAreaMessage);
    textAreaMessage.setBounds(0, 0, 1024, 50);
    int xparts = (768 - (2 * 125)) / 3;
    add(buttonOk);
    buttonOk.setBounds(xparts, 55, 125, 40);
    add(buttonCancel);
    buttonCancel.setBounds(xparts + 125 + xparts, 55, 125, 40);
    add(scrollPane);
    scrollPane.setBounds(0, 100, 1024, 480 - 100);
}