title: How to move text to bottom of JButton
body: <p>I have a JButton created using the following code. </p>
  
  <pre><code>JButton button = new JButton ( "Document",appletRec.getIcon()) ;
  button.addActionListener ( this ) ;                    
  button.setOpaque                 ( true ) ; //changed false from true.
  button.setFocusPainted           ( true ) ; //changed false from true.
  button.actAsLink                 ( true ) ;
  button.setHighlightForeground    ( Color.blue ) ;
  button.setVerticalTextPosition   ( SwingConstants.BOTTOM ) ;
  button.setVerticalAlignment      ( SwingConstants.TOP ) ;
  button.setHorizontalTextPosition ( SwingConstants.CENTER ) ;
  </code></pre>
  
  <p>But my button is appearing like this 
  <img src="https://i.stack.imgur.com/Eumpi.jpg" alt="enter image description here"></p>
  
  <p>I want to move the text to the bottom of the button. Any suggestion highly appreciated.</p>