Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Console application in NetBeans

 
D Rog
Ranch Hand
Posts: 472
Linux Objective C Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm starting to help my daughter to study Java. We just visited Sun's web site and downloaded NetBeans. She quickly pasted a program she did in a class. And what's a shame. The program used some terminal class to get user input (no question Mac environment was used in a class). I just changed a bit the program to use System.in. The program imeddiatly crashed after start. It seems System.in is in just closed condition. Why? How to write console applications in NetBeans? I like this IDE (I never used it before and it seems to neat, but can't do so simple things). Any help for poor father and daughter.
 
Abdullah Arslan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think you run program in ide.
if so, you must run that in windows consol with java command.

or try to get parameters as
"
// Modal dialog with OK/cancel and a text field
String text = JOptionPane.showInputDialog(frame, message);
if (text == null) {
// User clicked cancel
}
"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic