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.CFCrmSwingPhoneTagAskDeleteJPanel.java

public CFCrmSwingPhoneTagAskDeleteJPanel(ICFCrmSwingSchema argSchema, ICFCrmPhoneTagObj argFocus) {
    super();/*from ww  w.  ja v  a 2s  . com*/
    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 Phone Tag?");
    actionOk = new ActionOk();
    actionCancel = new ActionCancel();
    buttonOk = new JButton(actionOk);
    buttonCancel = new JButton(actionCancel);
    attrJPanel = argSchema.getPhoneTagFactory().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.CFCrmSwingSecGroupAskDeleteJPanel.java

public CFCrmSwingSecGroupAskDeleteJPanel(ICFCrmSwingSchema argSchema, ICFCrmSecGroupObj argFocus) {
    super();/* w ww . java 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 Security Group?");
    actionOk = new ActionOk();
    actionCancel = new ActionCancel();
    buttonOk = new JButton(actionOk);
    buttonCancel = new JButton(actionCancel);
    attrJPanel = argSchema.getSecGroupFactory().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.CFCrmSwingTopDomainAskDeleteJPanel.java

public CFCrmSwingTopDomainAskDeleteJPanel(ICFCrmSwingSchema argSchema, ICFCrmTopDomainObj argFocus) {
    super();//w w  w  .j av  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 TopDomain?");
    actionOk = new ActionOk();
    actionCancel = new ActionCancel();
    buttonOk = new JButton(actionOk);
    buttonCancel = new JButton(actionCancel);
    attrJPanel = argSchema.getTopDomainFactory().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.CFCrmSwingTSecGroupAskDeleteJPanel.java

public CFCrmSwingTSecGroupAskDeleteJPanel(ICFCrmSwingSchema argSchema, ICFCrmTSecGroupObj argFocus) {
    super();/*from   w w w. ja v 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 Tenant Security Group?");
    actionOk = new ActionOk();
    actionCancel = new ActionCancel();
    buttonOk = new JButton(actionOk);
    buttonCancel = new JButton(actionCancel);
    attrJPanel = argSchema.getTSecGroupFactory().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.CFCrmSwingContactURLAskDeleteJPanel.java

public CFCrmSwingContactURLAskDeleteJPanel(ICFCrmSwingSchema argSchema, ICFCrmContactURLObj argFocus) {
    super();/* ww  w.  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 Contact URL?");
    actionOk = new ActionOk();
    actionCancel = new ActionCancel();
    buttonOk = new JButton(actionOk);
    buttonCancel = new JButton(actionCancel);
    attrJPanel = argSchema.getContactURLFactory().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.CFCrmSwingAddressTagAskDeleteJPanel.java

public CFCrmSwingAddressTagAskDeleteJPanel(ICFCrmSwingSchema argSchema, ICFCrmAddressTagObj argFocus) {
    super();/*from  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 Address Tag?");
    actionOk = new ActionOk();
    actionCancel = new ActionCancel();
    buttonOk = new JButton(actionOk);
    buttonCancel = new JButton(actionCancel);
    attrJPanel = argSchema.getAddressTagFactory().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.CFCrmSwingAttachmentAskDeleteJPanel.java

public CFCrmSwingAttachmentAskDeleteJPanel(ICFCrmSwingSchema argSchema, ICFCrmAttachmentObj argFocus) {
    super();/*from ww  w.  j  ava 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 Attachment?");
    actionOk = new ActionOk();
    actionCancel = new ActionCancel();
    buttonOk = new JButton(actionOk);
    buttonCancel = new JButton(actionCancel);
    attrJPanel = argSchema.getAttachmentFactory().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.CFCrmSwingContactTagAskDeleteJPanel.java

public CFCrmSwingContactTagAskDeleteJPanel(ICFCrmSwingSchema argSchema, ICFCrmContactTagObj argFocus) {
    super();//from  ww  w .  j a v  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 Contact Tag?");
    actionOk = new ActionOk();
    actionCancel = new ActionCancel();
    buttonOk = new JButton(actionOk);
    buttonCancel = new JButton(actionCancel);
    attrJPanel = argSchema.getContactTagFactory().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.CFCrmSwingDomainBaseAskDeleteJPanel.java

public CFCrmSwingDomainBaseAskDeleteJPanel(ICFCrmSwingSchema argSchema, ICFCrmDomainBaseObj argFocus) {
    super();//ww w . j  av 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 DomainBase?");
    actionOk = new ActionOk();
    actionCancel = new ActionCancel();
    buttonOk = new JButton(actionOk);
    buttonCancel = new JButton(actionCancel);
    attrJPanel = argSchema.getDomainBaseFactory().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.CFCrmSwingISOCountryAskDeleteJPanel.java

public CFCrmSwingISOCountryAskDeleteJPanel(ICFCrmSwingSchema argSchema, ICFCrmISOCountryObj argFocus) {
    super();/*from  www .  j a  v 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 ISO Country?");
    actionOk = new ActionOk();
    actionCancel = new ActionCancel();
    buttonOk = new JButton(actionOk);
    buttonCancel = new JButton(actionCancel);
    attrJPanel = argSchema.getISOCountryFactory().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);
}