Java Problem
I'M POSTING IN THIS SECTION BECAUSE JAVA SECTION IS DEAD, PLEASE DONT MOVE IT 
I'm trying to create a window with one Label, one TextField and one Button... But I have a problem, nothing shows up unless I resize the window manually (with my mouse), or if I remove the TextField it will work...
Main file:
janela file:
Help a noob out please 

I'm trying to create a window with one Label, one TextField and one Button... But I have a problem, nothing shows up unless I resize the window manually (with my mouse), or if I remove the TextField it will work...
Main file:
Code:
import javax.swing.JLabel;
import javax.swing.JButton;
import javax.swing.JTextField;
public class App {
public static void main(String[] args) {
janela nova = new janela("Window Title",800,200);
JLabel txt = new JLabel("Please tell us your name:");
JButton btn = new JButton("Ok");
JTextField nameTxt = new JTextField("enter text here",30);
nova.add(txt);
nova.add(nameTxt);
nova.add(btn);
}
}
Code:
import java.awt.FlowLayout;
import javax.swing.JFrame;
public class janela extends JFrame {
private static final long serialVersionUID = 1L;
public janela(String title,int width,int height){
super(title);
setLayout(new FlowLayout());
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(width,height);
setVisible(true);
}
}



