Win a copy of Kotlin for Android App Development this week in the Kotlin 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:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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).]
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!