I'm trying to adjust the size of a JTextField but it doesnt seem to work, I'm suppoed to get this :
What I get is this :
Here is the code if it matters :
JLabel placeNumberT = new JLabel( "<html><span bgcolor=\"lime\">place n°</span></html>");
placeNumberP.add(placeNumberT);
JTextField inputField = new JTextField(1);
placeNumberP.add(inputField);
I tried adjusting the size with the font but it doesn't change a thing