actually i have a main panel and have 3 sub panels, top panel covers the entire frame, left panel contains some components like JComboBox,radio buttons and some labels, the combobox takes large width when combobox popup data has a smaller text, the only reason for that it takes larger width for entire left panel,i am using setMinimumSize() and setPreferredSize() to reduce the size for combo boxes, the height will reflecting but not the width, my idea is if i reduce the combo box width, the left panel size is automatically shrinked, please give me any suggestion about this.
thanks in advance