Progress Bar
In this seasion we try to make progress bar using Jframe. The progress bar is use to identify progress in visual. With it user can see what the program realy running or how far it running
this source code:
import javax.swing.*;
/**
* Demo progress bar
*
* @author indrarusadie
*
*/
public class Main extends JFrame {
[...]
Calendar in java
Okey in this night I’ll share you about how to make calendar with java, here is the code
Calendar program
import java.util.Date;
import java.util.Calendar;
import java.util.GregorianCalendar;
public class Main {
// Jumlah hari di tiap bulan, index 0 = Januari
private static final int[] jml_hari = {
31, 28, 31, 30, 31, 30, 31, 31, 30, [...]
Generate Random String and Number
In this moment we try to use java.lang.math and java.util.Random class
With this class we can make script code to generate String and number
Source code 1:
public class random1 {
public static short random() {
return (short)(Math.floor(Math.random() * 100) + 0);
}
public static void main(String[] args) {
System.out.println(random());
[...]

