title: Get the size of a Draw2d Label Figure
body: <p>if I have a class with a private <code>Label = new Label("");</code> in it and in some method i write:</p>
  
  <pre><code>private void setText(String text)
  {
      this.label.setText(text);
      System.out.println("label size = " + this.label.getSize(0,0));
  }
  </code></pre>
  
  <p>it will always print "label size = Dimension(0,0)". why is this? how can I obtain the size occupied by the label after setting its text? I also tried other solutions (<a href="http://www.eclipse.org/forums/index.php/t/65736/" rel="nofollow">here</a> and method getTextBounds() as suggested in <a href="http://www.eclipse.org/forums/index.php/m/722990/" rel="nofollow">here</a> ) but i either obtain again Dimension(0,0) or a NullPointerException, respectively.</p>
  
  <p>do you have any suggestion? thanx :)</p>