PROGRAM RAMALAN BINTANG
import java.awt.Color;
import java.awt.Font;
import javax.swing.*;
import java.awt.event.*;
/**
*
* @author Rachmat Jatnika
*/
public class mistik extends JFrame
{
mistik()
{
setTitle("Ramalan Bintang");
setLocation(500,400);
setSize(425, 350);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setVisible(true);
}
void komponen()
{
//membuat label
JLabel tgl=new JLabel("Tanggal lahir");
JLabel bln=new JLabel("Bulan lahir");
JLabel thn=new JLabel("Tahun Lahir");
JLabel b=new JLabel("Bintang Anda");
JLabel kc=new JLabel("Kesukaan Club");
JLabel bp=new JLabel("Bintang Pemain");
JLabel h=new JLabel("Hobby");
JLabel k=new JLabel("Kerja");
JLabel rm=new JLabel("Ramalan anda :");
JLabel mon=new JLabel("Bulan");
JLabel nm=new JLabel("Nama");
//font label
tgl.setFont(new Font("Cambria",Font.BOLD,14));
bln.setFont(new Font("Cambria",Font.BOLD,14));
thn.setFont(new Font("Cambria",Font.BOLD,14));
b.setFont(new Font("Cambria",Font.BOLD,14));
kc.setFont(new Font("Cambria",Font.BOLD,14));
bp.setFont(new Font("Cambria",Font.BOLD,14));
h.setFont(new Font("Cambria",Font.BOLD,14));
k.setFont(new Font("Cambria",Font.BOLD,14));
mon.setFont(new Font("Cambria",Font.BOLD,14));
nm.setFont(new Font("Cambria",Font.BOLD,14));
//membuat teks fild
final JTextField tg=new JTextField(5);
final JTextField bl=new JTextField(5);
bl.setToolTipText("isi dengan angka");
final JTextField th=new JTextField(5);
final JTextField rb=new JTextField(300);
final JTextField ksc=new JTextField(300);
final JTextField bip=new JTextField(300);
final JTextField hb=new JTextField(300);
final JTextField kj=new JTextField(300);
final JTextField tb=new JTextField(25);
final JTextField nma=new JTextField(25);
//pengaturan font output
rb.setFont(new Font("Cambria",Font.BOLD,20));
ksc.setFont(new Font("Cambria",Font.ITALIC,13));
bip.setFont(new Font("Cambria",Font.ITALIC,13));
bip.setFont(new Font("Cambria",Font.ITALIC,13));
hb.setFont(new Font("Cambria",Font.ITALIC,13));
kj.setFont(new Font("Cambria",Font.ITALIC,13));
tb.setFont(new Font("Calibri",Font.BOLD,14));
nma.setFont(new Font("Calibri",Font.BOLD,14));
//membuat button
JButton ramal=new JButton("Ramal");
JButton hapus=new JButton("Hapus");
JButton ex=new JButton("Exit");
//warna font pada button
ramal.setForeground(Color.BLUE);
hapus.setForeground(Color.MAGENTA);
ex.setForeground(Color.RED);
getContentPane().setLayout(null);
getContentPane().add(tgl);
getContentPane().add(bln);
getContentPane().add(thn);
getContentPane().add(b);
getContentPane().add(kc);
getContentPane().add(bp);
getContentPane().add(h);
getContentPane().add(k);
getContentPane().add(rm);
getContentPane().add(mon);
getContentPane().add(nm);
getContentPane().add(tg);
getContentPane().add(bl);
getContentPane().add(th);
getContentPane().add(rb);
getContentPane().add(ksc);
getContentPane().add(bip);
getContentPane().add(hb);
getContentPane().add(kj);
getContentPane().add(tb);
getContentPane().add(nma);
getContentPane().add(ramal);
getContentPane().add(hapus);
getContentPane().add(ex);
//pengaturan label
tgl.setBounds(10, 10, 100, 25);
bln.setBounds(10, 40, 100, 25);
thn.setBounds(10, 70, 100, 25);
rm.setBounds(10, 100, 100, 25);
b.setBounds(10, 122, 100, 25);
kc.setBounds(10, 152, 100, 25);
bp.setBounds(10, 182, 100, 25);
h.setBounds(10, 212, 100, 25);
k.setBounds(10, 242, 100, 25);
mon.setBounds(165, 40, 100, 25);
nm.setBounds(165, 10, 100, 25);
//pengaturan teks fild
tg.setBounds(100, 10, 50, 25);
bl.setBounds(100, 40, 50, 25);
th.setBounds(100, 70, 50, 25);
rb.setBounds(125, 122, 275, 25);
ksc.setBounds(125, 152, 275, 25);
bip.setBounds(125, 182, 275, 25);
hb.setBounds(125, 212, 275, 25);
kj.setBounds(125, 242, 275, 25);
tb.setBounds(210, 40, 110, 25);
nma.setBounds(210, 10, 110, 25);
//pengaturan button
ramal.setBounds(125, 272, 70, 25);
hapus.setBounds(225, 272, 70, 25);
ex.setBounds(329, 272, 70, 25);
setVisible(true);
//proses
ramal.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
int t=Integer.parseInt(tg.getText());
int b=Integer.parseInt(bl.getText());
if (b==1)
{
tb.setText("JANUARI");
if (t<=18)
{
rb.setText("CAPRICORN");
ksc.setText("Manchester Unitid, Valencia, Juventus");
bip.setText("Cicarito, silva, buffon");
hb.setText("masak, Renang");
kj.setText("Perusahaan");
}
else if (t<=31)
{
rb.setText("AQUARIUS");
ksc.setText("Chelsea, Barcelona, As Roma");
bip.setText("Terry, Villa, Cafu");
hb.setText("nongkrong, pendaki");
kj.setText("pedagang");
}
else
{
JOptionPane.showMessageDialog(null,
"tanggal yang anda masukan salah");
}
}
else if (b==2)
{
tb.setText("FEBRUARI");
if (t<=18)
{
rb.setText("AQUARIUS");
ksc.setText("Chelsea, Barcelona, As Roma");
bip.setText("Terry, Villa, Cafu");
hb.setText("nongkrong, pendaki");
kj.setText("pedagang");
}
else if (t<=29)
{
rb.setText("PISCES");
ksc.setText("Arsenal, Baecelona, Ac Milan");
bip.setText("berntner, Messi, Maldini");
hb.setText("Renang, futsal");
kj.setText("Buruh Lepas");
}
else
{
JOptionPane.showMessageDialog(null,
"tanggal yang anda masukan salah");
}
}
else if (b==3)
{
tb.setText("MARET");
if (t<=20)
{
rb.setText("PISCES");
ksc.setText("Arsenal, Baecelona, Ac Milan");
bip.setText("berntner, Messi, Maldini");
hb.setText("Renang, futsal");
kj.setText("Buruh Lepas");
}
else if (t<=31)
{
rb.setText("ARIES");
ksc.setText("Manchester United, Real Madrid, Ac Milan");
bip.setText("Ronney, C Ronaldo, Ibrahimovic");
hb.setText("Futsal, Sepak bola");
kj.setText("Pejabat");
}
else
{
JOptionPane.showMessageDialog(null,
"tanggal yang anda masukan salah");
}
}
else if (b==4)
{
tb.setText("APRIL");
if (t<=19)
{
rb.setText("ARIES");
ksc.setText("Manchester United, Real Madrid, Ac Milan");
bip.setText("Ronney, C Ronaldo, Ibrahimovic");
hb.setText("Futsal, Sepak bola");
kj.setText("Pejabat");
}
else if (t<=30)
{
rb.setText("TAURUS");
ksc.setText("Totenham, Atletico Madrid, Livorno");
bip.setText("G Bale, Aguero, Pepe");
hb.setText("Voli, Catur");
kj.setText("Petani");
}
else
{
JOptionPane.showMessageDialog(null,
"tanggal yang anda masukan salah");
}
}
else if (b==5)
{
tb.setText("MEI");
if (t<=20)
{
rb.setText("TAURUS");
ksc.setText("Totenham, Atletico Madrid, Livorno");
bip.setText("G Bale, Aguero, Pepe");
hb.setText("Voli, Catur");
kj.setText("Petani");
}
else if (t<=31)
{
rb.setText("GEMINI");
ksc.setText("Manchester City, Sevilla, Inter Milan");
bip.setText("owen, luis fabiano, nani");
hb.setText("pendaki, futsal");
kj.setText("PNS");
}
else
{
JOptionPane.showMessageDialog(null,
"tanggal yang anda masukan salah");
}
}
else if (b==6)
{
tb.setText("JUNI");
if (t<=21)
{
rb.setText("GEMINI");
ksc.setText("Manchester City, Sevilla, Inter Milan");
bip.setText("owen, luis fabiano, nani");
hb.setText("pendaki, futsal");
kj.setText("PNS");
}
else if (t<=30)
{
rb.setText("CANCER");
ksc.setText("Arsenal, Real Madrid, Juventus");
bip.setText("fabregas, ozil, del piero");
hb.setText("game, membaca");
kj.setText("Perusahaan");
}
else
{
JOptionPane.showMessageDialog(null,
"tanggal yang anda masukan salah");
}
}
else if (b==7)
{
tb.setText("JULI");
if (t<=22)
{
rb.setText("CANCER");
ksc.setText("Arsenal, Real Madrid, Juventus");
bip.setText("fabregas, ozil, del piero");
hb.setText("game, membaca");
kj.setText("Perusahaan");
}
else if (t<=31)
{
rb.setText("LEO");
ksc.setText("Everton, Villareal, Lazio");
bip.setText("Valdes, thuram, xavi");
hb.setText("nonton, nongkrong");
kj.setText("Pedagang");
}
else
{
JOptionPane.showMessageDialog(null,
"tanggal yang anda masukan salah");
}
}
else if (b==8)
{
tb.setText("AGUSTUS");
if (t<=22)
{
rb.setText("LEO");
ksc.setText("Everton, Villareal, Lazio");
bip.setText("Valdes, thuram, xavi");
hb.setText("nonton, nongkrong");
kj.setText("Pedagang");
}
else if (t<=31)
{
rb.setText("VIRGO");
ksc.setText("Fulham, Osasuna, Palermo");
bip.setText("Zidane, Cassilas, Puyol");
hb.setText("membaca, mendaki");
kj.setText("PNS");
}
else
{
JOptionPane.showMessageDialog(null,
"tanggal yang anda masukan salah");
}
}
else if (b==9)
{
tb.setText("SEPTEMBER");
if (t<=22)
{
rb.setText("VIRGO");
ksc.setText("Fulham, Osasuna, Palermo");
bip.setText("Zidane, Cassilas, Puyol");
hb.setText("membaca, mendaki");
kj.setText("PNS");
}
else if (t<=30)
{
rb.setText("LIBRA");
ksc.setText("Newcastle, Levante, Chievo");
bip.setText("Ronaldo, Figo, Rooney");
hb.setText("Sepak Bola, Voli");
kj.setText("Buruh lepas");
}
else
{
JOptionPane.showMessageDialog(null,
"tanggal yang anda masukan salah");
}
}
else if (b==10)
{
tb.setText("OKTOBER");
if (t<=23)
{
rb.setText("LIBRA");
ksc.setText("Newcastle, Levante, Chievo");
bip.setText("Ronaldo, Figo, Rooney");
hb.setText("Sepak Bola, Voli");
kj.setText("Buruh lepas");
}
else if (t<=31)
{
rb.setText("SCORPION");
ksc.setText("Arsenal, Barcelona, As Roma");
bip.setText("Messi, Arsavin, Totti");
hb.setText("Futsal, Catur");
kj.setText("Petani");
}
else
{
JOptionPane.showMessageDialog(null,
"tanggal yang anda masukan salah");
}
}
else if (b==11)
{
tb.setText("NOVEMBER");
if (t<=21)
{
rb.setText("SCORPION");
ksc.setText("Arsenal, Barcelona, As Roma");
bip.setText("Messi, Arsavin, Totti");
hb.setText("Futsal, Catur");
kj.setText("Petani");
}
else if (t<=30)
{
rb.setText("SAGITARIUS");
ksc.setText("Chelsea, Real Madrid, Inter Milan");
bip.setText("Drogba, Di Maria, Zanneti");
hb.setText("Sepak Bola, Bulu Tangkis");
kj.setText("Perusahaan");
}
else
{
JOptionPane.showMessageDialog(null,
"tanggal yang anda masukan salah");
}
}
else if (b==12)
{
tb.setText("DESEMBER");
if (t<=21)
{
rb.setText("SAGITARIUS");
ksc.setText("Chelsea, Real Madrid, Inter Milan");
bip.setText("Drogba, Di Maria, Zanneti");
hb.setText("Sepak Bola, Bulu Tangkis");
kj.setText("Perusahaan");
}
else if (t<=31)
{
rb.setText("CAPRICORN");
ksc.setText("Manchester Unitid, Valencia, Juventus");
bip.setText("Cicarito, silva, buffon");
hb.setText("masak, Renang");
kj.setText("Perusahaan");
}
else
{
JOptionPane.showMessageDialog(null,
"tanggal yang anda masukan salah");
}
}
else
{
JOptionPane.showMessageDialog(null,
"bulan yang anda masukan salah");
}
}
});
hapus.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
tg.setText("");
bl.setText("");
th.setText("");
rb.setText("");
ksc.setText("");
bip.setText("");
hb.setText("");
kj.setText("");
tb.setText("");
nma.setText("");
}
});
ex.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
JOptionPane.showMessageDialog(null, "Terima Kasih Anda Telah Menggunakan\n"+
"Software Kami\n\n"+
"Design By : Rachmat Jatnika\n\n",
" .: Thanx's", JOptionPane.INFORMATION_MESSAGE);
System.exit(0);
}
});
}
public static void main(String[] args)
{
mistik a=new mistik();
a.komponen();
}
}
Promo Yang berlaku Di www.Mariobola.Info :
BalasHapusHOT PROMO :
- Bonus Deposit Setiap Hari 10% (Max Bonus 200ribu) Minimal TO 3x
- Bonus Cashback Mingguan Di Sportbook 5% - 15% (Minimal Kekalahan 500ribu)
- Bonus Refrensi Mingguan Di Permainan Sportbook 2,5%
- Bonus Rollingan Mingguan Sportbook Refferal 0,1%
- Bonus Cashback Slot Mingguan 5% (Minimal Kekalahan 500Ribu)
- Bonus Rollingan Poker 0.2%
Diskon Togel :
Discount 4D : 66.00% , 3D : 59.5.00% , 2D : 29.5.00%
Kombinasi = 5%
Shio = 12%
Colok Angka (1A) = 5%
Colok Macau (2A) = 15%
Colok Naga (3A) = 15%
Colok Jitu = 8%
Silakan Bossku^^
me to my website to view the contents of my website"
BalasHapusANGKASA BOLA - SITUS MAIN GAME ONLINE TERBESAR DI INDONESIA HANYA
DENGAN 1 USER ID SUDAH BISA BERMAIN SEMUA GAME. Join US ! klik link di
bawah ini ?
--> Situs Judi Bola
--> BANDAR SLOT
--> Bonus New Member
--> Berita Olahraga
--> Prediksi Parlay Jitu
Untuk Info Dan Bonus Menariknya Bisa Hubungi Kami Di Bawah Ini :
Whatsapp : +855 96 826 9586
DAFTAR DISINI : Dapatkan ID Hoki Disini
Ayo buruann , mana tau kamu menjadi jutawan setelah bergabung dengan kami ..
--> Group FB CURHAT PARLAY GRUP ANGKASA BOLA
--> Instagram = INSTAGRAM ANGKASABOLA
--> Pinterest = PINTEREST ANGKASABOLA
#ANGKASABOLA #ANGKASABOLALOUNGE #LIGAANGKASA #VIPANGKASABOLA #AGENJUDIONLINE