java array

18.30 priyoh 0 Comments

BAB 7 Java Array Dalam bab ini, kita akan mendiskusikan mengenai array dalam Java. Pertama, kita akan mendefinisikan apa yang dimaksud dengan array, kemudian kita juga akan mendiskusikan bagaimana mendeklarasikannya dan menggunakannya dalam Java. Pada akhir pembahasan, diharapkan pembaca dapat : - Mendeklarasikan dan membuat array - Mengakses elemen-elemen didalam array - Menentukan jumlah element didalam sebuah array - Mendeklarasikan dan membuat array multidimensi 7.2 Pengenalan Array Pada Bab sebelumnya, kita telah mendiskusikan bagaimana cara pendeklarasian berbagai macam variabel dengan menggunakan tipe data primitif. Dalam pendeklarasian variabel, kita sering menggunakan sebuah tipe data beserta nama variabel atau identifier yang unik. Apabila kita ingin menggunakan variabel tersebut, kita akan memanggil dengan nama identifier-nya. Sebagai contoh, kita memiliki tiga variabel dengan tipe data int yang memiliki identifier berbeda untuk tiap variabel. int number1; int number2; int number3; number1 = 1; number2 = 2; number3 = 3; Seperti yang dapat Anda perhatikan pada contoh diatas, kode tersebut akan sia-sia karena harus menginisialisasi dan menggunakan setiap variabel padahal sebenarnya variabel-variabel tersebut digunakan untuk tujuan yang sama. Pada bahasa pemrograman Java maupun di bahasa pemrograman yang lain, terdapat sebuah kemampuan untuk menggunakan satu variabel yang dapat menyimpan beberapa data dan memanipulasinya dengan lebih efektif. Tipe variabel inilah yang disebut sebagai array.
  
Sebuah array akan menyimpan beberapa item data yang memiliki tipe data
sama didalam sebuah blok memori yang berdekatan yang kemudian dibagai menjadi
beberapa ruang. Array adalah sebuah variabel/sebuah lokasi tertentu yang memiliki
satu nama sebagai identifier, namun identifier ini dapat menyimpan lebih dari sebuah
nilai.
7.3 Pendeklarasian Array
Array harus dideklarasikan seperti layaknya sebuah variabel. Pada saat
mendeklarasikan array, anda harus membuat sebuah daftar dari tipe data, yang diikuti
oleh sepasang tanda kurung [], lalu diikuti oleh nama identifier-nya. Sebagai contoh,
int []ages;
atau Anda dapat menempatkan sepasangtandakurung [] sesudah nama identifier. Sebagai
contoh,
int ages[];
panjangnya dengan sebuah konstruktor. Proses ini di Java disebut sebagai
instantiation (istilah dalam Java yang berarti membuat). Untuk meng-instantiate
sebuah obyek, kita membutuhkan sebuah konstruktor. Kita akan membicarakan
lagi mengenai instantiate obyek dan pembuatan konstruktor pada bagian selanjutnya.
Sebagai catatan bahwa ukuran dari array tidak dapat diubah setelah anda
menginisialisasinya. Sebagai contoh,
//deklarasi
int ages[];

//instantiate obyek
ages = new int[100];
atau bisa juga ditulis dengan,
//deklarasi dan instantiate
obyek
int ages[] = new
int[100];
Pada contoh diatas, pendeklarasian
tersebut akan memberitahukan kepada
compiler Java, bahwa identifier ages akan
digunakan sebagai nama array yang
berisi data bertipe integer, dan dilanjutkan
dengan membuat atau meng-instantiate
sebuah array baru yang terdiri dari 100
elemen.
Selain menggunakan sebuah pernyataan
new untuk meng-instantiate array, Anda
juga dapat mendeklarasikan, membangun,
kemudian memberikan sebuah nilai pada
array sekaligus dalam sebuah pernyataan.
Sebagai contoh,
//membuat sebuah array yang berisi variabel-variabel
//boolean pada sebuah identifier. Array ini terdiri dari 4
//elemen yang diinisilisasikan sebagai value
//{true,false,true,false}
boolean results[] ={ true, false, true, false };
//Membuat sebuah array yang terdiri dari penginisialisasian
//4variabel double bagi value {100,90,80,75}
double []grades = {100, 90, 80, 75};
//Membuat sebuah array String dengan identifier days. Array
//ini terdiri dari 7 elemen.
String days[] = { “Mon”, “Tue”, “Wed”, “Thu”, “Fri”, “Sat”,
“Sun”};
7.4 Pengaksesan sebuah elemen array
Untuk mengakses sebuah elemen dalam array, atau mengakses sebagian dari
array, Anda harus menggunakan sebuah angka atau yang disebut sebagai
indeks atau subscript.
Pada saat memasukkan nilai ke dalam array, sebuah nomor indeks atau subscript
telah diberikan kepada tiap anggota array, sehingga program dan programmer
dapat mengakses setiap nilai pada array apabila dibutuhkan. Nilai indeks selalu
dalam tipeinteger, dimulai dari angkanol dan dilanjutkan ke angka berikutnya
sampai akhir array. Sebagai catatan bahwa indeks didalam array dimulai dari 0
sampai dengan (ukuranArray-1).
Sebagai contoh, pada array yang kita deklarasikan tadi, kita mempunyai,
//memberikan nilai 10 kepada elemen pertama array
ages[0] = 10;
//mencetak elemen array yang terakhir
System.out.print(ages[99]);
Perlu diperhatikan bahwa sekali array dideklarasikan dan dikonstruksi, nilai
yang disimpan dalam setiap anggota array akan diinisialisasi sebagai nol. Oleh
karena itu, apabila Anda menggunakan tipe data seperti String, array tidak akan
diinisalisasi menjadi string kosong “”. Untuk itu Anda tetap harus membuat String array
secara eksplisit.
Berikut ini adalah contoh kode untuk mencetak seluruh elemen didalam array. Dalam
contoh ini digunakanlah pernyataan for loop, sehingga kode kita menjadi lebih pendek.
public class ArraySample{
public static void main( String[] args ){
int[] ages = new int[100];
for( int i=0; i<100; i++ ){
System.out.print( ages[i] );
}
}
}
Petunjuk penulisan program:
1. Biasanya, lebih baik menginisialisasi atau meng-instantiate array setelah
Anda mendeklarasikannya. Sebagai contoh pendeklarasiannya
int []arr = new int[100];
lebih disarankan daripada,
int []arr;
arr = new int[100];
2. Elemen-elemen dalam n-elemen array memiliki indeks dari 0 sampai n-1.
Perhatikan disini bahwa tidak ada elemen array arr[n]. Hal ini akan menyebabkan
array-index out-of-bounds exception.
3. Anda tidak dapat mengubah ukuran dari sebuah array
7.5 Panjang Array
Untuk mengetahui berapa banyak elemen didalam sebuah array, Anda dapat
menggunakan atribut length dari array. Atribut ini akan mengembalikan ukuran dari
array itu sendiri. Sebagai contoh,
arrayName.length
Pada contoh sebelumnya, kita dapat menuliskannya kembali seperti berikut ini,
public class ArraySample
{
public static void main( String[] args ){
int[] ages = new int[100];
for( int i=0; i<ages.length; i++ ){
System.out.print( ages[i] );
}
}
}
Petunjuk penulisan program:
1. Pada saat pembuatan for loop untuk memproses elemen-elemen dalam array,
gunakanlah at r i but length yang di l etakkan di dalam bag ian pengkondisian
dar i fo r loop. Hal ini akan menyebabkan loop secara otomatis menyesuaikan
diri terhada ukuran array yang berbeda-beda.
2. Pendeklarasian ukuran array di program Java, biasanya menggunakan sebuah
konstanta untuk mempermudah. Sebagai contoh,
final int ARRAY_SIZE = 1000; //pendeklarasian constant
. . .
int[] ages = new int[ARRAY_SIZE];
7.6 Array Multidimensi
Array multidimensi diimplementasikan sebagai array yang terl etak di dalam array.
Array multidimensi dideklarasikan dengan menambahkan jumlah tanda kurung setelah
nama array. Sebagai contoh,
// Elemen 512 x 128 dari integer array
int[][] twoD = new int[512][128];
// karakter array 8 x 16 x 24
char[][][] threeD = new char[8][16][24];
// String array 4 baris x 2 kolom
String[][] dogs = {{ "terry", "brown" },
{ "Kristin", "white" },
{ "toby", "gray"},
{ "fido", "black"}
};
Untuk mengakses sebuah elemen didalam array multidimensi, sama saja
dengan mengakses array satu dimensi. Misalnya saja, untuk mengakses elemen
pertama dari baris pertama didalam array dogs, kita akan menulis,
System.out.print( dogs[0][0] );
Kode diatas akan mencetak String “terry” di layar.
7.7 Latihan
7.7.1 Hari dalam seminggu
Buatlah sebuah String array yang akan menginisialisasi 7 hari dalam seminggu. Sebagai
contoh,
String days[] = {“Monday”, “Tuesday”….};
Gunakan while-loop, kemudian print semua nilai dari array (Gunakan juga untuk dowhile
dan for-loop)Using a while-loop.
7.7.2 Nomor terbesar
Gunakanlah BufferedReader dan JoptionPane, tanyakan kepada user untuk 10 nomor.
Kemudian gunakan array untuk menyimpan 10 nomor tersebut. Tampilkan kepada user,
input terbesar yang telah diberikan user.
7.7.3 Buku Alamat
Berikut ini adalah array multidimensi yang menyatakan isi dari sebuah buku alamat:
String entry = {{"Florence", "735-1234", "Manila"},
{"Joyce", "983-3333", "Quezon City"},
{"Becca", "456-3322", "Manila"}};
Cetak buku alamat tersebut dalam format berikut ini:
Name : Florence
Tel. # : 735-1234
Address : Manila
Name : Joyce
Tel. # : 983-3333
Address : Quezon City
Name : Becca
Tel. # : 456-3322
Address : Manila



0 komentar:

EMAIL DARI SANG KEKASIH

06.39 priyoh 0 Comments

Bismillaahirrahmaanirrahiim.. Nama penuh: Muhammad bin Abdullah bin Abdul Muttalib bin Hashim Nama bapa: Abdullah bin Abdul Muttalib bin Hashim Nama ibu: Aminah binti Wahab bin Abdul Manaf Nama datuk: Syaibah bin Hâsyim dikenal dengan nama Abdul Muttalib Bapa-bapa saudara: • Al-Harith bin Abdul Muthalib • Muqawwam bin Abdul Muthalib • Zubair bin Abdul Muthalib • Hamzah bin Abdul Muthalib • Al-Abbas bin Abdul Muthalib • Abu Thalib bin Abdul Muthalib • Abu Lahab bin Abdul Muthalib • Abdul Kaabah bin Abdul Muthalib • Hijl bin Abdul Muthalib • Dzirar bin Abdul Muthalib • Ghaidaq bin Abdul Muthalib Nama Ibu susuan Rasulullah: - Ibu susuan pertama Thuwaibah (hamba perempuan Abu Lahab)- Ibu susuan kedua Halimah binti Abu Zuaib As-Sa‘diah (lebih dikenali Halimah As-Sa‘diah. Suaminya bernama Abu Kabsyah) Nama isteri pertama dan usia baginda berkahwin: Khadijah binti Khuwailid Al-Asadiyah pada 25 tahun Nama isteri-isteri Rasulullah: 1. Khadijah bt. Khuwailid al-Asadiyah r.a 2. Saudah bt. Zamah al-Amiriyah al Quraisiyah r.a 3. Aisyah bt Abi Bakr r.a (anak Saidina Abu Bakar) 4. Hafsah bt. Umar bin al-Khattab r.a (anak Saidina Umar bin Al-Khattab 5. Ummu Salamah Hindun bt. Abi Umaiyah r.a (digelar Ummi Salamah) 6. Ummu Habibah Ramlah bt. Abi sufian r.a 7. Juwairiyah ( Barrah ) bt. Harith 8. Safiyah bt. Huyay 9. Zainab bt. Jansyin 10. Asma bt. al-Numan al-Kindiyah 11. Umrah bt. Yazid al-Kilabiyah 12. Zainab bin Khuzaimah (digelar Ummu Al-Masakin; Ibu Orang Miskin) Nama anak-anak Rasulullah: 1. Qasim 2. Abdullah 3. Ibrahim 4. Zainab 5. Ruqaiyah 6. Ummi Kalthum 7. Fatimah Al-Zahra 8. Halah bin Hind bin Habbasy bin Zurarah al-Tamimi (anak kepada Saidatina Khadijah bersama Hind bin Habbasy. Ketika berkahwin dengan Rasulullah, Khadijah adalah seorang janda).[anak tiri Rasulullah] Pengalaman bekerja Rasulullah:Semenjak kecil lagi, baginda telah menternak kambing dan berniaga membantu bapa saudaranya.Abu Talib telah membawa baginda ke Syam (Syria) bagi membantunya berniaga.Apabila baginda telah agak dewasa, baginda telah mula menjalankan perdagangan baginda sendiri secara kecil-kecilan dan menjalankan perniagaan dengan menggunakan modal orang lain kerana baginda sedar bapa saudaranya bukanlah terdiri daripada orang yang berada dan beliau terpaksa menyara sebuah keluarga yang besar.Ketika baginda berusia dua puluh lima tahun, baginda telah pergi ke Syam untuk kali kedua bagi menjalankan perniagaan Sayidatina Khadijah. Bukti Rasulullah adalah seorang ketua keluarga yang patut dicontohi: Rasulullah merupakan seorang yang pengasih. Sebagai seorang suami, baginda sering membantu isteri menjalankan urusan rumah seperti memasak, menampal pakaian yang koyak, memmbersih rumah dan menjaga anak.Sebagai seorang bapa, baginda memberi pendidikan agama yang secukupnya dan menjadi seorang contoh yang baik kepada anak-anak. Gelaran Al-Amin: Baginda merupakan seorang yang jujur, amanah dan budi pekerti. Perkataan dan perbuatan baginda sentiasa dipercayai sehingga baginda diberi gelaran al-Amin oleh masyarakat Arab Quraisy. Sifat-sifat terpuji Rasulullah: - Berkata benar (siddiq) - Boleh dipercayai (amanah) - Penyampai ajaran Islam (tabliq) - Bijaksana (fatanah) kepimpinan Rasulullah disebalik peristiwa banjir di kota Mekah ketika Rasulullah berusia 35thn: Kota Mekah telah dilanda banjir kilat yang menyebabkan dinding kaabah pecah dan runtuh. Kaum Quraisy telah membina semula bahagian yang runtuh. Kemudian timbul perbalahan antara ketua kaum Quraisy yang berebut untuk mengangkat dan meletakkan Hajar Aswad di penjuru sebelah timur bangunan kaabah. Perbalahan ini hampir menimbulkan peperangan. Rasulullah telah menjadi hakim bagi menentukan kedudukan Hajar Aswad dan secara tidak langsung Rasulullah telah meleraikan perbalahan antara ketua kaum Quraisy. Peristiwa Rasulullah menerima wahyu: - Wahyu pertama diterima Rasulullah pada hari isnin, 17 ramadan (6 ogos 610 M)- Ketika itu Rasulullah berusia 40 tahun. - Wahyu tersebut diterima baginda di Gua Hirak al-Jabar Nur. - Surah al-Alaq, wahyu pertama yang berbunyi "Bacalah dengan menyebut nama Tuhanmu yang menciptakan manusia dari segumpal darah. Bacalah, dengan nama Tuhanmu yang Amat Pemurah, yang mengajar manusia dengan perantaraan (menulis, membaca). Dia mengajarkan kepada manusia apa yang tidak diketahuinya." - Wahyu kedua, surah al-Muddasir (ayat 1-7) diturunkan di Bukit Nur berhampiran Makkah. - Wahyu kedua ini menandakan pelantikan baginda sebagai Rasulullah atau pesuruh Allah. Tokoh-tokoh awal memeluk Islam: • Zaid bin Harithah (anak angkat nabi) • Ali bin Abu Talib (sepupu nabi berusia 10 tahun) • Khadijah binti Khuwailid (isteri nabi dan orang pertama memeluk Islam) • Abu Bakar al-Siddiq (sahabat karib) wahyu pertama yg diterima oleh Rasulullah, masanya dan usia Rasulullah: - Wahyu pertama iaitu dari surah al-Alaq yang berbunyi "Bacalah dengan menyebut nama Tuhanmu yang menciptakan manusia dari segumpal darah. Bacalah, dengan nama Tuhanmu yang Amat Pemurah, yang mengajar manusia dengan perantaraan (menulis, membaca). Dia mengajarkan kepada manusia apa yang tidak diketahuinya." - pada hari isnin, 17 ramadan (6 ogos 610 M) - Berusia 40 tahun. Keadaan Rasulullah ketika menerima wahyu: Pada suatu ketika sedang dia bertafakkur itu datanglah malaikat kepadanya, lalu berkata: "Bacalah!" (Iqra). Lalu Rasulullah menjawab; "Saya tidak pandai membaca." Lalu kata beliau: "Maka diambilnya aku dan dipagutnya sampai habis tenagaku. Kemudian dilepaskannya aku dan dia berkata pula: "Bacalah!" Tetapi aku jawab: "Aku tidak pandai membaca!" Lalu dipagutnya pula aku sampai habis pula tenagaku. Kemudian ditegakkannya aku baik-baik dan dikatakannya pula: "Bacalah!", yang ketiga kali, lalu berkatalah malaikat itu: "Bacalah dengan nama Tuhanmu yang telah menjadikan," sampai kepada ujung "Yang telah mengajarkan kepada manusia apa yang dia tidak tahu." Setelah sampai pada ujung ayat tersebut malaikat itu pun ghaiblah dan tinggallah beliau seorang diri dalam rasa kengerian. Lalu beliau segera pulang kepada isterinya Khadijah. Lalu beliau berkata: "Selimutilah aku, selimutilah aku." (Zammiluuni, zammiluuni). Maka segeralah orang-orang dalam rumah menyelimuti beliau, sampai rasa dingin itu hilang. Lalu berkatalah beliau kepada Khadijah: "Hai Khadijah, apakah yang telah terjadi atas diriku ini?" Lalu beliau ceriterakan segala yang telah beliau alami itu, akhirnya beliau berkata: "Aku ngeri atas diriku." Wallahu Alam Bishowaab. sumber :

0 komentar:

pengertian Identifiers

06.35 priyoh 0 Comments

You can reference any given object on a MySQL server—assuming you have the proper rights—using one of the following conventions:
Absolute naming
Relative naming

Relative naming allows you to specify only part of the object's name, with the rest of the name being assumed based on your current context. For example, if you are currently connected to the BANK database, you can reference the BANK.ACCOUNT.BALANCE column as ACCOUNT.BALANCE. In an SQL query where you have specified that you are selecting from the ACCOUNT table, you may reference the column using only BALANCE. You must provide an extra layer of context whenever relative naming might result in ambiguity. An example of such ambiguity would be a SELECT statement pulling from two tables that both have BALANCE columns.
Aliasing
Aliasing enables you to reference an object using an alternate name that helps avoid both ambiguity and the need to fully qualify a long name.
In general, MySQL allows you to use any character in an identifier. (Older versions of MySQL limited identifiers to valid alphanumeric characters from the default character set, as well as $ and _.) This rule is limited, however, for databases and tables, because these values must be treated as files on the local filesystem. You can therefore use only characters valid for the underlying filesystem's naming conventions in a database or table name. Specifically, you may not use / or . in a database or table name. You can never use NUL (ASCII 0) or ASCII 255 in an identifier.
When an identifier is also an SQL keyword, you must enclose the identifier in backticks:
CREATE TABLE 'select' ( 'table' INT NOT NULL PRIMARY KEY AUTO_INCREMENT);
Since Version 3.23.6, MySQL supports the quoting of identifiers using both backticks and double quotes. For ANSI compatibility, however, you should use double quotes for quoting identifiers. You must, however, be running MySQL in ANSI mode.

0 komentar:

Pengertian Literals

06.25 priyoh 0 Comments

Literals come in the following varieties:
String
String literals may be enclosed either by single or double quotes. If you wish to be ANSI compatible, you should always use single quotes. Within a string literal, you may represent special characters through escape sequences. An escape sequence is a backslash followed by another character to indicate to MySQL that the second character has a meaning other than its normal meaning. Table 1-4 shows the MySQL escape sequences. Quotes can also be escaped by doubling them up: 'This is a ''quote'''. However, you do not need to double up on single quotes when the string is enclosed by double quotes: "This is a 'quote'".
Table 1-4. MySQL escape sequences

0 komentar:

Case Sensitivity

06.22 priyoh 0 Comments

1.5 SQL MySQL fully supports ANSI SQL 92, entry level. A SQL reference for MySQL is thus largely a general SQL reference. Nevertheless, MySQL contains some proprietary enhancements that can help you at the mysql command line. This section thus provides a reference for the SQL query language as it is supported in MySQL. SQL is a kind of controlled English language consisting of verb phrases. Each of these verb phrases begins with an SQL command followed by other SQL keywords, literals, identifiers, or punctuation. 1.5.1 Case Sensitivity Case-sensitivity in MySQL depends on a variety of factors, including the token in question and the underlying operating system. Table 1-3 shows the case-sensitivity of different SQL tokens in MySQL.
Table 1-3. The case-sensitivity of MySQL.

0 komentar:

SQL

06.19 priyoh 0 Comments

MySQL fully supports ANSI SQL 92, entry level. A SQL reference for MySQL is thus largely a general SQL reference. Nevertheless, MySQL contains some proprietary enhancements that can help you at the mysql command line. This section thus provides a reference for the SQL query language as it is supported in MySQL. SQL is a kind of controlled English language consisting of verb phrases. Each of these verb phrases begins with an SQL command followed by other SQL keywords, literals, identifiers, or punctuation.

0 komentar:

Struktur Komponen Swing

06.32 priyoh 0 Comments

Secara arsitektur, Swing dibangun diatas arsitektur AWT (Abstract Windows Toolkit). AWT adalah GUI toolkit yang dikembangkan oleh Sun engineer sebelum swing muncul. Kelemahan utama AWT adalah fleksibilitas tampilan GUI, seperti painting method yang masih sangat primitif. Swing dimaksudkan untuk memperbaiki kekurangan dari AWT tanpa harus membuang teknologi yang sudah dibuat dan membuat GUI toolkit baru dari nol. Komponen AWT diletakkan dalam satu package yaitu java.awt, didalamnya terdapat komponen-komponen GUI dasar, salah satunya adalah Component. Class Component adalah moyang dari sebagian besar komponen AWT maupun Swing. CheckBox, Label, Button dan beberapa komponen AWT lainnya adalah turunan langsung dari class Component. Namun dalam kenyataanya arsitektur demikian tidak memberikan fleksibilitas yang cukup memadai untuk membuat berbagai macam komponen baru yang dibutuhkan dalam desktop application. Swing muncul dengan membawa teknologi AWT yang telah ditambahkan dengan banyak kemampuan. Nyaris semua komponen GUI dari swing merupakan turunan class Container dan class Container adalah turunan dari class Component.

0 komentar:

Komponen Swing

06.30 priyoh 0 Comments

Swing toolkit menyediakan banyak sekali komponen untuk membangun aplikasi GUI desktop. Swing toolkit juga menyediakan class-class untuk menangani interaksi antara aplikasi dan user menggunakan standard input seperti keyboard dan mouse. Komponen-komponen yang disediakan swing mencakup semua GUI toolkit yang lazim digunakan dalam apilasi desktop, seperti : JTabel, JList, JTree, JButton, JLabel dan masih banyak komponenkomponen lainnya yang sudah teruji dan siap pakai. Selain komponen GUI, swing juga menyediakan fasilitas untuk proses undo, komponen untuk mengolah text, internationalization, Komponen GUI yang mendukung penyandang cacat (accessibility support) dan fasilitas drag-and-drop. Look and Feel merupakan fasilitas yang unik dalam swing. Dengan fasilitas Look and Feel ini kita bisa dengan mudah merubah tampilan dari program kita sesuai dengan keinginan dan tujuan kita. Misalnya, agar program terlihat fancy atau agar program terlihat konsisten dalam segala keadaan. Swing juga menyediakan library Java 2D untuk pengolahan data secara visual, seperti mengolah gambar, object 2D, bahkan animasi. SwingLabs.org menyediakan libary Swing Painter yang merupakan pengembangan dari Java 2D, Swing Painter ini memungkinkan aplikasi swing mempunyai tampilan yang indah dan terlihat profesional. Java 6.0 menambahkan banyak sekali fitur-fitur baru ke dalam package swing, termasuk dukungan untuk library OpenGL menggunakan JOGL, Tray Icon dan Web Service. Dengan adanya dukungan ini swing menjadi lebih poweful dan mempunyai masa depan yang cerah.

0 komentar:

yang di maksud maksud Swing Package

06.27 priyoh 0 Comments


Swing API sangat bagus dan lengkap, Java 6.0 menyertakan
setidaknya tujuh belas (17) buah package yang berisi class-class
Utungnya kita tidak akan menggunakan semua class-class dalam
package swing, hanya sebagian kecil saja dari class-class tersebut
yang nantinya akan benar-benar kita gunakan. Sehingga kita bisa
berkonsentrasi untuk memahami beberapa komponen penting saja.
Dalam modul ini nanti kita hanya akan menggunakan beberapa
class komponen swing yang penting saja. Beberapa kelas ini sudah
cukup sebagai bahan pemembuat perangkat lunak berkualitas.
Komunitas Java juga menyediakan banyak sekali library swing,
antara lain dari Swingx dan JGoodies yang mengembangkan
library standard swing dengan menambahkan berbagai macam
feature menarik. Sedangkan komunitas dari javadesktop.org
mengembangkan banyak sekali library swing untuk keperluan
khusus. Nyaris semua komponen yang kita perlukan baik
komponen umum hingga komponen untuk tujuan khusus banyak
tersedia di internet, kita tinggal mencari dan menggunakan.
Praktek yang baik dalam memilih komponen apa yang tepat adalah
dengan mencari dahulu informasi di internet. Hal ini sangat
bermanfaat untuk mengurangi waktu kita mengembangkan
komponen, sehingga kita bisa lebih banyak berkonsentrasi untuk
mengembangkan sisi bisnis dan usability dari software yang kita
kembangkan. Sebaik apapun softeware yang kita buat tapi tidak
memberikan nilai tambah terhadap masalah yang dihadapi adalah
kesia-siaan belaka. Banyak sekali software yang dianggap gagal
memberikan nilai tambah terhadap masalah yang dihadapi hanya
karena tampilan GUI-nya sangat susah dipahami dan tidak intuitif.



0 komentar:

Java Foundation Class

06.22 priyoh 0 Comments

Java Foundation Class (JFC) merupakan sekumpulan class-class
Java yang digunakan untuk mengembangkan perangkat lunak
berbasis GUI (Graphical User Interface). Selain itu, JFC juga
mempunyai class-class yang digunakan untuk menambahkan
fungsi dan kemampuan interaksi yang variatif dari pemrograman
Java. Dari definisi ini, JFC tidak hanya berisi class-class GUI saja
tetapi juga class-class lain yang dapat meningkatkan kemampuan
pemrograman Java baik dari segi fungsionalitasnya maupun dari
segi kemampuan interaksi pemrograman Java yang sangat kaya.
Feature JFC
 Tabel Feature JFC
Modul ini akan berkonsentrasi untuk membahas komponen swing.
Pemilihan komponen dan library swing yang tepat dapat
mempengaruhi kualitas program yang kita buat secara signifikan.
Hal ini dikarenakan, dalam dunia Java Standard Edition, lebih
spesifik lagi aplikasi Java yang dibangun menggunakan swing,
belum ada framework yang benar-benar komprehensif
membimbing pengembang untuk membuat aplikasi yang
berkualitas.
Pada umumnya aplikasi yang dikembangkan dengan Swing
mempunyai kode yang sangat 'kotor', dimana kode yang berisi
pengendalian terhadap event komponen swing bercampur aduk
dengan kode yang berisi aturan bisnis dan kode yang berisi
manipulasi terhadap data.

0 komentar:

percakapan bawang merah dan peri biru

09.09 priyoh 0 Comments



In the Kahyangan Land,there was a beautiful fairy. Her name was Peri Biru. She was one of fairies in Kahyangan. But,she was less in her ability to used the magic spells. She was so sad and lonely,bacause her friends also far her.
One day, Peri Biru had an idea to made some friends with her magic power. So,she looked for something that can used to made her friends. But,by the time in Kahyangan Land,Queen of fairy command to Peri Biru to made an Indonesian chilli sauce. Then,Peri Biru prepared thr ingredients like onion,shallot,garlic,chilli and cinnamon,also tools for made chilli sauce,its usually called cobet and ulekan.
Because the time not enought to made it manual,so she decided to mada chilli sauce with her magic power…
Peri Biru : (Mantra)
DOOEEENNGGGG !!!!!!!!
Peri Biru : What’s !!! Ow God,ow God. Why are you can be people? I just want
to made chilli sauce for Queen!
Peoples : We don’t know,we very confussed why you made us as people?
Peri Biru : Mmmm… Ok ok. I will give all of you the name! You(pinnocio)
Because you made from wood,i will give you the name… Pinnocio!
And you(Bawang Putih) because you made from garlic,i will give you
the name… Bawang Putih!
Peri Biru give the name one by one for the people thet she made. Onions name Bawang Bombay,shallots name Bawang Merah and chillies name Cabe Rawit. The rocks name Malin Kundang.
Peri Biru : Ok guys! Now all of you have the name and i will educe you to the earth.
(Mantra)
Eventually,the spell which speak fluently by blue fairy is exact. They are all was drop in earth. The onions was located in one place. But the other was separatter. The onions drop in the edge of the forest,and when in the trip,they met a big and empty house. At last,they agree to stay there. A month later…
Bawang Merah : Putih!!!!!! Come here!! Hurry!
Bawang Bombay : Hurry up! How slow you are!
Bawang Putih : I’m sorry… i haven’t finish all that job in the kitchen.
Bawang Merah : What?It haven’t yet? What’s you doing since then?
Bawang Putih : I was…
Bawang Bombay : Hof – Shut up you!! Now,You must make some food for us. We’re so
hungry . Hurry up!
Bawang Putih : But,i must go to the market first.
Bawang Merah : Go away! (she’s stop speaking) Anything else? Go away!!!!!
Bawang Putih : Bu,i haven’t any money.
Bawang Merah : What? (she tug Bawang Putih hair) Ask some money to us?
Bawang Bombay : (She slap Bawang Putih). Wake up! You’re just stay here! You’re so
Unthingkable! Go away! If not,you’ll never feel peace in your life!!
Bawang Putih : Ok. Allright.
(When Bawang Putih was walking on steet,her wallet was stolen,and Pinnocio saw that happen. He chase the thief,and he got thet wallet. But unfortunely,his arm was broken)
Pinnochio : It yours.
B.Putih : Thank you very much!
Pinnochio : Yes,You’re welcome.
B.Putih : B-but your arm was broken. How can i do for you?
Pinnochio : No,i’m okay. I’m made from wood. So,i didn’t have a pain feel.
B.Putih : What? Wood? Wait…Are you the one of Peri Biru’s creations?
Pinnochio : Maybe. Y-yes! And let me see,are you onion?
B.Putih : Yes. I’m Bawang Putih.
Pinnochio : Yes,I’m Pinnochio! I very happy can meet you,Bawang Putih…
(Give his hand when somewhat shy)
They fall in love and suddenly. Peri Biru coming……….
Peri Biru : Pinnochio… Bawang Putih…
B.Putih & Pinnochio : Fairy?!
Peri Biru : Pinnochio,i would release you from the curse.
Pinnochio : What do you mean?
Peri Biru : I will turn you into a human. Wait… (Fairy consentration). Boeng doeng being a
real human!!
B.Putih : (Bewildered). Pinnochio you are…..
Pinnochio : Why ? (Smile)
B.Putih : Look your body!
Pinnochio : Ow yes… Thanks,Peri Biru. But,why you release me from that curse?
Peri Biru : Because you have to love somebody,and she love you too.
(Pinnochio and Bawang Putih one another look,and they smile because shy)
Peri Biru : Ok. I will go now. (Dissapear)
Pinnochio : P-putih… How is your opinion about me?
B.Putih : Umm,P-pinno… You….. (Look at the watch). Oh no!!
Its 12 o’clock! I must go home,If not,my sisters will very angry with me!!
(Almost gone)
Pinnochio : Wait! (Pulled Bawang Putih hand). Where’s your house?
B.putih : (Stop speaking for a while,then she let Pinnochio’s hand and runaway).
In other side village. Thank you,Pinno…
Pinnochio : (Smile again).
In the house …..
B.Putih : I’m comeback.
B.Bombay : Putih!! Where have you been!? Don’t you realize?! You’re so late! We had very
hungry! Fuck you! (Tug Bawang Putih’s hair). You’re so dared with us!
You’re so impudent..!
B.Putih : N-no.. I just… I had stolen was…
B.bombay : Huh! Don’t make any reason! Big liar!
B.Putih : Ok… I’m sorry. I’ll cook for you.
B.Merah : I don’t need that again! You’re so late! Now,we will eat in the restaurant. And for
you! Stay in this house!! Clean up all things in this house!! And you must finish
when we arrive! Understand ??!
B.Putih : Yeah… I know…
B.Merah : How pity are she! Hahahahahaha……..
B.Bombay : Hohohoho…. She propher for have that! She’s so impudent!
(Then,when they talking,Pinnochio coming)
B.Bombay : Hey… Look at him!
B.Merah : Yes,why?
B. Bombay : Huh! You know,he’s so handsome…….
B.Merah : Lets close him!!
(They approach Pinnochio)
B.Bombay : Hey man! Why you’re alone? May i accompany you?
Pinnochio : …………………… (Quiet)
B.Merah : Oooh… You are so cool… I am Bawang Merah!
B.Bombay : And i am Bawang Bombay!! Hehehe….
Pinnochio : (Startled). Bawang Merah? Bawang Bombay?
B.Bombay : Yes,we are. Don’t you mind if you visit our home? Our home is in the other side
Village.
Pinnochio : (Just quiet and talk to himself) In other side village? Wether they are Bawang
Putih’s sisters whose evil man? If i visit their home,can i meet Bawang Putih?
B.Bombay : How???
Pinnochio : Ok.
( Bawang Merah and Bawang Bombay laughing)
In the house………. Bawang Putih is still crying,and she look so tired. But,suddenly,Peri Biru comes…
B.Putih : (Startled). Peri Biru?1
Peri Biru : Yes,my dear… Why you look so sad?
B.Putih : Yes… I always command for clean up this house. And not long after now,my
sisters will arrive. If my job is haven’t finish,they must be scold me.
Peri Biru : Ssst… Quiet. I’ll help you. ( says a spell and suddenly all corner of the house being
so clean).
B.Putih : Tanks,Peri Biru.
Peri Biru : (Smile and dissapear)
(Her sisters comes with Pinnochio)
B.Bombay : Why… Why this room wa so clean?
B..Merah : P-putih….?!!
B.Putih : Y-yes…0
B.Bombay : Lets make a drink for our guest! Hurry up!
B.Merah : Yap! Hurry up!
(Bawang Putih go to the kitchen)
B.Merah : Well,Come on,we call Pinnochio…
B.Merah & B.Bombay : Pinnochio ……..?????!
Pinnochio : ( Enter the house,And they sit on livingroom). Err…. Is there any people live here
except you…?
B.Bombay : Oh,we live here with a servant.
(Bawang Putih was startled when she saw Pinnochio. But Pinnochio gave a signal to
Bawang Putih foor silent)
B.Bombay : What are you waiting for? Go!!!! And don’t be coquettishness!!!
B.Putih : (Leaving)
A few hours after that,Pinnochio permitted for back to home,but,with quietly,he put a lump of paper on the tea cup. And,when Bawang Putih cleaning up the livingroom,she found that paper. Actually,that paper is a letter from Pinnocio for Bawang Putih which explain that Pinnccio will comeback soon for pick up and bring Bawan Putih leave that house. A few days later,a handsome prinnce name Cabe Rawit Prince that he while looking for a girl whose beautiful,smart for dress up,coquettish,and had a bad manessed. And he move around to everyhouse. Until he arrive at Bawang Merah’s home.
–TOK!-TOK!-TOK!—
B.Merah : Putih..!!!!!!! Putih!!!……… Ugh! Where are you!! (Bawang Merah open the door and
when she saw Cabe Rawit. She’s so bewildered and was so coquettishness,and also
Cabe Rawit had a same thing like Bawang Merah do. He’s very charmed for Bawang
Merah’s beautiful). Yes,what’s up? (Coquettish)
Cabe Rawit : Ah. I just want……
(Bawang Putih comes)
B.Merah : Putttiihhh …………..!!!!!!!!!!
(Cabe Rawit was so shock)
B.Merah : Where have you been? That is your job??! Just go out from this house as you like?!
Go into the house!!
(Bawang Putih entered the house)
B.Merah : Err…. I’m sorry. What do you want was?
Cabe Rawit : Oh yes. Before that,i want to introduce my self. I’m Cabe Rawit Prince. And i just
looking for a girl like you… Would you like to be my princess? (surrendeded).
B.Merah : Ah… Errr…. Umm… Can you come to the park tomorrow morning?
Cabe Rawit : I will do anything for you,my dear……
Bawang Merah was so happy for Cabe Rawit’s manage proposal. And,she love him too. And of course,she will choose Cabe Rawit Prince than Pinnoccio. Equivalent by Pinnoccio,that Prince more handsome,more rich,and more romantic. Bawang Merah told that happen to Bawang Bombay,and Bawang Bombay was happy to hear that. Bawang Putih who not prected for listen they conversation,feel widw because now ,Bawang Merah not aim to Pinnoccio again,the man whom she love. Tomorrow……. Cabe Rawit Prince come early to the park than Bawang Merah.
B.Merah : I’m sorry. I’m coming late.
Cabe Rawit : (give a flower) it doesn’t matter, this is for you. Because you are so beautiful today.
B.Merah : thanks
Cabe Rawit : so, would you like to be my princess, shallots?
(Bawang Merah agree and Cabe Rawit smiles)
B.Merah : would you like shopping with me?
Cabe Rawit : with my pleasure, my girl
B.Merah : but, you will pay all things that we buy. Will you?
Cabe Rawit : of course, my lady.
malin’s mom : My child, malin….don’t you feel shy live together with your poor mother, son?
Malin : why you tell that? Of course i’m not shy. What kind of son i am, who shy if live
together with my mom?
Malin’s mom : you’re very nice son, malin….
Malin : mom, i want to ask permission to you. I want to wonder about a job in otherside
village. I want to looking for a money for repay your kindness because you have let
me stay in this house.
Malin’s Mom : But,you don’t need to do that!
Malin : Come on,Mom…Let me do this for you..
Malin’s Mom : O-ok… Becareful my son..
Malin : Of course,Mom. Thank you!
The next day,Malin go from his house. He walking and always walking,when he
Peri Biru : Hi Malin. What are you doing?
Malin : F-fairy? I just…. I haven’t found any job,Fairy. I want to be rich.
Peri Biru : Ok. I wil help you.
Malin : Do you??
Peri Biru : Yes,i’ll go now. Advanced your trip.
( She’s disappear)
Malin : Hh… Thanks,Peri Biru…..
Cabe Rawit : Fairy? What’s up?
Peri Biru : Cabe Rawit Prince,i want ask some help to you. Do you still remember Malin
Kundang? That human whom i create together with you.
Cabe Rawit : Yes,I remember him. Why?
Peri Biru : Now,he’s really need a job. I want he get a job in your kingdom. Can you do that?
Cabe Rawit : Ok. Thats so easy. I am in love now. Because of that,i will made him as my advisor.
And,fairy,thanks because you had created a beautiful Bawang Merah.
Peri Biru : W-what do you mean?
Cabe Rawit : I’m falling in love with her.
Peri Biru : What???? So,you are……….
Cabe Rawit : Yes.
Peri Biru : O. Up to you. Thaks. Bye.
At last Malin become a kingdom advisor and he become a people who very respecteble. And the special relation of Bawang Merah and Cabe Rawit Prince more was make difficult Bawang Putih. Because Cabe Rawit is join to tomure her. Eventhough Pinnocio and Bawang Putih relation is more nice. Thay often meet as quietly,without her sister’s knowing. Eventhough Bawang Bombay who feel lonely,because now,her dearest sister,Bawang Merah,more close with her boyfriend,Cabe Rawit Prince than herself. Her angry often she release to Bawang Putih. Peri Biru who knowing thats trouble take an action soon.When Bawang Bombay in alone……..
Peri Biru come……
Peri Biru : Bawang Bombay…. What’s goinmg on?
B.Bombay : Hah?? Fairy? You come on time when i need you. Peri Biru,i feel envious to Bawang
Merah. She has an a boy friend but why not for me??
Peri Biru : Thats your problem? I see… But,i think…. Maybe Cabe Rawit not for you… Yes,i
believe,you certain can have a perfectly boyfriend. Hi,i want to ask you abou Bawang
Putih.
B.Bombay : Bawang Putih? What?
Peri Biru : Don’t you hurt her. How pity of her.
B.Bombay : Ah….. Why you always protect Bawang Putih?! I just want ask you to help me. To find
friends of my life. Just it!
Peri Biru : O-ok.. I’m sorry. I know Bawang Bombay. I will help you to find friendds of your life.
Like Bawang Merah. Waited patienly.
(Peri Biru lost)
B.Bombay : Huuu…………
One day,heard a kingdom news that Pangeran Cabe Rawit will created a party in his kingdom. All of the people can joined.
B.Putih : Merah… Bombay… Can me join in the kingdom party tonight too???
B.Merah : What?? Party?? You?! What did you say!?! Nooo…!!!!! You must still here! You just
ugly girl. You not propher to join the party!!!!!!!!
B.Putih : B-but Merah…. I relly wwant to that party.. Please… Please… Plea..
B.Merah : Close your fuck mouth!!!!!!!!! Clean the house,wash the clothes,and other. You know the
consequence if you not do what i say.
B.Putih : Y-Yes…..
(Bawang Bombay come)
B.Putih : Bom-bombay, please help me …… I want to go to the party tonight …… please help me
……. Please……..
B.Bombay : Help you? How pity you are ….. hahahaha……Ah! Ask help to your peri biru!! Merah …….
Come on lets! go to dress up!
Malin’s mom : Oh …… my dearest Malin where are you? Is very lonely. Comeback please…. Momi
very miss you.. Malin……
(Peri come)
Malin’s mom : (Shock!) Hah? Who are you? Are you evil or angel?
Peri Biru : I’m fairy,mom..
Malin’s mom : Fairy? What is that?
Peri Biru : I’m fairy from Kahyangan Land. My name is Peri Biru. I heard you. Now you very
Miss to your child. Who’s your child?
Malin’s mom : My child is Malin Kundang. He is in the far away land. I don’t know where is he…. I
Just know he is looking for job. And wife for his life.
Peri Biru : Ouhh…. Malin… I see mom… Malin is my creation. Ok,i will help you,because i know
Where he is… I will back your child but you must promise with me,don’t you
Complain anything to your child. I will not tell you the consequence. So,don’t try it.
Malin’s mom : I promise.
(Peri Biru gone)
Eventhough in the house,Bawang Putih is crying sob…
B.Putih : Huuu…. Why?!! Why i must be a human?!!!!??! If my life just for scorn!! Humilation!
And unhappiness!!!! Why??! I’m very transverse????!! Oh god…….
I… I’m not able again… I’m very tired! My friend… Peri Biru… Where are you? I need you..
(Fairy come…)
Peri Biru : What’s going Bawang Putih? Why are you look so very sad?
P.Putih : I’m so regret be a human!! I want become my look was. I want my life is free!!!!!!
There’s not any problem!!!!!!
Peri Biru : Don’t you hurt her. How pity of her.
B.Bombay : Ah….. Why you always protect Bawang Putih?! I just want ask you to help me. To find
friends of my life. Just it!
Peri Biru : O-ok.. I’m sorry. I know Bawang Bombay. I will help you to find friendds of your life.
Like Bawang Merah. Waited patienly.
(Peri Biru lost)
B.Bombay : Huuu…………
One day,heard a kingdom news that Pangeran Cabe Rawit will created a party in his kingdom. All of the people can joined.
B.Putih : Merah… Bombay… Can me join in the kingdom party tonight too???
B.Merah : What?? Party?? You?! What did you say!?! Nooo…!!!!! You must still here! You just
ugly girl. You not propher to join the party!!!!!!!!
B.Putih : B-but Merah…. I relly wwant to that party.. Please… Please… Plea..
B.Merah : Close your fuck mouth!!!!!!!!! Clean the house,wash the clothes,and other. You know the
consequence if you not do what i say.
B.Putih : Y-Yes…..
(Bawang Bombay come)
B.Putih : Bom-bombay, please help me …… I want to go to the party tonight …… please help me
……. Please……..
B.Bombay : Help you? How pity you are ….. hahahaha……Ah! Ask help to your peri biru!! Merah …….
Come on lets! go to dress up!
Malin’s mom : Oh …… my dearest Malin where are you? Is very lonely. Comeback please…. Momi
very miss you.. Malin……
(Peri come)
Malin’s mom : (Shock!) Hah? Who are you? Are you evil or angel?
Peri Biru : I’m fairy,mom..
Malin’s mom : Fairy? What is that?
Peri Biru : I’m fairy from Kahyangan Land. My name is Peri Biru. I heard you. Now you very
Miss to your child. Who’s your child?
Malin’s mom : My child is Malin Kundang. He is in the far away land. I don’t know where is he…. I
Just know he is looking for job. And wife for his life.
Peri Biru : Ouhh…. Malin… I see mom… Malin is my creation. Ok,i will help you,because i know
Where he is… I will back your child but you must promise with me,don’t you
Complain anything to your child. I will not tell you the consequence. So,don’t try it.
Malin’s mom : I promise.
(Peri Biru gone)
Eventhough in the house,Bawang Putih is crying sob…
B.Putih : Huuu…. Why?!! Why i must be a human?!!!!??! If my life just for scorn!! Humilation!
And unhappiness!!!! Why??! I’m very transverse????!! Oh god…….
I… I’m not able again… I’m very tired! My friend… Peri Biru… Where are you? I need you..
(Fairy come…)
Peri Biru : What’s going Bawang Putih? Why are you look so very sad?
P.Putih : I’m so regret be a human!! I want become my look was. I want my life is free!!!!!!
There’s not any problem!!!!!!
Pinnocio : Would you marry with me???
B.Putih : Ow my God…. um… Ok. But you must carry me far from my sisters!
Pinnocio : Yes,i’m certain!
(Finnaly they happily ever after)
Someday after party,Bawang Putih and Pinnocio had leave far away from their land. They happily. Bawangn Putih sent the message to her sisters that she had married with Pinnocio and she had go far with him,so her sisters needn’t looking for her. Bawang Merah and Bawang not only happy but also sad,happy because finnaly Bawang putih gone from their live,sad because nothing again that can be victim to suffered.
Oneday…. Bawang Merah got the marriage proposal from Cabe Rawit Prince.
B.Merah : Bombay…… I get the marriadge proposal from Cabe Rawit Prince….
B.Bombay : What ?!! It’s the lucky day for you Merah!! Oh… My God! We are prepare your
marriadge.
Finnaly,Bawang Merah and Cabe Rawit married and live happily in his Kingdom. But,What’s happened with Bawang Bombay and Malin Kundang? Ow… They love each other since they met in the Cabe Rawit’s party. And because of it Malin Kundang come back home soon.
Malin : Motheeeerrrr!!!!!!!!!
Malin’s mom : Malin… Oh my child you had come back. Oh my child…..
Malin : Mom…………………
Malin’s mom : yes?
Malin : This my wife,Bawang Bombay……..
Malin’s mom : What?!!!!!!??????? She is your wife? OH my God!!
Malin : Why?
Malin’s mom : Look your wife!! Will more poor am i!
Malin : Mom,I love her!! I born to accompany Bawanng Bombay!
(Bawang Bombay very sad and says to Malin’s mom)
B.Bombay : Ok mom,if i nit blessed from you to married with Malin,i will went fromm here!
But,don’t ever you to despise me!!!
Malin : NO…. (Malin pool Baang Bombay’s hand)
Mom. Up to you!!! I love her that i looked first. I want to go with Bawang Bombay!!
Malin’s mom : Ow.. So ypu more choose Bawang Bpmbay than ypur mom?!!
Malin : YES,MOM!!!!!!!!!!!!
Malin’s mom : Y-you…. Malin… Yours impudent!!!!! I CURSE YOU !!!!!!!!!!!!!!!!!!!!!!!!!!!!
b.Bombay : NOOOOOOOOOOOOOOOOOOOOOOOO……….!!!!!!!!!!!
— JDDEEEERRRRR…!!!!!!!!!!!!!!!!!!!!!!!—
( They fall and died)
Malin’s mom forget her promise to Peri Biru. Malin’s mother direct cry……
And that’s all final from this story…………………………………………..

0 komentar:

Percakapan Bawang merah dengan ibunya part 1

09.07 priyoh 0 Comments

part 1.

Dialogue
                This Story began in a little beautiful village. But, the beauty of that village can’t covered a girl’s sadness. She sad because her mother is sick.
                Now, we turn into a house near that little girl.
Bawang Merah’s mother              :“You’re stupid daughter!”
Bawang Merah                                 : “Uh…stop nagging, my head is dizzy ears. I better go.”
Bawang merah’s mother              : “Hey… Where are you going?! Let’s go home and go fast! Don’t make me angry!”
Bawang merah                                  : “cuih!” (spit)
Bawang merah’s mother              : “What! How dare you be so at Mother?! Argh.. rebel child!”
Bawang merah                                  : “Ow… I’m sorry, mom.”
Bawang merah’s mother              : “Let’s come on!”

                Then we turn into the poor girl’s home. When her father leaving to trade.
Bawang putih                                    : “Be careful, dad.”
Father                                                   : “Yeah, you also be careful at home and watch out with your mother.”
Bawang putih                                    : “Ok, Dad.”
                Bawang Putih stays with her mother at her home. Her mother give a ring to Bawang Putih and Bawang Putih feel happy after receiving the ring. Bawang Putih dancing happily because of that ring. While bawang putih dancing with her new ring, Bawang Merah take some deadly poison into their mother’s drink and no one has known that. A few minutes later, Mother drinks it. Just in few second later, mother dead. Bawang putih sad when she know it.
Bawang merah’s mothe                                : “a pl 0ease, in the destiny of the above.”
Bawang merah                                  : “A is true, don’t be sad. Here we are still there anyway.”
Bawang merah’s mother              : “It wil be better if I tell your father.” (Then they are away)
                A sadness grew with the death  of his mother and after the funeral  is over.
Bawang merah’s mother              : “A, I went feel your sadness. Did everything she was without her life feels empty.”
Father                                                   : “True A, I’m also willing to really be your friend.”
Bawang putih                                    : “Well, now I want to be alone, so please leave me before.”  (She took off sadness with singing).
                After singing without realizing it, my father persuaded by flattery Bawang putih Bawang merah mother, who wanted to replace the  position of Mrs. A daningin seized all his weaith.
                Bawang putih has been living and her mother. On that day his father would go to trade. Her father packed up because it immeditialy trade as usual and then the step mother (Mrs. Bawang merah). Bawang putih and Bawang merah approached her father and kissed the hand of the father. The father promptly left, before he waved his arms at them that and they raply back.
All                                           : “Be careful, Dad!”
Passed their father was going to trade
Stepmother                       : “All right children. The game has finished!”
Bawang merah                  : “Putih, Cleaning clothes that!”
                Bawang putih is shocked, but she did not have strength. Then she went to the kitchen took a lot of laundry and after taking it he went to the river to wash clothes. But suddenly when the journey there is a shout our for help.
Fairy                                      : “Help me!!!!!!!” (Pain)
Bawang putih                    : “Looks like someone for help. Where?” (Look for the source of sound)
Fairy                                      : “I’m here”
Bawang putih                    : “Oh..you really unfortunate fate.” (Bawang putih immediately lift the weight to rest on the elf)
Fairy                                      : “Well thank you, you have helped me and as my reciprocation may I help you wash your clothes?”
Bawang putih                    : “Ah…don’t”
Fairy                                      : “But tour laundry is very much, but with this stick…”
Bawang putih                    : “All right, do what you want.”
Fairy                                      : “Sim salambim, get rid of dirt on the clothes.” (at that time also be clean all the clothes)
Bawang putih                    : “Oh…thanks a lot elf.”
Fairy                                      : “Sure.”
                After they finished dancing
Bawang putih                    : “I’d better be home daughter, I’m afraid of being scolded my mother and stepsister.”
Fairy                                      : “Ok..good bye”
                Prince heard A sing. He also intends to look for it. And after the find. Bawang putih locked starled and ran leaving the prince. With prince back disappointed.
Guard                                   : “How is prince. What you have found denan angel?”
Prince                                   : “Ah never mind. Should we look for the flowers around here.”
                Because don’t find it. The prince looking flower elsewhere. Incidentally, Bawang putih prince passed the house stopped by the house.
Guard                                   : (teasing Bawang putih)
Prince                                   :  “Move over guard. Would sweet princess would mention the name?”
Stepmother                       : “It’s impossible if price to meet A. A Let’s finishing you job!”
Abawang putih                 : (Leave)
Stepmother                       : “Sorry prince, it’s better if you stop at my home.”
Prince                                   : “Thank you. We’re not here long.”
                Suddenly, when prince would turn around she saw the flowers.
Prince                                   : “Look! That certainly we’re looking for flowers.”
Guard                                   : “It’s true,price”
Prince                                   : “It’s really beautiful.”
Bawang merah                  : “Here indeed many beautiful flowers. If prince wanted to, we don’t mind him.”
Guard                                   : (pull out the flowers but can do it)
Prince                                   : “According to the grandfather, who can revoke only flowers.”
Bawang merah                  : “Oh..with my pleasure.”
Bawang putih                    : “I will carry out this mandate for the sake healing Majesty the King and by the greatness of the palace Panarukan.”        
                Once uprooted, Bawang putih give the flowers to prince and they stared at each other. After receiving the flower Prince brought into the Kingdom and Bawang putih drinking to his Majesty the King. Because the white soul and a pure heart also owned Bawang putih, finally Majesty the king can be cured. The story in even end up with an atmosphere that is full of excitement. The Bawang putih marrying a handsome prince. And  Bawang merah and her mother apologized for their mistakes over the years.

0 komentar: