• Post Reply Bookmark Topic Watch Topic
  • New Topic

textbox and message dialog box  RSS feed

 
harsimran kochar
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to show a message when my textfield get focus or when it is empty, cn nyone suggest the code or jst starting of the code
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
harsimran kochar wrote:cn nyone suggest the code or jst starting of the code

Please UseRealWords - "can anyone" and "just". Although those may have been typos.

I suggest you look at JOptionPane. That's the de facto class to use for showing simple message dialogs.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!