Tag-Tag Dasar HTML

Hmmm....setelah lama hengkang dari dunia blog ane mau muali nulis nih tentang pemrograman web dari dasar jadi sembari ane belajar tulis dah di blog ini.
Oke langsung saja tulisan pertama kali tentang pemrograman web ini adalah mengenai Tag-Tag html.Tag dasar berarti elemen dasar.Dokumen HTML secara mendasar akan terdiri atas teks inromasi.
Biasanya tag dasar html sbb:








Dimana Judul atau topik utama dokumen disimpan dalam section/elemen head,disimpan dalam elemen title dengan tag ....
Title ini akan ditampilkan pada bagian caption pada window browser web.Hanya elemen title saja dari elemen head yang ditampilkan di browser,elemen lainnnya dari head tidak ditampilkan,sebagian elemen yang menjelaskan tentang dokumen HTML yang bersangkutan.

Teks informasi ini akan disimpan dalam section body - di dalam tag .....Dimana teks tersebut disusun dalam paragraf-paragraf - tag

. Teks juga mempunyai judul-judul yang menunjukkan topik-topik atau bagian-bagian dalam dokumen - judul disebut heading.Heading dalam HTML mempunyai level 1 sampai dengan 6,dinyatakan dengan tag

,

dan seterusnya sampai

,demikian juga tag penutupnya
sampai
Read More...

My Family Tree(Depth First Search Implementation)

Assalamu'alaikum...
To the poi ini contoh implementasi Depth First Search gan untuk download projectnya silahkan download Disini
Thanx ... ^_^
Read More...

Simple KSP(Koperasi Simpan Pinjam)

Assalamu'alikum.Udah lama gak posting langsung azza ini contoh project KSP,kegunaannya hanya untuk menghitung prakiraan saldo dari bunga berdasarkan tanggal yang dipilih...!!!
ScreenShootnya:






























Project ini terbagi menjadi 3 Class yaitu class Hitung.java,tanggal.java dan Utama.java.Dimana Class hitung menangani perhitungan saldo,Class tanggal menangani selisih tanggal,dan class Utama merupakan JFrame Form untuk tampilan utama.Berikut Source Programmnya:
Atau anda dapat mendownloadnya lengkap Disini(NetBeans Project)
Class Hitung.java
import java.util.Calendar;
public class Hitung {
public long selisihHari;
public double a,b,c,d,e,f,g,h,i,j;

public void hitungSelisihTgl(int th1,int bln1,int tgl1,int th2,int bln2,int tgl2){
Calendar cal1 = Calendar.getInstance();
Calendar cal2 = Calendar.getInstance();

cal1.set(th1, bln1, tgl1);
cal2.set(th2, bln2, tgl2);

long jamMs1 = cal1.getTimeInMillis();
long jamMs2 = cal2.getTimeInMillis();

long selisihJam = jamMs2 - jamMs1;
selisihHari = selisihJam / (24 * 60 * 60 * 1000);
}

public double hitungBungaPerbulan(double a,double b){
c = a * b;
return c;
}
public double hitungBungaPerhari(double d,double e){
g =0;
f = (d / e);
g = f * selisihHari;
return g;
}
public double hitungSaldoAkhir(double h,double i){
j = g + h + i;
return j;
}
}

Class tanggal.java
import java.util.Calendar;
public class tanggal {
public int tanggal,bulan,tahun,hari;
public String arrBulan[]={"Januari","Februari","Maret","April","Mei","Juni",
"Juli","Agustus","September","Oktober","November","Desember"};
Calendar cal = Calendar.getInstance();

public String setBulan(int bln){
String b = arrBulan[bln-1];
return b;
}

public int setTanggal(int tgl,int bln,int thn){
tanggal = tgl;
tahun = thn;
bulan = bln;
cal.set(tahun,bulan,tanggal);
return hari = cal.getActualMaximum(Calendar.DAY_OF_MONTH);
}
}

Class Utama.java
public class Utama extends javax.swing.JFrame {
tanggal gal = new tanggal();
Hitung hit = new Hitung();
Calendar cal = Calendar.getInstance();
int tglSekarang = cal.get(Calendar.DATE);
int blnSekarang = cal.get(Calendar.MONTH)+1;
int thnSekarang = cal.get(Calendar.YEAR);

public Utama() {
initComponents();
tglSekarang();
cekTanggal();
pertama();
}

void pertama(){
cbTanggalCek.setSelectedIndex(tglSekarang);
}
void HitunganBungaPerbulan(){
hit.hitungBungaPerbulan(Integer.parseInt((String)txtSimpananWajib.getText()),0.04);
txtBungaPerbulan.setText(String.valueOf(hit.c));
}

void cekTanggal(){
int y = Integer.parseInt((String)cbTahunCek.getSelectedItem());
gal.setTanggal(1,cbBulanCek.getSelectedIndex(),y);
cbTanggalCek.removeAllItems();
cbTanggalCek.addItem("--Pilih--");
for(int i=1;i<=gal.hari;i++){ cbTanggalCek.addItem(i); } } void Hitung(){ lTgl1.setText(txtTanggalTabung.getText()); lTgl2.setText(cbTanggalCek.getSelectedItem()+" "+cbBulanCek.getSelectedItem()+" "+cbTahunCek.getSelectedItem()); int th2 = Integer.parseInt((String)cbTahunCek.getSelectedItem()); int bln2 = cbBulanCek.getSelectedIndex(); int tgl2 = cbTanggalCek.getSelectedIndex(); int simpanPokok = Integer.parseInt((String)cbSimpananPokok.getSelectedItem()); int simpanWajib = Integer.parseInt((String)txtSimpananWajib.getText()); hit.hitungSelisihTgl(thnSekarang,blnSekarang,tglSekarang,th2,bln2,tgl2); hit.hitungBungaPerhari(Double.parseDouble(txtBungaPerbulan.getText()),30); System.out.println("Selisih Hari:"+hit.selisihHari); txtBungaPerhari.setText(String.valueOf(hit.g)); txtSaldoSekarang.setText(String.valueOf(hit.hitungSaldoAkhir(simpanPokok,simpanWajib))); } void tglSekarang(){ //System.out.println(blnSekarang); cbTanggalCek.removeAllItems(); cbTanggalCek.addItem("--Pilih--"); for(int x=thnSekarang;x<2030;x++){ cbTahunCek.addItem(String.valueOf(x)); } txtTanggalTabung.setText(tglSekarang+" "+ gal.arrBulan[blnSekarang-1]+" "+thnSekarang); System.out.println(tglSekarang); cbTanggalCek.setSelectedIndex(tglSekarang); cbBulanCek.setSelectedIndex(blnSekarang); cbTahunCek.setSelectedItem(thnSekarang); } @SuppressWarnings("unchecked") //
private void initComponents() {

jLabel12 = new javax.swing.JLabel();
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
cbSimpananPokok = new javax.swing.JComboBox();
jPanel2 = new javax.swing.JPanel();
jLabel2 = new javax.swing.JLabel();
txtSimpananWajib = new javax.swing.JTextField();
jLabel3 = new javax.swing.JLabel();
txtBungaPerbulan = new javax.swing.JTextField();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
txtTanggalTabung = new javax.swing.JTextField();
jPanel3 = new javax.swing.JPanel();
jLabel7 = new javax.swing.JLabel();
bCekTabungan = new javax.swing.JButton();
cbTanggalCek = new javax.swing.JComboBox();
cbBulanCek = new javax.swing.JComboBox();
cbTahunCek = new javax.swing.JComboBox();
jPanel5 = new javax.swing.JPanel();
txtBungaPerhari = new javax.swing.JTextField();
jLabel9 = new javax.swing.JLabel();
jLabel10 = new javax.swing.JLabel();
lTgl1 = new javax.swing.JLabel();
lTgl2 = new javax.swing.JLabel();
jPanel4 = new javax.swing.JPanel();
jLabel8 = new javax.swing.JLabel();
txtSaldoSekarang = new javax.swing.JTextField();
jLabel11 = new javax.swing.JLabel();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("KSP");
setBackground(new java.awt.Color(255, 255, 255));
getContentPane().setLayout(null);

jLabel12.setText("©Bambang Saputro");
getContentPane().add(jLabel12);
jLabel12.setBounds(340, 430, 150, 14);

jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
jPanel1.setOpaque(false);

jLabel1.setFont(new java.awt.Font("Calibri", 0, 12));
jLabel1.setText("Simpanan Pokok");

cbSimpananPokok.setFont(new java.awt.Font("Calibri", 0, 12));
cbSimpananPokok.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "--Pilih--", "100000", "150000", "200000", "250000", "300000", "350000", "400000", "450000", "500000" }));

javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1)
.addGap(27, 27, 27)
.addComponent(cbSimpananPokok, javax.swing.GroupLayout.PREFERRED_SIZE, 228, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(113, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(cbSimpananPokok, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);

getContentPane().add(jPanel1);
jPanel1.setBounds(10, 10, 480, 40);

jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
jPanel2.setOpaque(false);

jLabel2.setFont(new java.awt.Font("Calibri", 0, 12));
jLabel2.setText("Simpanan Wajib");

txtSimpananWajib.setFont(new java.awt.Font("Calibri", 0, 12));
txtSimpananWajib.addFocusListener(new java.awt.event.FocusAdapter() {
public void focusLost(java.awt.event.FocusEvent evt) {
txtSimpananWajibFocusLost(evt);
}
});

jLabel3.setFont(new java.awt.Font("Calibri", 0, 12));
jLabel3.setText("/ bulan");

txtBungaPerbulan.setFont(new java.awt.Font("Calibri", 0, 12));

jLabel5.setFont(new java.awt.Font("Calibri", 0, 12));
jLabel5.setText("/ bulan (4%)");

jLabel6.setFont(new java.awt.Font("Calibri", 0, 12));
jLabel6.setText("Bunga");

jLabel4.setFont(new java.awt.Font("Calibri", 0, 12));
jLabel4.setText("Tanggal Tabung");

txtTanggalTabung.setEditable(false);
txtTanggalTabung.setFont(new java.awt.Font("Calibri", 0, 12));

javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2)
.addComponent(jLabel6)
.addComponent(jLabel4))
.addGap(18, 18, 18)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(txtTanggalTabung)
.addComponent(txtBungaPerbulan, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 228, Short.MAX_VALUE)
.addComponent(txtSimpananWajib, javax.swing.GroupLayout.Alignment.TRAILING))
.addGap(18, 18, 18)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel3)
.addComponent(jLabel5))
.addContainerGap(38, Short.MAX_VALUE))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(txtSimpananWajib, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel3))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(txtBungaPerbulan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(txtTanggalTabung, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel4)))
.addComponent(jLabel5)))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel6)))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);

getContentPane().add(jPanel2);
jPanel2.setBounds(10, 60, 480, 112);

jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
jPanel3.setOpaque(false);

jLabel7.setFont(new java.awt.Font("Calibri", 0, 12));
jLabel7.setText("Tanggal Cek");

bCekTabungan.setFont(new java.awt.Font("Calibri", 0, 12));
bCekTabungan.setText("Cek Tabungan");
bCekTabungan.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
bCekTabunganActionPerformed(evt);
}
});

cbTanggalCek.setFont(new java.awt.Font("Calibri", 0, 12));

cbBulanCek.setFont(new java.awt.Font("Calibri", 0, 12));
cbBulanCek.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "--Pilih--", "Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember" }));
cbBulanCek.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cbBulanCekActionPerformed(evt);
}
});

cbTahunCek.setFont(new java.awt.Font("Calibri", 0, 12));
cbTahunCek.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cbTahunCekActionPerformed(evt);
}
});

javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel7)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(cbTanggalCek, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(15, 15, 15)
.addComponent(cbBulanCek, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(cbTahunCek, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(bCekTabungan)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel7)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(cbTanggalCek, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(cbBulanCek, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(cbTahunCek, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(bCekTabungan))
);

getContentPane().add(jPanel3);
jPanel3.setBounds(10, 180, 480, 37);

jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
jPanel5.setOpaque(false);

txtBungaPerhari.setEditable(false);
txtBungaPerhari.setFont(new java.awt.Font("Calibri", 0, 12));

jLabel9.setFont(new java.awt.Font("Calibri", 0, 12));
jLabel9.setText("Bunga dari tanggal :");

jLabel10.setFont(new java.awt.Font("Calibri", 0, 12));
jLabel10.setText("Sampai Tanggal :");

lTgl1.setFont(new java.awt.Font("Calibri", 0, 12));
lTgl1.setText("Tgl1");

lTgl2.setFont(new java.awt.Font("Calibri", 0, 12));
lTgl2.setText("Tgl2");

javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
jPanel5.setLayout(jPanel5Layout);
jPanel5Layout.setHorizontalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(txtBungaPerhari, javax.swing.GroupLayout.PREFERRED_SIZE, 387, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel5Layout.createSequentialGroup()
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel9)
.addComponent(jLabel10))
.addGap(26, 26, 26)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(lTgl2)
.addComponent(lTgl1))))
.addGap(77, 77, 77))
);
jPanel5Layout.setVerticalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel9)
.addComponent(lTgl1))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel10)
.addComponent(lTgl2))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txtBungaPerhari, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);

getContentPane().add(jPanel5);
jPanel5.setBounds(10, 230, 480, 100);

jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
jPanel4.setOpaque(false);

jLabel8.setFont(new java.awt.Font("Calibri", 0, 12));
jLabel8.setForeground(new java.awt.Color(204, 0, 0));
jLabel8.setText("Saldo Anda Sekarang:");

txtSaldoSekarang.setEditable(false);
txtSaldoSekarang.setFont(new java.awt.Font("Calibri", 1, 18));

javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
jPanel4.setLayout(jPanel4Layout);
jPanel4Layout.setHorizontalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel8)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(txtSaldoSekarang, javax.swing.GroupLayout.PREFERRED_SIZE, 249, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(81, Short.MAX_VALUE))
);
jPanel4Layout.setVerticalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(txtSaldoSekarang, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel8))
.addContainerGap(13, Short.MAX_VALUE))
);

getContentPane().add(jPanel4);
jPanel4.setBounds(10, 340, 480, 80);

jLabel11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ksp/back.jpg"))); // NOI18N
jLabel11.setText("jLabel11");
getContentPane().add(jLabel11);
jLabel11.setBounds(0, 0, 500, 450);

java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
setBounds((screenSize.width-507)/2, (screenSize.height-477)/2, 507, 477);
}
private void cbBulanCekActionPerformed(java.awt.event.ActionEvent evt) {
cekTanggal();
}

private void cbTahunCekActionPerformed(java.awt.event.ActionEvent evt) {
cekTanggal();
}
private void txtSimpananWajibFocusLost(java.awt.event.FocusEvent evt) {
HitunganBungaPerbulan();
}

private void bCekTabunganActionPerformed(java.awt.event.ActionEvent evt) {
Hitung();
}
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Utama().setVisible(true);
}
});
}

// Variables declaration - do not modify
private javax.swing.JButton bCekTabungan;
private javax.swing.JComboBox cbBulanCek;
private javax.swing.JComboBox cbSimpananPokok;
private javax.swing.JComboBox cbTahunCek;
private javax.swing.JComboBox cbTanggalCek;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel10;
private javax.swing.JLabel jLabel11;
private javax.swing.JLabel jLabel12;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel7;
private javax.swing.JLabel jLabel8;
private javax.swing.JLabel jLabel9;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JPanel jPanel3;
private javax.swing.JPanel jPanel4;
private javax.swing.JPanel jPanel5;
private javax.swing.JLabel lTgl1;
private javax.swing.JLabel lTgl2;
private javax.swing.JTextField txtBungaPerbulan;
private javax.swing.JTextField txtBungaPerhari;
private javax.swing.JTextField txtSaldoSekarang;
private javax.swing.JTextField txtSimpananWajib;
private javax.swing.JTextField txtTanggalTabung;
}
Read More...

Membuat Folder Rahasia Memakai Notepad

Pada Trik-Trik Komputer kali ini saya akan menerangkan tentang cara membuat folder rahasia dengan hanya menggunakan notepad.

1.Misalkan saya mempunyai folder bernama "Gallery" dan dalam folder ini terdapat file2 penting

2.Kemudian Buka notepad ada pada menu accessories,atau anda dapat membukanya dengan mengetik pada Run(WIN+R)=>notepad

3.Kemudian ketik perintah berikut ini

@echo off

ren Gallery Gallery.{20D04FE0-3AEA-1069-A2D8-08002B30309D}

4.Kemudian simpan file tersebut pada direktori "Gallery" tersebut dengan extensi *.bat, misalkan saya namakan Ngunci.bat, maka pada File Name:"Ngunci.bat" dan pada Save as type:"All Files".


Nah ketika kita mengklik "Ngunci.bat" Maka folder "Gallery" icon-nya akan berubah menjadi "My-Computer" dan ketika mengkliknya akan menuju ke "My-Computer"

Perintah diatas adalah perintah sederhana yaitu hanya merename Folder "Gallery" menjadi Gallery.{20D04FE0-3AEA-1069-A2D8-08002B30309D},nah inti utama dari tutorial ini adalah pada "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" itu dikenali dalam regedit ke My-Computer.


Anda dapat mengubahnya menjadi ke yang lain berikut daftar-Nya:


1.My-computer : {20D04FE0-3AEA-1069-A2D8-08002B30309D}
2.Control panel : {20D04FE0-3AEA-1069-A2D8-08002B30309D}

3.Printers and telecopiers : {20D04FE0-3AEA-1069-A2D8-08002B30309D}
4.Fonts : {20D04FE0-3AEA-1069-A2D8-08002B30309D}
5.Scanners and Cameras : {20D04FE0-3AEA-1069-A2D8-08002B30309D}
6.Network Neighbourhood : {20D04FE0-3AEA-1069-A2D8-08002B30309D}
7.Administration Tools : {20D04FE0-3AEA-1069-A2D8-08002B30309D}
8.Tasks Scheduler : {20D04FE0-3AEA-1069-A2D8-08002B30309D}
9.Web Folders : {20D04FE0-3AEA-1069-A2D8-08002B30309D}
10.My Documents : {450D8FBA-AD25-11D0-98A8-0800361B1103}
11.Recycle Bin : {645FF040-5081-101B-9F08-00AA002F954E}
12.Network Favorites : {208D2C60-3AEA-1069-A2D7-08002B30309D}
13.Default Navigator : {871C5380-42A0-1069-A2EA-08002B30309D}
14.Computer search results folder : {1F4DE370-D627-11D1-BA4F-00A0C91EEDBA}
15.Network Search Results computer : {E17D4FC0-5564-11D1-83F2-00A0C90DC849}


Nah untuk mengembalikan folder berikut perintahnya:

@echo off

ren Gallery.{20D04FE0-3AEA-1069-A2D8-08002B30309D} Gallery

Read More...

DemoFor.java

//----------------------------------------
//Programmer : Bambang Saputro
//Emailme : bambangsaputro@gmail.com
//----------------------------------------
class DemoFor9 {
public static void main(String[] args) {
int[] A = { 2, 5, 3, 4, 8};

int nilaiCari = 4;
boolean ketemu = false;
int indeks = 0;

int i=0;
for ( ; ; ) {
if (ketemu) break; // keluar dari blok pengulangan
if (A[i] == nilaiCari) {
ketemu = true;
indeks = i;
}
i++;
}

if (ketemu) {
System.out.println("Data yang dicari " +
"terdapat pada indeks ke-" + indeks);
} else {
System.out.println("Data yang dicari tidak ditemukan");
}
}
}
Read More...

DemoIfTigaKondisi1.java

//----------------------------------------
//Programmer : Bambang Saputro
//Emailme : bambangsaputro@gmail.com
//----------------------------------------
class DemoIfTigaKondisi1 {
public static void main(String[] args) {

int bilangan = 4;

if (bilangan < 0) { System.out.println(bilangan + " merupakan bilangan NEGATIF."); } else if (bilangan == 0) { System.out.println("Nilai yang dimasukkan adalah NOL"); } else { // (bilangan > 0)
System.out.println(bilangan +
" merupakan bilangan POSITIF.");
}
}
}
Read More...

DemoIfSatuKondisi3.java

//----------------------------------------
//Programmer : Bambang Saputro
//Emailme : bambangsaputro@gmail.com
//----------------------------------------
class DemoIfSatuKondisi3 {
public static void main(String[] args) {

int tahun = 2008;

if ((tahun % 4 == 0) &&
((tahun % 100 != 0) || (tahun % 400 == 0))) {
System.out.println("Tahun " + tahun +
" merupakan tahun kabisat.");
}
}
}
Read More...

Video Gallery