title: Design Button in Java (like in CSS)
body: <p>For my project, I need to create customizable buttons. Except that I have a problem and I do not know how to solve it. 
  I have a background image for my button and I would like it to be extensible in X and Y according to the text there will be over without loss of quality. 
  Do you have any ideas?</p>
  
  <p><img src="https://i.stack.imgur.com/vZFGN.png" alt="background image example"></p>