Multiple components in Jpanel
I have been trying to add a graph and a combo box dynamically to a jpanel.
This jpanel is added to the 3rd index of a jTabbedPane. The problem I am facing is that only the last added component shows up on UI at runtime, If I add combobox later that only this shows up and graph doesnt. The code is as follows
jComboBox5 = new JComboBox(data.inProdTradeName);
//Adding a series graph dynamically to the panel
In the above case only the graph shows up since I added that last.
I also tried writing following code after I add the two components, but that did not help either:
Can some one tell me what am I missing here..
Thanks in advance!