Example usage for com.jgoodies.forms.factories CC xyw

List of usage examples for com.jgoodies.forms.factories CC xyw

Introduction

In this page you can find the example usage for com.jgoodies.forms.factories CC xyw.

Prototype

public static CellConstraints xyw(int col, int row, int colSpan, Alignment colAlign, Alignment rowAlign) 

Source Link

Document

Sets the column, row, width, and height; sets the horizontal and vertical alignment using the specified alignment objects.

Usage

From source file:op.care.nursingprocess.DlgNursingProcess.java

License:Open Source License

private void initDialog() {
    cmbKategorie.setModel(new DefaultComboBoxModel(ResInfoCategoryTools.getAll4NP().toArray()));

    lblTopic.setText(SYSTools.xx("nursingrecords.nursingprocess.dlgplanung.lblTopic"));
    lblCat.setText(SYSTools.xx("nursingrecords.nursingprocess.dlgplanung.lblCat"));
    lblSituation.setText(SYSTools.xx("nursingrecords.nursingprocess.dlgplanung.lblSituation"));
    lblGoal.setText(SYSTools.xx("nursingrecords.nursingprocess.dlgplanung.lblGoal"));
    //        lblFlag.setText(SYSTools.xx("nursingrecords.nursingprocess.dlgplanung.lblFlag"));
    lblFirstRevision.setText(SYSTools.xx("nursingrecords.nursingprocess.dlgplanung.lblFirstRevision"));

    btnPopoutSituation.setToolTipText(SYSTools.xx("misc.msg.presshere.for.larger.window"));
    btnPopoutGoal.setToolTipText(SYSTools.xx("misc.msg.presshere.for.larger.window"));

    txtStichwort.setText(nursingProcess.getTopic());
    txtSituation.setText(nursingProcess.getSituation());
    txtZiele.setText(nursingProcess.getGoal());
    jdcKontrolle.setDate(nursingProcess.getNextEval());
    jdcKontrolle.setMinSelectableDate(new Date());
    cmbKategorie.setSelectedItem(nursingProcess.getCategory());
    reloadInterventions();/*from w w w. j  a  v a 2 s  .  c  o m*/

    pnlCommonTags = new PnlCommonTags(nursingProcess.getCommontags(), true, 3);
    jPanel5.add(new JScrollPane(pnlCommonTags), CC.xyw(1, 9, 3, CC.DEFAULT, CC.FILL));

    String mode = "new";
    if (nursingProcess.getID() != 0) {
        mode = "edit";
    } else if (nursingProcess.getID() == 0 && nursingProcess.getNPSeries() > -1) {
        mode = "change";
    } else if (nursingProcess.getID() == 0 && nursingProcess.getNPSeries() == -2) {
        mode = "template";
    }
    OPDE.getDisplayManager().addSubMessage(new DisplayMessage(
            SYSTools.xx("nursingrecords.nursingprocess.dlgplanung." + mode), OPDE.START_OF_MODULE_TIME));
}