Demo Site

SCRIP JAVA PUZELL

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.awt.Font.*;
    public class Puzel extends JFrame implements ActionListener{
    private JButton tombol[][];
    private JPanel PapanMainan,PapanJudul,PapanMenu;
    private String [] Tt = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O"," ",""};
    private int indexlabel = 0;
    public Puzel ( String title ){
        super ( title );

        // Buat Judul
        PapanJudul = new JPanel();
        JLabel judul = new JLabel ("Puzel");
        judul.setAlignmentY(SwingConstants.CENTER);
        judul.setHorizontalTextPosition(SwingConstants.CENTER);
                PapanJudul.add(judul);

                // BUat menu
        JButton acak = new JButton ("Acak");
        acak.addActionListener(this);
                PapanMenu = new JPanel();
        PapanMenu.add(acak);
                PapanMenu.setBackground(Color.BLUE);

                // Buat Tombol ABC
        PapanMainan = new JPanel();
        PapanMainan.setLayout( new GridLayout(4,4,4,4));
        tombol = new JButton[4][4];
        this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
                Container PapanUtama = this.getContentPane();
                int index = 0;
        for(int i=0;i<=3;i++){
        for(int j=0;j<=3;j++){
            tombol[i][j] = new JButton(Tt[index]);
            tombol[i][j].setFont( new java.awt.Font("",1,38));
            PapanMainan.add(tombol[i][j]);
            index ++;
            tombol[i][j].addActionListener(this);

            }
        }
             PapanUtama.setLayout(new BorderLayout());
             PapanUtama.add(PapanJudul,BorderLayout.NORTH);
             PapanUtama.add(PapanMainan,BorderLayout.CENTER);
             PapanUtama.add(PapanMenu,BorderLayout.SOUTH);
             acakAcak();
        }

 public void acakAcak(){
     String [] acak = {"D","A","B","F","G","K","L","C","E","O"," ","M","N","H",
     "I","J"};
            indexlabel++;
            if (indexlabel>12){indexlabel = 1;}

                for(int i=0;i<=3;i++){
                for(int j=0;j<=3;j++){
            if (indexlabel>15){
                indexlabel = 0;
            }
            tombol[i][j].setText(acak[indexlabel]);
            tombol[i][j].setEnabled(true);
            indexlabel++;
                }
          }
 }
 public void actionPerformed(ActionEvent a){
     String l = a.getActionCommand();
     int indexi = 0,indexj=0;
     Boolean cek = false;

     // acak
        if(l.equals("Acak")){
            acakAcak();
            for(int i=0;i<=3;i++){
                for(int j=0;j<=3;j++){
                    if (tombol[i][j].getText().equals("Acak")){
                        cek = true;
                    }
                }
            }

// acak
        }
// acak
     if (l !=" "){
       for(int i=0;i<=3;i++){
           for(int j=0;j<=3;j++){
               if(a.getSource()== tombol[i][j]){
                   indexi = i;
                   indexj = j;

               }
           }
       }
if(((indexi==1)|(indexi=2))&&((indexj==1)|(indexj==2))){
    if(tombol[indexi-1][indexj].getText().equals(" ")){
        tombol[indexi][indexj].setText(" ");
        tombol[indexi-1][indexj].setText(l);

    }else if (tombol[indexi+1][indexj].getText().equals(" ")){
         tombol[indexi][indexj].setText(" ");
         tombol[indexi+1][indexj].setText(l);

    }else if (tombol[indexi][indexj-1].getText().equals(" ")){
         tombol[indexi][indexj].setText(" ");
         tombol[indexi][indexj-1].setText(l);

    }else if (tombol[indexi][indexj+1].getText().equals(" ")){
         tombol[indexi][indexj].setText(" ");
         tombol[indexi][indexj+1].setText(l);
    }
}else if (indexi==0){
    if (indexj==0){
        if (tombol[indexi+1][indexj].getText().equals(" ")){
            tombol[indexi][indexj].setText(" ");
            tombol[indexi+1][indexj].setText(l);
        }else if (tombol[indexi][indexj+1].getText().equals(" ")){
            tombol[indexi][indexj].setText(" ");
            tombol[indexi+1][indexj].setText(l);
        }
    }else if (indexj==3){
        if (tombol[indexi][indexj-1].getText().equals(" ")){
            tombol[indexi][indexj].setText(" ");
            tombol[indexi][indexj-1].setText(l);
    }else if (tombol[indexi+1][indexj].getText().equals(" ")){
            tombol[indexi][indexj].setText(" ");
            tombol[indexi+1][indexj].setText(l);
    }
    }else{

    }if (tombol[indexi+1][indexj].getText().equals(" ")){
            tombol[indexi][indexj].setText(" ");
            tombol[indexi+1][indexj].setText(l);
    }else if (tombol[indexi][indexj-1].getText().equals(" ")){
            tombol[indexi][indexj].setText(" ");
            tombol[indexi][indexj-1].setText(l);
     }else if (tombol[indexi][indexj+1].getText().equals(" ")){
            tombol[indexi][indexj].setText(" ");
            tombol[indexi][indexj+1].setText(l);
     }else if(indexi==3){
         if (indexj==0){
         if (tombol[indexi-1][indexj].getText().equals(" ")){
             tombol[indexi][indexj].setText(" ");
             tombol[indexi-1][indexj].setText(l);
    }else if (tombol[indexi][indexj+1].getText().equals(" ")){
            tombol[indexi][indexj].setText(" ");
            tombol[indexi][indexj+1].setText(l);
        }
         }else if(indexj==3){
             if (tombol[indexi][indexj-1].getText().equals(" ")){
            tombol[indexi][indexj].setText(" ");
            tombol[indexi][indexj-1].setText(l);
        }else if (tombol[indexi][indexj-1].getText().equals(" ")){
            tombol[indexi][indexj].setText(" ");
            tombol[indexi-1][indexj].setText(l);
         }
         }else{
             if (tombol[indexi][indexj-1].getText().equals(" ")){
            tombol[indexi][indexj].setText(" ");
            tombol[indexi][indexj-1].setText(l);
        }else if (tombol[indexi][indexj+1].getText().equals(" ")){
            tombol[indexi][indexj].setText(" ");
            tombol[indexi][indexj+1].setText(l);
         }else if (tombol[indexi-1][indexj].getText().equals(" ")){
            tombol[indexi][indexj].setText(" ");
            tombol[indexi-1][indexj].setText(l);
         }
         }
     }else if(indexj==0){
         if (tombol[indexi][indexj+1].getText().equals(" ")){
            tombol[indexi][indexj].setText(" ");
            tombol[indexi][indexj+1].setText(l);
    }else if (tombol[indexi-1][indexj].getText().equals(" ")){
            tombol[indexi][indexj].setText(" ");
            tombol[indexi-1][indexj].setText(l);
    }else if (tombol[indexi+1][indexj].getText().equals(" ")){
            tombol[indexi][indexj].setText(" ");
            tombol[indexi+1][indexj].setText(l);
    }
    }
     }else if(indexj==3){
       if (tombol[indexi][indexj-1].getText().equals(" ")){
            tombol[indexi][indexj].setText(" ");
            tombol[indexi][indexj-1].setText(l);
    }else if (tombol[indexi+1][indexj].getText().equals(" ")){
            tombol[indexi][indexj].setText(" ");
            tombol[indexi+1][indexj].setText(l);
    }else if (tombol[indexi-1][indexj].getText().equals(" ")){
            tombol[indexi][indexj].setText(" ");
            tombol[indexi-1][indexj].setText(l);
    }
     }
}
       // cek menang
       cek=true;
        int x=0;
        for(int i=0;i<=3;i++){
            for(int j=0;j<=3;j++){
                   if (!tombol[i][j].getText().equals(Tt[x])){
                       cek = false;
                   }
x++;
            }
        }
        if(cek = true){
            JOptionPane.showMessageDialog(null,"Selamat Anda Menang!","Menang.....",JOptionPane.PLAIN_MESSAGE);
            for(int i=0;i<=3;i++){
                for(int j=0;j<=3;j++){
                    tombol[i][j].setEnabled(false);
                }
                }
            }
        }
     public static void main(String[]args){
         Puzel f = new Puzel("maen puzel");
         f.pack();// setsize(300,300);
         f.setLocation(100,100);
         f.setVisible(true);
     }
 }
Lanjut.....

Selasa, 22 Juni 2010 pada jam 22.50 , 1 Comment

PC Bagi Para Gemer's

Alienware Area-51 ALX

 

 

 

 

 

 

 

Specifications

Motherboard and Chassis Form Factor
  • ATX Motherboard, Full-Tower Chassis
Operating System

  • Genuine Windows 7 Home Premium 64-Bit
System Dimensions
  • 557.6 mm (22") - Height
  • 595.5 mm (23.4") – Height - Vent Open
  • 656.3 mm (25.8") – Depth
  • 277.1 mm (10.9") – Width
  • 15.4mm (0.6") - Deployed Rear Foot Height Adder
  • Average Weight - 38 kgs (84 lbs.)
Audio
  • Internal High-Definition 7.1 Audio (Standard)
Network
  • Integrated 10/100/1000Mbps Ethernet NIC (Standard)
Motherboard
  • AlienwareTM Approved Intel X58 ATX Motherboard
Chipset
  • Intel X58 Express Chipset w/ Unlocked BIOS for Overclocking
HDTV Tuners Options
  • Internal PCI-e Digital/Analog TV Tuner (Optional)
Processor
  • Intel CoreTM i7 975 3.33GHz (8MB Cache) Extreme Edition Quad Core Processor
Front I/O Ports
  • (3x) High-Speed USB 2.0
  • (1x) eSATA
  • (1x) Firewire IEEE 1394
  • (1x) Microphone In
  • (1x) Headphone/Speaker Out
Processor Cooling
  • High-Performance Liquid Cooling
Memory
  • 6GB and Triple-Channel 1600MHz DDR32
Video Card
  • Dual 1GB GDDR5 ATI Radeon HD 5870 - ATI CrossFireX & DirectX 11 Enabled
Exclusive ALX Chassis Features
  • Anodized Aluminum Chassis Finish
  • Motorized Front Door
Rear I/O Ports
  • (1x ) eSATA
  • (1x) RJ-45 Gigabit Ethernet
  • (6x) High-Speed USB 2.0
  • (1x) Firewire IEEE 1394
  • (1x) Microphone In
  • (1x) Line-In
  • (1x) Front Left/Right Speakers
  • (1x) Center Speaker
  • (1x) Rear Left/Right Speakers
  • (1x) Side Left/Right Speakers
  • (1x) SPDIF Digital Output (TOSLINK)
  • (1x) SPDIF Digital Output (Coax)
  • (2x) PS/2 (mouse/keyboard)
Supported Storage Options- Hard Drives
  • Up to 6 SATA2 3.0Gb/s Storage Drives
  • 7,200RPM Hard Drives - 500GB, 640GB, 750GB, 1TB1 1.5TB
  • 10,000RPM Hard Drives - 300GB
  • Solid State Drive Technology - 256GB
  • Supporting RAID 0, RAID 1, and RAID 1+0 Storage Configurations
Lanjut.....

Selasa, 01 Juni 2010 pada jam 09.04 , 0 Comments

PC n Laptop Khusus gaming..............

Dell memperkenalkan 5 perangkat khusus gaming terbaru. Laptop ini merupakan pengembangan bersama antara Dell dengan Alienware. Empat di antaranya adalah desktop dan 1 notebook.
Aurora
alienware_aurora
Alienware Aurora and Aurora ALX –
Seri Aurora menggunakan prosesor baru Intel Core i7 termasuk pilihan Extreme Edition yang dioverclock sampai 3.6 GHz. Menurut Dell, seri ini didesain untuk gamer hardcore, pro-level HD audio, video editing dan animasi 3D. Tambahan, perangkat Aurora dapat mengakomodasi sampai dua VGA card ATI Radeon HD 5870, memori 24 GB DDR3 1333 Mhz atau 12 GB DDR3 1600MHz dan harddisk 2TB (2000 GB bok…)
Harga mulai dari $1,299 ( 13 jutaan rupiah)
Area 51
alienware_area51
Seri Area-51 dan Area-51 ALX ditargetkan untuk “extreme gamer” dan penyuka teknologi. Desktop ini menggunakan prosesor Intel Core i7 yanng dioverclock sampai 3.86 GHz. Unit ini mengikutkan dukungan VGA Card Nvidia GeForce GTX 295 dan memori 12GB DDR3 dengan clock 1333 atau 1600Mhz. DAn terakhir Area 51 menawarkan 6 HD bays bebas kabel untuk drive 7.200 RPM/10.000 RPM, SSD dan konfigurasi RAID 1 maupun 10.
Harga untuk Area 51 dimulai dari 2000 USD atau 20 jutaan rupiah.
M15x
alienware_m15x
Yang terakhir adalah laptop Alienware M15x yang dipersenjatai proseosr mobile Core i7 dengan 1GB NVIDIA GeForce GTX 260M GPU serta memori sampai 8 GB DDR3 1333 MHz.
Harga dari USD 1500 atau 15 jutaan rupiah.
Bagaimana? Berminat?
Lanjut.....

pada jam 08.54 , 0 Comments

Review Laptop Terkenal dan Terbaik di Dunia Pada Tahun 2010
Laptop adalah barang elektronik yang paling banyak digandrungi oleh banyak manusia didunia saat ini apalagi di zaman yang serba modern ini. Dan manusia modern juga ingin tampil stylish dan serba up to date, tetapi kebanyakan dari kita ingin mempunyai laptop yang bagus tapi dengan harga yang terjangkau plus berkualitas tinggi serta spesifikasi yang lengkap berbeda dengan Netbook yang bentuknya agak mini dan spesifikasinya ada yang dikurangi seperti tidak adanya cd/dvd room, karena barang elektronik akan lebih cepat berkembang dan setiap tahun akan mengeluarkan barang dengan spesifikasi terbaru yang canggih.
Maka dari itu supaya anda tidak menyesal dikemudian hari tidak ada salahnya, anda mempelajari spesifikasi dan harga dari laptop yang akan dikupas tuntas dibawah ini, yang saya ambil dari sumber luar negri yaitu toptenreviews.com dan semoga saja bisa berguna, terutama bagi anda yang sedang bimbang dengan keputusan anda dalam memilih laptop. Berikut dibawah ini peringkat 10 besar laptop terbaik di dunia pada tahun 2010 :

1. Peringkat Pertama DELL INSPIRON 14
SPESIFIKASI :
Processor : Intel Core 2 Duo T6600, Memory : 4 GB, Hard Drive : 320 GB, Screen Resolution : 1366×768, Video Card : Intel GMA 4500MHD, Video Memory : 3 GB, Battery Life : 6,5 hour, Optical Drive : CD/DVD Burner, Garansi : 1 Tahun, WIFI : Ada, Webcam : 1,3 MP, Memory Card Reader : 7-in-1 Card reader, Audio : Integrated, Height : 1,2 In,  Weight : 5,1 lbs, Ukuran Layar : 14,o in, Operating System : Windows 7 Premium 64bit .
Harga : $ 603,85
2. Peringkat Kedua HP COMPAQ 6730b
SPESIFIKASI :
Processor : Intel Core 2 Duo P8600, Memory : 2 GB, Hard Drive : 320 GB, Screen Resolution : 1280×800, Video Card : Intel GMA 4500MDH, Video Memory : 3 GB, Battery Life : 6 hour, Optical Drive : DVD +/- RW, Garansi : 1 Tahun, WIFI : Ada, Webcam : VGA, Memory Card Reader : tidak ada, Audio : Integrated, Height : 1,3 In,  Weight : 5,9 lbs, Ukuran Layar : 15,4 in, Operating System : Windows 7 Pro
Harga : $ 911,87
3. Peringkat Ketiga SONY VAIO SR SERIES
SPESIFIKASI :
Processor : Intel Core 2 Duo T6600, Memory : 4 GB, Hard Drive : 250 GB, Screen Resolution : 1280×800, Video Card : Intel GMA 4500MHD, Video Memory : 512 MB, Battery Life : 6,5 hour, Optical Drive : DVD +/- RW, Garansi : 1 Tahun, WIFI : Ada, Webcam : Integrated, Memory Card Reader : SD/CPRM, Audio : Integrated, Height : 1,5 In,  Weight : 4,4 lbs, Ukuran Layar : 13,3 in, Operating System : Windows 7 Premium 64bit .
Harga : $ 949,99
4. Peringkat Keempat DELL INSPIRON 15
SPESIFIKASI :
Processor : Intel Core 2 Duo T4300, Memory : 2 GB, Hard Drive : 320 GB, Screen Resolution : 1366×768, Video Card : Intel GMA X4500HD, Video Memory : 256 MB, Battery Life : 3 hour, Optical Drive : DVD +/- RW, Garansi : 1 Tahun, WIFI : Ada, Webcam : 1,3 MP, Memory Card Reader : 7-in-1 Card reader, Audio : Integrated, Height : 1,5 In,  Weight : 5,8 lbs, Ukuran Layar : 15,6 in, Operating System : Windows 7 Premium 64bit .
Harga : $ 649,99
5. Peringkat Kelima APPLE MACBOOK
SPESIFIKASI :
Processor : Intel Core 2 Duo 2,26 GHZ, Memory : 3 GB, Hard Drive : 250 GB, Screen Resolution : 1280×800, Video Card : GeForce 9400M, Video Memory : 256 MB, Battery Life : 7 hour, Optical Drive : DVD +/- RW, Garansi : 1 Tahun, WIFI : Ada, Webcam : iSight, Memory Card Reader : Tidak ada, Audio : Integrated, Height : 1,1 In,  Weight : 4,7 lbs, Ukuran Layar : 13,3 in, Operating System : Mac OS Tiger .
Harga : $ 999,99
6. Peringkat Keenam GATEWAY 7802U
SPESIFIKASI :
Processor : Intel Core 2 Duo T6600, Memory : 4 GB, Hard Drive : 500 GB, Screen Resolution : 1600×900, Video Card : Intel GMA 4500MHD, Video Memory : 1759 MB, Battery Life : 5 hour, Optical Drive : DVD +/- RW, Garansi : 1 Tahun, WIFI : Ada, Webcam : Integrated, Memory Card Reader : Multi-in-1 Card Reader, Audio : Integrated, Height : 1,4 In,  Weight : 7,4 lbs, Ukuran Layar : 17,3 in,Operating System : Windows 7 Premium  .
Harga : $ 649,96
7. Peringkat Ketujuh HP PROBOOK 5310m
SPESIFIKASI :
Processor : Intel Core 2 Duo, Memory : 2 GB, Hard Drive : 320 GB, Screen Resolution : 1366×768, Video Card : Intel GMA 4500MHD, Video Memory : 256 MB, Battery Life : 5 hour, Optical Drive : DVD +/- RW, Garansi : 1 Tahun, WIFI : Ada, Webcam : 2,0 MP, Memory Card Reader : SD Memory Card, Audio : Integrated, Height : 0,9 In,  Weight : 3,7 lbs, Ukuran Layar : 13,3 in, Operating System : Windows 7 Pro
Harga : $ 699,00
8. Peringkat Kedelapan HP COMPAQ 6535b
SPESIFIKASI :
Processor : AMD Turion X2, Memory : 2 GB, Hard Drive : 250 GB, Screen Resolution : 1280×800, Video Card : ATI Radeon HD 3200, Video Memory : 256 MB, Battery Life : 4,5 hour, Optical Drive : DVD +/- RW, Garansi : 1 Tahun, WIFI : Ada, Webcam : Optional, Memory Card Reader : SD Memory Card, Audio : 24 bit DAC, Height : 1,3 In,  Weight : 5,3 lbs, Ukuran Layar : 15,4 in,Operating System : Windows Vista Buisness  .
Harga : $ 699,00
9. Peringkat Kesembilan SONY VAIO BZ SERIES
SPESIFIKASI :
Processor : Intel Core 2 Duo P8700, Memory : 4 GB, Hard Drive : 320 GB, Screen Resolution : 1280×800, Video Card : Intel 4500 MHD, Video Memory : 1759 MB, Battery Life : 5 hour, Optical Drive : DVD +/- RW, Garansi : 1 Tahun, WIFI : Ada, Webcam : Integrated, Memory Card Reader : SD Memory Card, Audio : Integrated, Height : 1,2 In,  Weight : 5,8 lbs, Ukuran Layar : 15,4 in, Operating System : Windows 7 Premium 64bit .
Harga : $ 969,00
10. Peringkat Kesepuluh DELL INSPIRON 17
SPESIFIKASI :
Processor : Intel Core 2 Duo T6600, Memory : 4 GB, Hard Drive : 500 GB, Screen Resolution : 1920×1200, Video Card : Intel GMA X4500HD, Video Memory : 256 MB, Battery Life : 4,5 hour, Optical Drive : DVD +/- RW, Garansi : 1 Tahun, WIFI : Ada, Webcam : 1,3 MP, Memory Card Reader : 7-in-1 Card reader, Audio : Integrated, Height : 1,6 In,  Weight : 8,7 lbs, Ukuran Layar : 17,3 in, Operating System : Windows 7 Premium 64bit .
Harga : $ 649,99
Lanjut.....

pada jam 08.40 , 0 Comments