List of usage examples for com.jgoodies.forms.factories CC xyw
public static CellConstraints xyw(int col, int row, int colSpan, Alignment colAlign, Alignment rowAlign)
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)); }