Skip to content

Instantly share code, notes, and snippets.

View khannedy's full-sized avatar
👀
Orang Ganteng dan Intelek

Eko Kurniawan Khannedy khannedy

👀
Orang Ganteng dan Intelek
View GitHub Profile
@khannedy
khannedy / ProgramHello.java
Created October 4, 2011 05:24
Belajar JME di NetBeans IDE
/*
* Copyright (c) 2011, StripBandunk and/or its affiliates. All rights reserved.
*
* http://stripbandunk.com/
*
* STRIPBANDUNK PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package khannedy.belajar.mobile;
import javax.microedition.lcdui.Display;
@khannedy
khannedy / LaporanTagihan.txt
Created October 5, 2011 13:56 — forked from endymuhardin/LaporanTagihan.txt
Contoh Direct Print dengan Java
LAPORAN DAFTAR PELUNASAN KOLETKOR
AGEN PT. ARTIVISI INTERMEDIA
=====================================================================================================================
KODE KOLEKTOR : 0001
NAMA KOLEKTOR : JOJO
+------+--------------+---------------------------+---------+-------------+-------------+-------------+-------------+
@khannedy
khannedy / ConvertInstantClient.sh
Created October 7, 2011 15:12
Installing OCI8 in Ubuntu
sudo alien oracle-instantclient11.2-basic_11.2.0.2.0-2_i386.rpm
sudo alien oracle-instantclient11.2-devel_11.2.0.2.0-2_i386.rpm
@khannedy
khannedy / ProgramHello.java
Created October 9, 2011 03:27
Belajar LWUIT Menggunakan NetBeans IDE
/*
* Copyright (c) 2011, StripBandunk and/or its affiliates. All rights reserved.
*
* http://stripbandunk.com/
*
* STRIPBANDUNK PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package khannedy.belajar.mobile;
import com.sun.lwuit.Display;
@khannedy
khannedy / Form.java
Created October 9, 2011 14:30
Mendeteksi Perubahan Baris JTable
jTableMahasiswa.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
public void valueChanged(ListSelectionEvent e) {
int selectedRow = jTableMahasiswa.getSelectedRow();
jTextFieldBaris.setText(String.valueOf(selectedRow));
}
});
@khannedy
khannedy / Demo.txt
Created October 12, 2011 05:25
Membuat JTree Dinamis Sederhana
Root
|_Child 1
|_Child 2
|_Child 3
|_Child 4
|_Child 5
|_Child 6
|_Child 7
|_Child 8
@khannedy
khannedy / Category.java
Created October 12, 2011 07:17
Menampilkan Data di Database ke JTree Menggunakan Hibernate
/*
* Copyright (c) 2011, StripBandunk and/or its affiliates. All rights reserved.
*
* http://stripbandunk.com/
*
* STRIPBANDUNK PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package stripbandunk.tutorial.jtreehibernate.entity;
import java.io.Serializable;
@khannedy
khannedy / Category.java
Created October 15, 2011 04:55
Menampilkan Data Bertingkat ke JTree Menggunakan Hibernate
@Entity
@Table(name = "stripbandunk_category")
public class Category implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue
@Column(name = "id")
private Long id;
@khannedy
khannedy / Sample.java
Created October 16, 2011 03:48
Membuat Interface dari Class Menggunakan NetBeans
/*
* Copyright (c) 2011, StripBandunk and/or its affiliates. All rights reserved.
*
* http://stripbandunk.com/
*
* STRIPBANDUNK PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package khannedy.belajar.belajarjava.netbeans;
/**
@khannedy
khannedy / Form1.java
Created October 16, 2011 04:36
Membuat Pagination di JTable Menggunakan JPagination
final ProductService productService = new ProductService();
final ProductTableModel tableModel = new ProductTableModel();
tableModel.setProducts(productService.load(0, 100));
jTableDemo.setModel(tableModel);