BF2181996 BOM Tree Pane not scrollable
This commit is contained in:
parent
b2c9bb17e4
commit
2a7b15b1e5
|
@ -117,7 +117,8 @@ public class VTreeBOM extends CPanel implements FormPanel, ActionListener,
|
||||||
private JSplitPane splitPane = new JSplitPane ();
|
private JSplitPane splitPane = new JSplitPane ();
|
||||||
//private VTreePanel centerTree;
|
//private VTreePanel centerTree;
|
||||||
//private JList centerList = new JList ();
|
//private JList centerList = new JList ();
|
||||||
private JScrollPane dataPane = new JScrollPane();
|
private JScrollPane dataPane = new JScrollPane();
|
||||||
|
private JScrollPane treePane = new JScrollPane();
|
||||||
//private CLabel labelUOM = new CLabel();
|
//private CLabel labelUOM = new CLabel();
|
||||||
//private CTextField fieldUOM = new CTextField(10);
|
//private CTextField fieldUOM = new CTextField(10);
|
||||||
//private CLabel labelDocument = new CLabel();
|
//private CLabel labelDocument = new CLabel();
|
||||||
|
@ -190,15 +191,8 @@ public class VTreeBOM extends CPanel implements FormPanel, ActionListener,
|
||||||
};
|
};
|
||||||
|
|
||||||
implosion.addActionListener(this);
|
implosion.addActionListener(this);
|
||||||
|
splitPane.add (dataPane, JSplitPane.RIGHT);
|
||||||
loadTableBOM();
|
splitPane.add (treePane, JSplitPane.LEFT);
|
||||||
splitPane.add (new JScrollPane(dataPane), JSplitPane.RIGHT);
|
|
||||||
dataPane.getViewport().add(tableBOM , null);
|
|
||||||
|
|
||||||
DefaultMutableTreeNode parent = new DefaultMutableTreeNode(Msg.getElement(getCtx(), "M_BOM_ID"));
|
|
||||||
m_tree = new JTree(parent);
|
|
||||||
splitPane.add (m_tree, JSplitPane.LEFT);
|
|
||||||
|
|
||||||
} // preInit
|
} // preInit
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -433,19 +427,15 @@ public class VTreeBOM extends CPanel implements FormPanel, ActionListener,
|
||||||
}
|
}
|
||||||
|
|
||||||
m_tree.addTreeSelectionListener(this);
|
m_tree.addTreeSelectionListener(this);
|
||||||
//System.out.println("number of children:" + m_tree.getRowCount());
|
|
||||||
|
|
||||||
splitPane.add (m_tree, JSplitPane.LEFT);
|
treePane.getViewport().add (m_tree, null);
|
||||||
|
|
||||||
//System.out.println("Table size " + dataBOM.size());
|
|
||||||
|
|
||||||
loadTableBOM();
|
loadTableBOM();
|
||||||
splitPane.add (new JScrollPane(dataPane), JSplitPane.RIGHT);
|
dataPane.getViewport().add(tableBOM, null);
|
||||||
// 4Layers - Set divider location
|
// 4Layers - Set divider location
|
||||||
splitPane.setDividerLocation(DIVIDER_LOCATION);
|
splitPane.setDividerLocation(DIVIDER_LOCATION);
|
||||||
// 4Layers - end
|
// 4Layers - end
|
||||||
dataPane.getViewport().add(tableBOM , null);
|
|
||||||
|
|
||||||
} // action_fillTree
|
} // action_fillTree
|
||||||
|
|
||||||
public DefaultMutableTreeNode parent(MPPProductBOMLine bomline)
|
public DefaultMutableTreeNode parent(MPPProductBOMLine bomline)
|
||||||
|
|
Loading…
Reference in New Issue