• Post Reply Bookmark Topic Watch Topic
  • New Topic

JDialog

 
Vaskar Dasgupta
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anybody there to reply on the previous post : How do i disable the x button on the top right corner of JDialog ? Please respond as early as possible. Arent there any Swing gurus ???
 
Guennadiy VANIN
Ranch Hand
Posts: 898
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vaskar,
don't forget USA just started sleeping...
It is volunteers who answer, not gurus, and they are in USA
If you need disgraceful/fast solution then


[This message has been edited by G Vanin (edited November 21, 2001).]
 
Vaskar Dasgupta
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Vanin for you response inspite of it being a sleeping time out there, i do appreciate your proactive nature for a speedy reply to this mail. I am sorry to say that but i was asking about disabling the button itself and not disabling the functionality of the button. It should be grayed like in Windows. With this line of code "setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);" only the functionality is disabled, but i can still click on the 'x' button. I am working for 36 hours continuously since yesterday, hope you understand my plight and i totally forgot that it was night time out there. I didnt have any intention to annoy you by any means.
Waiting for your reply.
 
Guennadiy VANIN
Ranch Hand
Posts: 898
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lucky you.... Tonight I missed last train.
I have very dark suspisions that it is OS, peer, native that provide JFrame visualization and it is impossible to mix with it... Because why the OS is tangled? Because it is for OS to iconize, maximize, restore...
?Can't you use just something without a button http://java.sun.com/docs/books/tutorial/uiswing/components/components.html
and then add your custom buttons. You may disable and desactivate then your custom buttons
But it should be cleared by Nathan

[This message has been edited by G Vanin (edited November 21, 2001).]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!