Search in sources :

Example 1 with RadioButtonTreeCellRenderer

use of org.eevolution.form.bom.RadioButtonTreeCellRenderer in project adempiere by adempiere.

the class VProductConfigurationBOM method init.

/**
	 *	Initialize Panel
	 *  @param WindowNo window
	 *  @param frame parent frame
	 */
public void init(int WindowNo, FormFrame frame) {
    log.info("");
    m_WindowNo = WindowNo;
    m_frame = frame;
    try {
        //	Top Selection Panel
        createSelectionPanel(true, true, true);
        m_frame.getContentPane().add(selectionPanel, BorderLayout.NORTH);
        //	Center
        createMainPanel();
        CScrollPane scroll = new CScrollPane(this);
        m_frame.getContentPane().add(scroll, BorderLayout.CENTER);
        confirmPanel.addActionListener(this);
        //	South
        m_frame.getContentPane().add(confirmPanel, BorderLayout.SOUTH);
        //Tree stuff
        DefaultMutableTreeNode parent = new DefaultMutableTreeNode(Msg.translate(Env.getCtx(), "No Product Chosen"));
        this.m_RadioButtonTreeCellRenderer = new RadioButtonTreeCellRenderer();
    } catch (Exception e) {
        log.log(Level.SEVERE, "", e);
    }
    sizeIt();
}
Also used : RadioButtonTreeCellRenderer(org.eevolution.form.bom.RadioButtonTreeCellRenderer) DefaultMutableTreeNode(javax.swing.tree.DefaultMutableTreeNode) CScrollPane(org.compiere.swing.CScrollPane) SQLException(java.sql.SQLException)

Aggregations

SQLException (java.sql.SQLException)1 DefaultMutableTreeNode (javax.swing.tree.DefaultMutableTreeNode)1 CScrollPane (org.compiere.swing.CScrollPane)1 RadioButtonTreeCellRenderer (org.eevolution.form.bom.RadioButtonTreeCellRenderer)1