Salut
voila ce que dit le commentaire de la methode setMargin()
* Sets margin space between the text component's border
* and its text. The text component's default <code>Border</code>
* object will use this value to create the proper margin.
* However, if a non-default border is set on the text component,
* it is that <code>Border</code> object's responsibility to create the
* appropriate margin space (else this property will effectively
* be ignored). This causes a redraw of the component.
Il faut que tu te crée ta propre Border (heritant de AbstractBorder) et que tu redefinisse la methode
paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Ensuite c'est de la peinture
Partager