0

How can I put a text box in java coding so that user types anything in the box

Any number or his name

20th Jan 2017, 12:29 PM
Yadumeet Singh
Yadumeet Singh - avatar
4 Respuestas
+ 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); } }
20th Jan 2017, 12:45 PM
bem
bem - avatar
0
take a look at JavaFX on google
20th Jan 2017, 12:36 PM
Uran Kajtazaj
Uran Kajtazaj - avatar
0
swing is outdated
20th Jan 2017, 1:48 PM
Uran Kajtazaj
Uran Kajtazaj - avatar
0
Thnk u
21st Jan 2017, 11:05 AM
Yadumeet Singh
Yadumeet Singh - avatar