• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jtable alert

 
jonathan benz
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator




I need to popup an alert message for the user to key-in numeric values. This system is a questionnaire targeting for the public to give their feedback.

So, it will be more informed if the system prompt an alert message (joptionpane) rather than the red line.


-------------------------------------------------


 
jonathan benz
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help me on how can have joptionpane message.
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to write your own Editor for the column:
JTable Editor

You can read about JOptionPane here:
JOptionPane Tutorial
 
Rob Camick
Ranch Hand
Posts: 2613
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a simple working example to get you started:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic