title: How can i change layout when orientation is change
body: <p>I want to change my blackberry screen GUI When i go from portrait to landscape mode.</p>
  
  <pre><code>protected void sublayout(int width, int height) {
      // TODO Auto-generated method stub
  
      if(Display.getOrientation()==Display.DIRECTION_PORTRAIT)
      {
          label.setText("Portrait");
      }
      else
      {
          label.setText("Landscape");
      }
  
      super.sublayout(width, height);
  }
  </code></pre>
  
  <p>any help would be appreciated</p>