use of org.compiere.swing.CPanel in project adempiere by adempiere.
the class CAbstractBOMTree method preInit.
private void preInit() {
northPanel = new CPanel();
southPanel = new CPanel();
contentPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
nodeDescription = new JEditorPane("text/html", "");
nodeDescription.setOpaque(false);
nodeDescription.setEditable(false);
String columnName = null;
int columnId = -1;
if (BOMWrapper.BOM_TYPE_PRODUCT.equals(type())) {
columnName = MProduct.Table_Name + "_ID";
columnId = MColumn.getColumn_ID(MProduct.Table_Name, columnName);
} else if (BOMWrapper.BOM_TYPE_ORDER.equals(type())) {
columnName = MPPOrder.Table_Name + "_ID";
columnId = MColumn.getColumn_ID(MPPOrder.Table_Name, columnName);
}
MLookup lm = MLookupFactory.get(Env.getCtx(), getWindowNo(), 0, columnId, DisplayType.Search);
lookup = new VLookup(columnName, false, false, true, lm) {
public void setValue(Object obj) {
super.setValue(obj);
dispatchPropertyChange();
}
;
};
}
use of org.compiere.swing.CPanel in project adempiere by adempiere.
the class VCreateFromStatementUI method jbInit.
// dynInit
/**
* Static Init.
* <pre>
* parameterPanel
* parameterBankPanel
* parameterStdPanel
* bPartner/order/invoice/shopment/licator Label/Field
* dataPane
* southPanel
* confirmPanel
* statusBar
* </pre>
* @throws Exception
*/
private void jbInit() throws Exception {
bankAccountLabel.setText(Msg.translate(Env.getCtx(), "C_BankAccount_ID"));
authorizationLabel.setText(Msg.translate(Env.getCtx(), "R_AuthCode"));
documentTypeLabel.setText(Msg.translate(Env.getCtx(), "C_DocType_ID"));
tenderTypeLabel.setText(Msg.translate(Env.getCtx(), "TenderType"));
documentNoLabel.setLabelFor(documentNoField);
dateFromLabel.setLabelFor(dateFromField);
dateFromField.setToolTipText(Msg.translate(Env.getCtx(), "DateFrom"));
dateToLabel.setLabelFor(dateToField);
dateToField.setToolTipText(Msg.translate(Env.getCtx(), "DateTo"));
amtFromLabel.setLabelFor(amtFromField);
amtFromField.setToolTipText(Msg.translate(Env.getCtx(), "AmtFrom"));
amtToLabel.setLabelFor(amtToField);
amtToField.setToolTipText(Msg.translate(Env.getCtx(), "AmtTo"));
CPanel parameterPanel = v_CreateFromPanel.getParameterPanel();
parameterPanel.setLayout(new BorderLayout());
CPanel parameterBankPanel = new CPanel();
parameterBankPanel.setLayout(new GridBagLayout());
parameterPanel.add(parameterBankPanel, BorderLayout.CENTER);
parameterBankPanel.add(bankAccountLabel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
if (bankAccountField != null)
parameterBankPanel.add(bankAccountField, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
parameterBankPanel.add(documentTypeLabel, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
if (documentTypeField != null)
parameterBankPanel.add(documentTypeField, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
parameterBankPanel.add(tenderTypeLabel, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
if (tenderTypeField != null)
parameterBankPanel.add(tenderTypeField, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
parameterBankPanel.add(BPartner_idLabel, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
parameterBankPanel.add(bPartnerLookup, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
parameterBankPanel.add(documentNoLabel, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
parameterBankPanel.add(documentNoField, new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
parameterBankPanel.add(authorizationLabel, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
parameterBankPanel.add(authorizationField, new GridBagConstraints(3, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
parameterBankPanel.add(amtFromLabel, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
parameterBankPanel.add(amtFromField, new GridBagConstraints(3, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
parameterBankPanel.add(amtToLabel, new GridBagConstraints(4, 2, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
parameterBankPanel.add(amtToField, new GridBagConstraints(5, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
parameterBankPanel.add(dateFromLabel, new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
parameterBankPanel.add(dateFromField, new GridBagConstraints(3, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
parameterBankPanel.add(dateToLabel, new GridBagConstraints(4, 3, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
parameterBankPanel.add(dateToField, new GridBagConstraints(5, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
}
use of org.compiere.swing.CPanel in project adempiere by adempiere.
the class VCreateFromRMAUI method jbInit.
// dynInit
/**
* Static Init.
* <pre>
* parameterPanel
* parameterBankPanel
* parameterStdPanel
* bPartner/order/invoice/shopment/licator Label/Field
* dataPane
* southPanel
* confirmPanel
* statusBar
* </pre>
* @throws Exception
*/
private void jbInit() throws Exception {
bPartnerLabel.setText(Msg.getElement(Env.getCtx(), "C_BPartner_ID"));
// Add to Main Form
v_Container.getContentPane().add(v_CreateFromPanel);
//
CPanel parameterPanel = v_CreateFromPanel.getParameterPanel();
parameterPanel.setLayout(new BorderLayout());
CPanel parameterStdPanel = new CPanel(new GridBagLayout());
parameterPanel.add(parameterStdPanel, BorderLayout.CENTER);
parameterStdPanel.add(bPartnerLabel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
if (bPartnerField != null)
parameterStdPanel.add(bPartnerField, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
}
use of org.compiere.swing.CPanel in project adempiere by adempiere.
the class AcctViewer method jbInit.
/**
* Static Init.
* <pre>
* - mainPanel
* - tabbedPane
* - query
* - result
* - graphPanel
* </pre>
* @throws Exception
*/
private void jbInit() throws Exception {
ImageIcon ii = new ImageIcon(org.compiere.Adempiere.class.getResource("images/InfoAccount16.gif"));
setIconImage(ii.getImage());
//
mainLayout.setHgap(5);
mainLayout.setVgap(5);
mainPanel.setLayout(mainLayout);
selectionPanel.setLayout(selectionLayout);
this.getContentPane().add(mainPanel, BorderLayout.CENTER);
mainPanel.add(tabbedPane, BorderLayout.CENTER);
// Selection
selectionBorder = new TitledBorder(BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140)), Msg.getMsg(Env.getCtx(), "Selection"));
selectionPanel.setBorder(selectionBorder);
lacctSchema.setLabelFor(selAcctSchema);
lacctSchema.setText(Msg.translate(Env.getCtx(), "C_AcctSchema_ID"));
lpostingType.setLabelFor(selPostingType);
lpostingType.setText(Msg.translate(Env.getCtx(), "PostingType"));
selDocument.setText(Msg.getMsg(Env.getCtx(), "SelectDocument"));
selDocument.addActionListener(this);
lOrg.setLabelFor(selOrg);
lOrg.setText(Msg.translate(Env.getCtx(), "AD_Org_ID"));
lAcct.setLabelFor(selAcct);
lAcct.setText(Msg.translate(Env.getCtx(), "Account_ID"));
lDate.setLabelFor(selDateFrom);
lDate.setText(Msg.translate(Env.getCtx(), "DateAcct"));
lsel1.setLabelFor(sel1);
lsel2.setLabelFor(sel2);
lsel3.setLabelFor(sel3);
lsel4.setLabelFor(sel4);
lsel5.setLabelFor(sel5);
lsel6.setLabelFor(sel6);
lsel7.setLabelFor(sel7);
lsel8.setLabelFor(sel8);
// Display
displayBorder = new TitledBorder(BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140)), Msg.getMsg(Env.getCtx(), "Display"));
displayPanel.setBorder(displayBorder);
displayPanel.setLayout(displayLayout);
displayQty.setText(Msg.getMsg(Env.getCtx(), "DisplayQty"));
displaySourceAmt.setText(Msg.getMsg(Env.getCtx(), "DisplaySourceInfo"));
displayDocumentInfo.setText(Msg.getMsg(Env.getCtx(), "DisplayDocumentInfo"));
lSort.setText(Msg.getMsg(Env.getCtx(), "SortBy"));
lGroup.setText(Msg.getMsg(Env.getCtx(), "GroupBy"));
//
displayPanel.add(displaySourceAmt, new GridBagConstraints(0, 1, 2, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
displayPanel.add(displayDocumentInfo, new GridBagConstraints(0, 0, 2, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
displayPanel.add(lSort, new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
displayPanel.add(sortBy1, new GridBagConstraints(0, 5, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 0, 5), 0, 0));
displayPanel.add(sortBy2, new GridBagConstraints(0, 6, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 0, 5), 0, 0));
displayPanel.add(group1, new GridBagConstraints(1, 5, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
displayPanel.add(group2, new GridBagConstraints(1, 6, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
displayPanel.add(lGroup, new GridBagConstraints(1, 4, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
displayPanel.add(displayQty, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
displayPanel.add(sortBy3, new GridBagConstraints(0, 7, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 0, 5), 0, 0));
displayPanel.add(group3, new GridBagConstraints(1, 7, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
displayPanel.add(sortBy4, new GridBagConstraints(0, 8, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
displayPanel.add(group4, new GridBagConstraints(1, 8, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
//
selectionPanel.add(lacctSchema, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
selectionPanel.add(selAcctSchema, new GridBagConstraints(1, 0, 2, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
selectionPanel.add(selDocument, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(10, 5, 10, 5), 0, 0));
selectionPanel.add(selTable, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(10, 5, 10, 5), 0, 0));
selectionPanel.add(selRecord, new GridBagConstraints(2, 1, 2, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(10, 5, 10, 5), 0, 0));
selectionPanel.add(lpostingType, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
selectionPanel.add(selPostingType, new GridBagConstraints(1, 2, 2, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
selectionPanel.add(lDate, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
selectionPanel.add(selDateFrom, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 0, 5), 0, 0));
selectionPanel.add(selDateTo, new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 0, 5), 0, 0));
selectionPanel.add(lOrg, new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 0, 0, 5), 0, 0));
selectionPanel.add(selOrg, new GridBagConstraints(1, 4, 2, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
selectionPanel.add(lAcct, new GridBagConstraints(0, 5, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
selectionPanel.add(selAcct, new GridBagConstraints(1, 5, 2, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
selectionPanel.add(lsel1, new GridBagConstraints(0, 6, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
selectionPanel.add(lsel2, new GridBagConstraints(0, 7, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
selectionPanel.add(lsel3, new GridBagConstraints(0, 8, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
selectionPanel.add(sel1, new GridBagConstraints(1, 6, 2, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
selectionPanel.add(sel2, new GridBagConstraints(1, 7, 2, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
selectionPanel.add(sel3, new GridBagConstraints(1, 8, 2, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
selectionPanel.add(lsel4, new GridBagConstraints(0, 9, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
selectionPanel.add(sel4, new GridBagConstraints(1, 9, 2, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
selectionPanel.add(lsel5, new GridBagConstraints(0, 10, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
selectionPanel.add(sel5, new GridBagConstraints(1, 10, 2, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
selectionPanel.add(lsel6, new GridBagConstraints(0, 11, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
selectionPanel.add(sel6, new GridBagConstraints(1, 11, 2, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
selectionPanel.add(lsel7, new GridBagConstraints(0, 12, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
selectionPanel.add(sel7, new GridBagConstraints(1, 12, 2, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
selectionPanel.add(lsel8, new GridBagConstraints(0, 13, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
selectionPanel.add(sel8, new GridBagConstraints(1, 13, 2, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0));
//
queryLayout.setHgap(5);
queryLayout.setVgap(5);
query.setLayout(queryLayout);
query.add(selectionPanel, BorderLayout.CENTER);
query.add(displayPanel, BorderLayout.EAST);
//
tabbedPane.add(query, Msg.getMsg(Env.getCtx(), "ViewerQuery"));
tabbedPane.add(result, Msg.getMsg(Env.getCtx(), "ViewerResult"));
// tabbedPane.add(graphPanel, Msg.getMsg(Env.getCtx(), "ViewerGraph"));
tabbedPane.addChangeListener(this);
result.getViewport().add(table, null);
// South
southLayout.setHgap(5);
southLayout.setVgap(5);
southPanel.setLayout(southLayout);
statusLine.setForeground(Color.blue);
statusLine.setBorder(BorderFactory.createLoweredBevelBorder());
southPanel.add(statusLine, BorderLayout.CENTER);
bRePost.setText(Msg.getMsg(Env.getCtx(), "RePost"));
bRePost.setToolTipText(Msg.getMsg(Env.getCtx(), "RePostInfo"));
bRePost.addActionListener(this);
bRePost.setVisible(false);
forcePost.setText(Msg.getMsg(Env.getCtx(), "Force"));
forcePost.setToolTipText(Msg.getMsg(Env.getCtx(), "ForceInfo"));
forcePost.setVisible(false);
CPanel leftSide = new CPanel(new FlowLayout(FlowLayout.LEADING, 0, 0));
leftSide.add(bRePost);
leftSide.add(forcePost);
southPanel.add(leftSide, BorderLayout.WEST);
//
bQuery.setIcon(Env.getImageIcon("Refresh16.gif"));
bQuery.setToolTipText(Msg.getMsg(Env.getCtx(), "Refresh"));
bQuery.addActionListener(this);
bPrint.setIcon(Env.getImageIcon("Print16.gif"));
bPrint.setToolTipText(Msg.getMsg(Env.getCtx(), "Print"));
bPrint.addActionListener(this);
bExport.setIcon(Env.getImageIcon("Export16.gif"));
bExport.setToolTipText(Msg.getMsg(Env.getCtx(), "Export"));
bExport.setVisible(tabbedPane.getSelectedIndex() == 1);
bExport.addActionListener(this);
CPanel rightSide = new CPanel(new FlowLayout(FlowLayout.TRAILING, 0, 0));
rightSide.add(bExport);
rightSide.add(bPrint);
rightSide.add(bQuery);
southPanel.add(rightSide, BorderLayout.EAST);
this.getContentPane().add(southPanel, BorderLayout.SOUTH);
//
}
use of org.compiere.swing.CPanel in project adempiere by adempiere.
the class VPanel method getComponentsRecursive.
//[ 1757088 ]
public Component[] getComponentsRecursive() {
java.util.ArrayList<Component> list = new java.util.ArrayList<Component>();
for (int i = 0; i < this.getTabCount(); i++) {
list.add(this.getComponentAt(i));
if (this.getComponentAt(i) instanceof CPanel) {
CPanel panel = (CPanel) this.getComponentAt(i);
findChildComponents(panel, list);
}
}
Component[] result = new Component[list.size()];
list.toArray(result);
return result;
}
Aggregations