Java programs
Enter a key term, phrase, name or location to get a selection of only relevant news from all RSS channels.
Enter a domain's or RSS channel's URL to read their news in a convenient way and get a complete analytics on this RSS feed.
In this tutorial, I am going to show you how to protect a PDF document by passwords so that users that do not have permissions cannot open or modify the...
Besides, desktop applications that run on operating systems, Java allows you to create applications that can be run on web browsers that enable Java or...
XML and HTML are Markup Languages. However, they are different. XML is generally used to store and transport structured data while HTML is used to format...
Splash screen is a special window that displays in a short time period before the main window of a program or website shows. Generally, on the splash...
Desktop is a useful class in Java. It can be used to open the default browser for a specified url, open a default mail client with optional e-mail address...
Robot is an automation class in AWT package of Java. The Robot class is useful when your Java programs requires test automation, mouse, and keyboard controls...
Java does allow you to extend a class, change the value of a variable, and override a method of a class. Sometimes, however, you can modify this behavior...
GridBagLayout is a layout manager in AWT package. It is more complex than GridLayout. But it is more powerful or flexible than GridLayout. By using the...
ArrayDeque is a data structure that implements the Deque interface. Deque is the short form of "double ended queue" and generally pronounced as "deck...
Unfortunately Java programs has no news yet.
But you may check out related channels listed below.
[...] sort. Naturally the sort method sorts the List in ascending order (from small to big). In the example code below, ten random numbers from 1 to 6 are generated and added to the ArrayList obbject, [...]
[...] object, you can easily navigate through the document to access all its elements. Read the example code below: public static void readXML(){ SAXBuilder builder=new SAXBuilder(); try { //construct [...]
[...] an API to connect and upload files to or download files from a remote FTP server. In this example code, the API used to connect and upload the file to the FTP server is commons-net. The API [...]
[...] .daysBetween, Hours.hoursBetween, Minutes.minutesBetween, Seconds.secondsBetween methods. The example code below calculates the days and hours between the current and another future date. import java. [...]
[...] from your computers in a single jar file. It can be also used to extract an existing jar or zip file. The Jar Pack program has a very simple user interface which is divided in to two sections or [...]
[...] ://sourceforge.net/projects/itext/files/latest/download. You will get the iText library in zip file format. Simply extract the zip file to a folder in your computer. In the folder, you will [...]
[...] extra jar files from http://sourceforge.net/projects/itext/files/extrajars/. Then extract the zip file and add the bcprov-jdk15on-1.48.jar file to the project. After that, run the program again. [...]
[...] date and times. You will need to download this library from Joda-Time website. You will get a zip file. Please extract the zip file to a folder that you can file. To use the Joda-Time library in your [...]
[...] memory size guaranteed available to the program, etc. To start the JConsole utility for your Java program, you will follow the steps below. -Run your Java program -Open the command prompt window and [...]
[...] This is a simple E-mail in Java program. You can use it to send message with multiple attachments to multiple recipients at the same [...]
[...] need to turn off the Windows Firewall (Control Panel-> Windows Firewall). Then run the the Java program again. [...]
[...] extracted. Then click OK. If you are using the Windows' command prompt to compile and run your java program, you will need to the add the path of the jar file to the CLASSPATH by going to the Control [...]
[...] representing the complete opaque window (not transparent). import java.awt.BorderLayout; import java.awt.Container; import java.awt.Dimension; import java.awt.event.ActionEvent; import javax.swing. [...]
[...] code below arranges the components on the JFrame window as shown in the picture. import java.awt.Container; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import javax.swing. [...]
[...] are saved in the current working directory of the program. import java.awt.BorderLayout; import java.awt.Container; import java.awt.Dimension; import java.awt.MouseInfo; import java.awt.Point; import [...]
[...] and the Welcome window is shown. This is the complete code of the SplashScreen program. import java.awt.Container; import java.awt.Font; import javax.swing.ImageIcon; import javax.swing.JFrame; import [...]
[...] In this post, you learn to use the LinkedList data structure (in java.util package) that comes with the Java standard API. LinkedList is a [...]
[...] sort. Naturally the sort method sorts the List in ascending order (from small to big). In the example code below, ten random numbers from 1 to 6 are generated and added to the ArrayList obbject, [...]
[...] object, you can easily navigate through the document to access all its elements. Read the example code below: public static void readXML(){ SAXBuilder builder=new SAXBuilder(); try { //construct [...]
[...] an API to connect and upload files to or download files from a remote FTP server. In this example code, the API used to connect and upload the file to the FTP server is commons-net. The API [...]
[...] .daysBetween, Hours.hoursBetween, Minutes.minutesBetween, Seconds.secondsBetween methods. The example code below calculates the days and hours between the current and another future date. import java. [...]
Related channels
-
IJava2--Java Programming Blog
Love Java--coffee and Java programming.
-
Java Programming
Java Object Oriented Programming using Netbeans
-
Java Programming
Java Object Oriented Programming using Netbeans