This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

JDialog  RSS feed

 
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 ???
 
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).]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!