Skip to content

Instantly share code, notes, and snippets.

@resarahadian
resarahadian / konverter.java
Created March 20, 2012 17:01
Aplikasi Konversi Suhu dengan J2ME
/*
*@ author Resa C.R
*/
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class konverter extends MIDlet implements CommandListener
{
private Display tampil;
@resarahadian
resarahadian / Buku.java
Created March 21, 2012 08:18
Membuat Menu ChoiceGroup J2ME
/*
*@ author Resa C.R
*/
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class Buku extends MIDlet implements CommandListener
{
private Display tampil;
private Ticker runText,runTextTampil;
@resarahadian
resarahadian / Identitas.java
Created March 25, 2012 16:38
Aplikasi Java dengan Database SQLite
/*
* @ author Resa C.R
*/
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.sql.*;
@resarahadian
resarahadian / OpenFile.java
Created March 27, 2012 16:54
Program JFileChooser Java
/*
* @ author Resa C.R
*/
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.UIManager.*;
public class OpenFile extends JFrame
@resarahadian
resarahadian / Music.java
Created April 13, 2012 01:01
Aplikasi MP3 Player sederhana dengan Java (Beta release)
/*
* @ author Resa C.R
*/
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import javazoom.jl.player.Player;
import javax.swing.UIManager.*; //Look and Feel
@resarahadian
resarahadian / Akademik.java
Created April 26, 2012 17:23
Java dan iReport 1
/*
* @author Resa C.R
*/
import net.sf.jasperreports.engine.*;
import net.sf.jasperreports.engine.util.*;
import net.sf.jasperreports.view.*;
import java.util.*;
import java.io.*;
import java.sql.*;
import javax.swing.*;
@resarahadian
resarahadian / Koneksi.java
Created May 6, 2012 06:19
Program Menu Login dengan Database
import java.sql.*;
/**
* Ini adalah class koneksinya
* @author Resa C.R
*/
public class Koneksi
{
private static Connection koneksi;
public static Connection getKoneksi()
@resarahadian
resarahadian / FileBaru.java
Created May 13, 2012 03:57
Program JPopUpMenu
/*
* @ author Resa C.R
*/
import javax.swing.*;
import java.awt.*;
import java.awt.*;
public class FileBaru extends JInternalFrame
{
Container konten = getContentPane();
@resarahadian
resarahadian / IReport.java
Created May 15, 2012 00:25
Program Java Ireport dengan Parameter
/**
*
* @author Resa C.R
*/
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.File;
import java.sql.*;
import java.util.HashMap;
@resarahadian
resarahadian / Notepad.java
Created May 22, 2012 08:45
Aplikasi Notepad dengan Java
/**
*
* @author Resa C.R
*/
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.io.*;
import java.util.Scanner;