• Post Reply Bookmark Topic Watch Topic
  • New Topic

don't want to close frame when clicked to cross button  RSS feed

 
psantosh spandey
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends ,
i wanna that a frame should not be closed when user clicks on the right side cross button .How come i controll it. Plz let me know
thanks in advance
san
 
Trung Tran
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
just add this code to your frame.

regards,
trung
 
psantosh spandey
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear trung ,
i have already done this , but sorry to say it does what i have coded but is not able to prevent to close the frame when user click on cross button.
plzz help me out.
thanks
san
 
vinaya kumar
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think u should be using JWindow in that case
as u won't have the that probelm of closing
vinaya
 
John Dale
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Consider using JFrame's
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!