java - JLabel remove space between text and border -
I am creating a JLable with only one text (customized from the other part of the program). I can not post images here, but the label comes with padding (i.e. the difference between the text and the boundary).
I do not want padding to be so thick a way to compress padding So, it will not be so thick? These are the things I have tried (one by one, not at all)
Setpriffer size (width, height); SetBorder (new blank border (new instances (0,0,0,0,0)); SetBorder (new blank border (new inset (-5, -5, -5, -5))); But none of these works. Most they contract my jlabal but padding remains the same. Padding ends rather than covering my text. I understand that margins can work but JLab has not set margin so I am losing Any help would be appreciated, thanks!
I understood that 'border' which I actually saw was label instead of label only The background itself was transparent (I did not set OPEC (true) for the label). There is no padding to turn on my label, which I wanted I think that a padding on the panel (done by the flowout) is therefore all right. Thank you for the quick response! I will stop the question.
Comments
Post a Comment