use of org.compiere.swing.CLabel in project adempiere by adempiere.
the class CAbstractBOMTree method jbInit.
private void jbInit() {
CLabel label = null;
if (BOMWrapper.BOM_TYPE_PRODUCT.equals(type())) {
label = new CLabel(Msg.translate(Env.getCtx(), MProduct.Table_Name + "_ID"));
} else if (BOMWrapper.BOM_TYPE_ORDER.equals(type())) {
label = new CLabel(Msg.translate(Env.getCtx(), MPPOrder.Table_Name + "_ID"));
}
label.setLabelFor(lookup);
northPanel.setLayout(new FlowLayout(FlowLayout.LEFT));
northPanel.add(label, null);
northPanel.add(lookup, null);
southPanel.setLayout(new BorderLayout());
JScrollPane sp = new JScrollPane(nodeDescription);
sp.setBorder(null);
contentPane.add(sp, JSplitPane.RIGHT);
this.setLayout(new BorderLayout());
this.setPreferredSize(new Dimension(1000, 600));
this.add(northPanel, BorderLayout.NORTH);
this.add(contentPane, BorderLayout.CENTER);
this.add(southPanel, BorderLayout.SOUTH);
}
Aggregations