Cancel window closing operation in java app

August 30, 2010 by Mike · Comments Off
Filed under: Java, Programming 

Question: In my Java swing crossplatform project I have to ask the user if he/she really wants to quit from the desktop application before exit, so I have to handle the WindowClosing event. My problem is simple. I expected the DO_NOTHING_ON_CLOSE flag to prevent the form from closing. I didn’t thought the WindowClosing event will be fired even if the setDefaultCloseOperation was set to DO_NOTHING. When I even click on the NO button the window does close! Have you experienced it before and what have you done? Thank you in advance. I am attaching my code. Read more

Custom Event Viewer log for Windows app

June 26, 2010 by Mike · Comments Off
Filed under: .NET, Windows 

Question: I am developing a windows application in VB.NET for Windows Server 2008. Is there an easy way to create a customized log subview that can be read in the server’s Event Viewer by our client’s supervisor? In this case my app’s event messages could appear in its own “Applications and Services Logs” view in one group.
Read more

Windows 7 random wakeup from sleep

May 11, 2010 by Mike · Comments Off
Filed under: Microsoft, Windows 

Question: I’ve Windows 7 Professional installed on my home computer. It has a weird problem, a “random” wake up from sleep. It often wakes up just seconds after being shut down, or wakes up in the very middle of the night when nobody is around the PC. What’s going on?
Read more

Custom fields in Wordpress posts

May 10, 2010 by Mike · Comments Off
Filed under: PHP, Web programming, Wordpress 

Question: I plan a blog that will present posts and pages in different languages. I want to build only one Wordpress blog for all. How to assign a language property to a post? Do I have to set and get a meta tag? Can I use custom fields in the admin menu?
Read more

Next Page »