This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes jtable alert Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "jtable alert" Watch "jtable alert" New topic
Author

jtable alert

jonathan benz
Greenhorn

Joined: Aug 22, 2011
Posts: 11




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

Joined: Aug 22, 2011
Posts: 11
Please help me on how can have joptionpane message.
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1076
    
  10

You have to write your own Editor for the column:
JTable Editor

You can read about JOptionPane here:
JOptionPane Tutorial


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2179
    
    7
Here's a simple working example to get you started:

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jtable alert