• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display Error messages

 
Sander Silva
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I'm using a Java GUI to insert data into MS Access database.
Please kindly help me to display an error message like this,

I have a field called SVID (integer)

I need to display an error message when someone trying to add
more than 8 numbers or lower than 8 numbers. It should be only 8
digits. Need to display a message like this "Please add 8 digit ID".

here's my code.



Please kindly help, I'm new to Java.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11853
185
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your code example is only showing the SQL (and once again, ignoring prepared statements). Where is the code for your GUI?
 
Sander Silva
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for response,

Here's the code

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic