This week's book giveaways are in the Cloud and AI/ML forums. We're giving away four copies each of Cloud Native Patterns and Natural Language Processing and have the authors on-line! See this thread and this one for details.
I am trying to create new swing components like Jcalendar of my own and when i try to create a sample application which is using that swing component, when i try to run that sample application multiple instances of javaw.exe are being created and the system gets hanged.
Why is this happening and how to solve this? Kindly help me ASAP.
Hi Smitha! It should not create multiple instances of java.exe. could you through some code over here to understand what you have done excatly. I think you are doing some simple mistake in your code itself.
2) add a window listener to the frame and System.exit on window close.
If you do not do this the java/javaw process will never terminate.
posted 12 years ago
Hi, Please find the sample code. The sample code uses the swing component which i have created. After adding the last line the javaw instances are being closed. But whether its necessary that everytime i run this code the javaw.exe instance should be created. This is my doubt.
JFrame frame = new JFrame("FileUpload Demo");
//Instantiating my own swing component FileUploadDemo app = new FileUploadDemo();