Originally Posted by
kvv230892
Why u want to make the combobox transparent by the way?
I want to make the frame transparent but not the combobox!
jCbx.setBackground(new Color(238,238,238)); //To set the background color of the combobox
setBackground(new Color(255,255,255,0)); //To set the background color of the frame
My aim is that to make the background color of the frame as transparent and the background color of the combobox as opaque.
I tried like this also,
jCbx.setBackground(new Color(238,238,238,255)); //To set the background color of the combobox
setBackground(new Color(255,255,255,0)); //To set the background color of the frame
But,it didn't work