KeyPreview di JPanel

Kita dapat membuat Propertiy KeyPreview di JPanel pada java seperti pada Visual Basic .NET atau pada Delphi (kalo tidak salah), property ini mempunyai type data boolean biasanya, dan jika bernilai true, maka KeyListener pada object swing selain JPanel akan dialihkan ke object JPanel walaupun JPanel tidak sedang mendapat focus pada saat event KeyListener dijalankan, disini sebagai contoh kita akan membuat interface tRedispatchKeyEvent  : Read the rest of this post »

Posted on March 22, 2010 at 3:43 pm by ataherster · Permalink · Leave a comment
In: Articles, Java, Tips · Tagged with: , , , , , , , , , ,

Auto Upper Case / Lower Case di JTextField

Untuk membuat text di dalam JTextField otomatis huruf besar (Upper Case) maupun huruf kecil (Lower Case), ataupun Normal seperti biasa, hanya perlu meng-Override  method insertString dan replace di kelas DocumentFilter, pada contoh dibawah saya mebuat atribut characterCasing agar dapat dengan mudah kita set menggunakan IDE Netbeans, jadi pada saat kita memasukkan object seperti contoh dibawah kedalam JFrame, pada jendela properties langsung kelihatan property characterCasing, jadi bisa langsung kita rubah nilainya seperti NORMAL, UPPER atau LOWER langsung di jendela properties Read the rest of this post »

Posted on March 9, 2010 at 3:19 pm by ataherster · Permalink · Leave a comment
In: Articles, Java, Tips · Tagged with: , , , , , , , ,

Multi Line / Wrap Text JLabel

Cukup mudah walaupun agak repot untuk menjadikan JLabel menampung text yang panjang dan otomatis di turunkan ke bawah, jika lebar JLabel sudah tidak mencukupi, kita hanya perlu memasukkan text yang akan di tampung kedalam tag HTML seperti ini

1
2
JLabel labelKu = new JLabel ();
labelKu.setText("<html>selamat datang, text ini akan diturunkan otomatis jika lebar label sudah tidak mencukupi</html>");

yah… Cukup mudah walaupun agak Repot :)

Posted on February 28, 2010 at 3:54 pm by ataherster · Permalink · Leave a comment
In: Articles, Java, Tips · Tagged with: , , , , , ,

Memasukkan JButton kedalam JTable

Baru dapat kasus ne, bagaimana memasukkan JButton sebagai CellRenderer dan CellEditor pada JTabel, Button ini akan dipakai untuk menampilkan dialog form untuk kebutuhan pengisian data ke dalam tabel.

dari gambar diatas, terlihat beberapa tombol / JButton pada kolom 3, untuk JCheckBox, JTextField dan JComboBox memang sudah di sediakan secara default didalam kelas DefaultCellEditor dan DefaultCellRenderer, nah disini saya membuat 2 buah kelas tambahan yang mengimplementasikan kelas TableCellRenderer dan turunan dari kelas DefaultCellEditor.

Read the rest of this post »

Posted on February 25, 2010 at 6:21 pm by ataherster · Permalink · Leave a comment
In: Articles, Java, Tips · Tagged with: , , , , , , , ,

Integerated Development Environment (IDE)

IDE yang juga sering disebut dengan Integerated Debug Environment dan Integerated Design Environment adalah perangkat lunak yang menyediakan fasilitas lengkap kepada programmer untuk pengembangan perangkat lunak. Sebuah IDE biasanya terdiri dari Code Editor, Compiler atau Penterjemah dari code sumber ke code binary yang lebih dimengeri oleh komputer dan Debugger, dan ada juga IDE yang telah menyediakan tools version control yang biasa dipakai untuk pengembangan perangkat lunak yang terdiri dari lebih dari 1 programmer.

IDE dirancang untuk memaksimalkan Read the rest of this post »

Posted on February 11, 2010 at 8:55 pm by ataherster · Permalink · Leave a comment
In: .NET, Ajax, Articles, Java, Ms. Windows, Tips, linux · Tagged with: , , , , , , , , , , ,

Bahasa Pemrograman

Bahasa pemrograman, atau sering diistilahkan juga dengan bahasa komputer, adalah teknik komando/instruksi standar untuk memerintah komputer. Bahasa pemrograman ini merupakan suatu set aturan sintaks dan semantik yang dipakai untuk mendefinisikan program komputer. Bahasa ini memungkinkan seorang programmer dapat menentukan secara persis data mana yang akan diolah oleh komputer, bagaimana data ini akan disimpan/diteruskan, dan jenis langkah apa secara persis yang akan diambil dalam berbagai situasi.

Komputer adalah mesin yang dapat melaksanakan seperangkat perintah dasar (instruction set). Komputer hanya dapat diberi perintah yang terdiri dari perintah-perintah Read the rest of this post »

Posted on February 10, 2010 at 3:11 am by ataherster · Permalink · Leave a comment
In: .NET, Ajax, Articles, Java, Ms. Windows · Tagged with: , , , , , , ,

Cool Car

Posted on December 21, 2009 at 2:09 am by ataherster · Permalink · Leave a comment
In: Images · Tagged with: , , , , ,

Ajax

History

In the 1990′s, web browsers and web sites lacked the sophistication to provide a quick and responsive user experience. Online form entry could be tedious, since all the requested information had to be entered and then submitted to the web server. The form data was validated and if there were problems, the same form was again presented to the user. The flow of information and the resulting experience was choppy and disconnected, reflecting the stateless nature of HTTP.

Asynchronous loading of content really became practical when Java applets were introduced in the first version of the Java language in 1995. These allow compiled client-side code to load data asynchronously from the web server after a web page is loaded. In 1996, Internet Explorer introduced the Read the rest of this post »

Posted on December 20, 2009 at 2:21 am by ataherster · Permalink · Leave a comment
In: Ajax, Articles · Tagged with: , , , , , , , ,

Environment Variables in Windows XP

Environment variables are specially named aliases or placeholders for certain basic system properties that are present for convenience in programming and in system administration. Although they are mostly of interest to technical people, some can be useful to the average PC user and these are discussed here.

Environment variables have long been used in computer operating systems and are present in Unix, DOS, and Windows The word “environment” used in the context here refers to various features of the computer system and certain basic system data. Here is one of Microsoft’s definitions:

Environment variables are strings that contain information such as drive, path, or file name. They control the behavior of various programs. For example, the TEMP environment variable specifies the location in which programs place temporary files.

Values for some of these variables are established at login and these are sometimes called predefined variables. They include Read the rest of this post »

Posted on December 17, 2009 at 2:20 am by ataherster · Permalink · Leave a comment
In: Ms. Windows · Tagged with: , , , , , ,

Smart Car

funny car, this is the car of the future :-)

Read the rest of this post »

Posted on December 14, 2009 at 10:14 am by ataherster · Permalink · Leave a comment
In: Images · Tagged with: , , , , ,