title: LibGDX - Scene2d cannot click on widgets
body: <p>I have created a screen in my application that shows a text field and a button but for some reason I cannot click on them. Do you have any idea what might be the reason. That's my code (I skipped the variable declarations):</p>
  
  <pre><code>public class SentenceScreen implements Screen {
  public SentenceScreen(Game g) {
      game = g;
  }
  
  @Override
  public void render(float delta) {
      // TODO Auto-generated method stub
      Gdx.gl.glClearColor(0,0,0,0);
      Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
  
      stage = new Stage();
  
      Skin skin = new Skin(Gdx.files.internal("uiskin.json"));
  
      btnLogin = new TextButton("Click me", skin);
      btnLogin.setPosition(300, 50);
      btnLogin.setSize(100, 60);
      stage.addActor(btnLogin);
  
      textField = new TextField("", skin);
      textField.setPosition(100, 50);
      textField.setSize(190, 60);
      stage.addActor(textField);
  
      stage.act(delta);
      stage.draw();
  
      Gdx.input.setInputProcessor(stage);
  }
     }
  </code></pre>