I am using a JComboBox populated with a Vector. I want the text to be inset from the left edge of the box, at the moment it is tight to the left hand edge for a JTextField I have used Insets
class FormJTextField extends JTextField
{
FormJTextField()
{
setFont( new Font( "Dialog", Font.BOLD, 16 ));
setMargin(new Insets(4, 4, 4, 4));
}
FormJTextField(String tipTxt)
{
setFont( new Font( "Dialog", Font.BOLD, 16 ));
setMargin(new Insets(4, 4, 4, 4));
setToolTipText(tipTxt);
}
}
how do I do this for a JComboBox?