I am developing swing application. When mouse clicked on text box i have to open a dialog. It works fine.
When clicked on text box using stylus, mouse click event handling does not happens properly.
What event should I use to handle stylus click.
When system is connected to internet I could get the IP address of my system. If is is not connected to the internet, it just returns IP as 127.0.0.1. I would like to get the IP address of the system even if it is not connected to internet. Can anyone help to solve this problem? Thank in advance.
I have crated onscreen keyboard. I could simulate the keypress for alpaha and numeric key but for the special character it is not working.
// For #
// For @
I get the following error
Exception in thread "main" java.lang.IllegalArgumentException: Invalid key code
at sun.awt.windows.WRobotPeer.keyPress(Native Method)
at java.awt.Robot.keyPress(Unknown Source)
I am working on Java application in Windows 7. Application should support touch screen and on screen key board. And need to do a on screen key board. I have no idea about it that how to do. So can you guys please help me out to do this. Any one have some idea about it. Thanks
Since you extend Thread class all the public methods of thread class becomes the part
of the extended class. As you know to call local method of the class can be just called with their name
we call sleep methods. For more information please see