• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to display the warning message box when user enters the same content?  RSS feed

 
vignesh karthick
Ranch Hand
Posts: 34
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In this code I have created text boxes namely date,client,style,description etc.. in this, style is set to primary key.
Here i want to display a warning message box if same style content is entered again and again..
I think the logic should be applied in JDBC class, if-else area..
could you tell me the logic...








 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see how half that code is relevant to your problem.

Why don't you create a class which holds the data and then do something like:
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!