How to get local computer name and IP in Java
How to get local computer name and IP in Java. Simple snippet using InetAddress.getLocalHost() method.
HTTP URLConnection with proxy in Java
How to create an HTTP URLConnection with proxy in Java. Simple example including proxy authentication.
How to Check Alexa Rank in Java
How to Check Alexa Rank in Java using the undocumented API: http://data.alexa.com/data?cli=10&url=domainName. The code contains also the possibility of adding proxy settings
How to sort TreeMap in descending order in Java
How to sort TreeMap in descending order in Java. A simple example using a string as keys.
SWT Button Selection Event
SWT Button Selection Event. A simple example using SelectionListener interface to add an event to a button.
SWT update UI from another thread
SWT update UI from another thread. Used for long running operations and to avoid the UI being frozen during the operation.
Search
Other Posts
Follow Us On