Category: java
This Java tutorial will show you how to convert a string to an int (Integer). When converting a string to an int, the parse method may throw a NumberFormatException if the string is null or an invalid representation for that type.
Have you ever wanted to convert a hex string to an integer or convert an integer to a hex string? Java makes this conversion a simple process. This Java tutorial shows you how.
In Java 1.5, Sun had decided to "undeprecate" the getEnv() method that provides the functionality to get the value of an environment variable. In addition, Sun has added a new method that allows you to discover all of the environment variables that are defined. This Java tutorial walks you ...
Are you tired of the random location of the windows in your application? It is time to take control of your window's position. This Java tutorial looks at how to center a dialog box, frame, or window in Java.
Have you ever wanted to provide text formatting in a Swing control? Have you ever wanted to have multiple lines of text in a tab? This Java tutorial will show you how to use the simplicity of HTML to provide flexible and powerful text formatting in Swing controls.
Handling character strings in Java is supported through two final classes: String and StringBuffer. The String class implements immutable character strings, which are read-only once the string has been created and initialized, whereas the StringBuffer class implements dynamic character ...
This Java tutorial will give you a brief walk through on Java memory use in the sandbox and show how to use the Runtime class to discover the amount of memory available to your Java applet or application.
Dynamic images are commonly used in web applications. You will find dynamic images such as charts, captcha, web site thumbnails, image thumbnails, watermarks, etc. This Java tutorial will give you a brief walk through on creating a simple dynamic image in a Java Servlet.
This Java tutorial shows how to go beyond the predefined cursors in Java and create your own cursors using a GIF or PNG that are dsiplayed when the user moves the mouse over a Java component (AWT or Swing).
Have you ever needed to determine the screen size in Java? There are many tasks such as taking a screen shot or centering a window that require you to determine the screen size. This quick Java tutorial shows you how.