0
How can I put a text box in java coding so that user types anything in the box
Any number or his name
4 Respostas
+ 3
> take a look at JavaFX on google
or swing, or swt or awt or....
import javax.swing.JOptionPane;
public class Program {
public static void main(String[] args) {
String foo = JOptionPane.showInputDialog("Input something:");
System.out.println(foo);
}
}
0
take a look at JavaFX on google
0
swing is outdated
0
Thnk u