title: Is it possible to display a string formatted table in a javaFx label?
body: <pre><code>public static void printDetails() {
      //PRINTING DEFAULT MEMBERS NAMES AS AN ARRAY
  
      int i;
      System.out.println (&quot;  &quot;);
      System.out.printf (&quot;%-20s%-20s%-25s%-25s%-25s%n&quot;, &quot;Index&quot;, &quot;Name&quot;, &quot;membershipDate&quot;,
              &quot;membershipNumber&quot;,&quot;member type&quot;);
      System.out.println(&quot;------------------------------------------------------------&quot;)
  
      for (i = 0; i &lt; defaultNames.size (); i++) {
          System.out.format (&quot;%-20s%-20s%-25s%-25s%-25s%n&quot;, i + 1, defaultNames.get (I),
                  defaultMembershipDate.get (i), defaultMembershipNumber.get (i),defaultMemberType.get (i));
      }
  
  
  }
  </code></pre>
  <p><img src="https://i.stack.imgur.com/nIDIW.jpg" alt="" /></p>