Setting the size of JComboBox
posted 5 years ago
Hello everyone, i am displaying a graph in a JPanel and in the same JPanel i need to display a combobox. i could able to display them successfully, but the combobox size is bigger. Actually i am using BorderLayout, so i placed the graph at CENTER and JComboBox at NORTH. I need the size of the combobox to be smaller. I tried to use GridBagLayout also but could not able to use it. How can i manage the JComboBox to be smaller and placed above the Graph.