Wednesday, 23 October 2013

Kalkulator Sederhana Dengan Netbeans

java_ubuntuBeberapa waktu yang lalu saya sudah menuliskan cara menginstall Netbeans di Linux (Install Netbeans Di Linux), maka kali ini saya akan memulai untuk menuliskan langkah-langkah membuat program aplikasi menggunakan Netbeans. Kali ini saya akan mencoba mendemokan cara membuat aplikasi kalkulator sangat sederhana menggunakan Netbenas di sistem operasi Ubuntu dimana nanti hasil akhirnya dapat dijalankan pula di windows karena menggunakan java sebagai bahasa pemrogramannya.
Sebelum memulai pastikan anda sudah menginstall netbeans terlebih dahulu, . Dan berikut ini adalah langkah-langkahnya :
1. Buka Netbeans anda, tampilan awal akan terilihat seperti gambar dibawah ini :
2. Untuk membuat aplikasi klik tombol New Project.
java
3. Pada Categories pilih Java dan pada Project pilih Java Application lalu klik tombol next.
java (1)
4. Isikan project name, saya isikan dengan nama Kalkulator dan hilangkan ceklist pada Create Main Class lalu klik tombol Finish.
java (2)
5. Project Kalkulator sudah terbuat lalu tambahkan sebuaf Form untuk mendisain tampilan aplikasi, caranya klik kanan pada Project Kalkulator pilih New pilih JFrame Form.
java (4)
6. Berikan nama pada Class Name, saya isikan denagn Calc kemudian klik tombol Finish.
java (5)
7. Sebuah Form telah terbuat untuk menempatkan komponen-komponen aplikasi yang akan dibuat.
java (6)
8. Tambahkan komponen dari Pallet dengan cara klik komponen yang ingin di masukkan kedalam form lalu klik form tersebut, masukan sebuah Label kedalam form.
java (7)
9. Tambahkan komponen dan disain tampilan seperti gambar dibawah ini :
java (8)
10. Edit text pada komponen Label, Botton dan Text Field menjadi seperti gambar dibawah dengan cara klik kanan pada komponen yang ingin dirubah textnya lalu pilih edit text dan isikan sesuai dengan gambar.
java (9)
11. Berikutnya ubah isi dari combobox menjadi tanda + - * / caranya klik kanan di combobox lalu pilih properti-properti. Pada menu model klik tombol ... 
java (10)
12. Ganti text defaultnya menjadi + - * / lalu klik tombol OK.
java (11)
13. Berikutnya rubah variabel name komponen agar pada saat mengetikkan sintak kita tidak bingung karena variabel namenya kita yang tentukan sendiri, namun tidak perlu semua komponen dirubah variablenya, yang sekiranya digunakan pada saat pengkodean saja yang dirubah. Dalam praktek ini yang dirubah adalah Text Field dan ComboBox saja cukup, caranya klik kanan pada komponen lalu pilih change variable name kemudian isikan seperti data berikut :
jTextField1 = txtangka1
jTextField2 = txtangka2
jTextField3 = txthasil
jComboBox = cbpilih
java (12)
14. Setelah selesai mendisain Form langkah berikutnya adalah memasukkan kode program disetiap tombol agar berfungsi sesuai dengan keinginan kita. Pertama kita akan memberikan kode program pada tombol Hitung, caranya klik kanan lalu pilih Event -> Action -> actionPerformed maka halaman source code untuk menepatkan sintak pun terbuka.
java (13)
15. Tuliskan kode berikut untuk tombol Hitung :
double nilai1;
double nilai2;
double nilai3;
String hasil;
nilai1=Double.valueOf(txtangka1.getText());
nilai2=Double.valueOf(txtangka2.getText());
if(cbpilih.getSelectedItem()=="+"){
nilai3=nilai1+nilai2;
hasil=String.valueOf(nilai3);
txthasil.setText(hasil);
}
else if(cbpilih.getSelectedItem()=="-"){
nilai3=nilai1-nilai2;
hasil=String.valueOf(nilai3);
txthasil.setText(hasil);
}
else if(cbpilih.getSelectedItem()=="*"){
nilai3=nilai1*nilai2;
hasil=String.valueOf(nilai3);
txthasil.setText(hasil);
}
else{
nilai3=nilai1/nilai2;
hasil=String.valueOf(nilai3);
txthasil.setText(hasil);
}
java (14)
16. Selanjutnya klik tab Design lalu pada tombol keluar klik kanan lalu pilih Event -> Action -> actionPerformed maka halaman source code untuk menepatkan sintak pun terbuka, tuliskan sintak berikut ini :
int keluar;
keluar=JOptionPane.showConfirmDialog(null,"Yakin akan keluar ?","Konfirmasi",JOptionPane.YES_NO_OPTION);
if(keluar==JOptionPane.YES_OPTION){
System.exit(1);
}else{
txtangka1.setText("");
txtangka2.setText("");
txthasil.setText("");
txtangka1.requestFocus();
}
java16
Jika terdapat icon seperti lampu kecil berwarna merah dan kuning itu tandanya ada yang perlu ditambahkan, caranya klik icon tersebut lalu pilih Add import for javax.swing.jOptionPane
java (17)
17. Sekarang berikan kode program pada tombol hapus dengan cara yang sama pada tombol-tombol sebelumnya, berikut sintak untuk tombol hapus :
txtangka1.setText("");
txtangka2.setText("");
txthasil.setText("");
txtangka1.requestFocus();
java (15)
18. Sampai disini program sudah selesai, berikutnya tekan tombol clean and build. Jika ada kesalahan program maka akan muncul pesan error yang menunjukan letak kesalahannya, silahkan perbaiki jika terdapat kesalahan.
java (19)
19. Jika tidak ada kesalahan, silahkan tekan tombol Run atau tekan F6 pada keyboard.
20. Berikutnya akan muncul dialog run project dan pada select main projetc pilih calc kemudian klik OK.
java (20)
21. Aplikasi kalkulator akan berjalan seperti gambar dibawah ini :
java (21)
java (23)
Sekian langkah-langkah pembuatan kalkulator sederhana menggunakan Netbenas ini, dan aplikasi yang sudah dibuat bisa dijalankan di Linux ataupun Window

Sumber : http://mahmudsiddik.com

Thursday, 20 September 2012

Download Resetter Printer Epson T13


Resetter Printer Epson T13
Printer epson T13, is a great printer for photo printing, I have to prove themselves the quality of the print. But unfortunately, it seems epson T13 printer is prone to damage in the paper drawer. also spilling ink everywhere inside. If you need a printer resetter epson T13, please download from here.

How to Reset Printer Epson Stylus T13

1. The first step of course epson T13 printer drivers have been installed.
2. Download software resetter Epson T13 first. Software named Resetter Epson T13, you can download it here
3. Date computer does not need to be changed as previously resetter.
4. IMPORTANT!!! Turn off your Antivirus, because resetter T13 is detected as a virus by antivirus.
5. Run the program resetter Epson T13 with double click on the "AdjProg.exe".
6. Then follow the following picture:










"Check: used to counter check the maximum 7800 points, you can see it on the main pad counter. If over or close to 7800 points means the printer needs to be reset"
"Initialization: used to reset the counter back or mengenolkan printer"


7. When finished turn the printer off and then on again. The printer will flame with a full green light. Epson Stylus T13 printer means that blink had been ready for use again.

Good luck ............ Hopefully Helpful ......





Other :
1.Download Resetter Printer Canon MP258 
2.DOWNLOAD DRIVER CANON MP 258

Wednesday, 12 September 2012

Download Free Brother printer driver MFC-260C/MFC-6490CW/MFC-J415W

Brother printer driver free download for free. Brother brand in the arena of electronic products may still be unfamiliar to most of Indonesia's population, Brother brand more commonly known as a manufacturer of sewing machines. Overview of Brother Industries, the precursor to the birth of Brother Industries firms started by Yasui Sewing Machine Co.., Which is engaged in the sale and repair of sewing machines, was founded in 1908 by Kanekichi Yasui, father of the founder of Brother Industries, Ltd..
Masayoshi Yasui, who was the eldest of 10 children, began helping his father at the age of 9 years, and at the age of 17 he began an apprenticeship in Osaka. Along with marketing the sewing machine when it is dominated by imported products, Masayoshi determined to "develop import-based sewing mesih industry became export-based industries" with the introduction of domestic production.
Brother Global Charter, the formulation contains basic policy for a new era of Brother Group, including "commitment to quality", "prioritize customer" and "environmental protection". The opening of the Charter stipulates that responsibility Brother: Brother Group's mission is to create and deliver value quickly advantage to customers through our products and services of high quality. "
In 1992 Brother launches new faksimilinya engine "FAX-600" in the U.S. that quickly became famous, Brother catapulted into the next era - the era of Network & Content.
Following its success, Brother develop multi-function fax machines high performance at a competitive price. Brother prestigious award when he decided to open up new customer segments where competitors have not glanced Brother: develop joint ventures (SOHO) and small offices that do not require expensive office equipment.
In 1995, Brother Multi-Function Printer market (PMF) Digital Laser, which integrates the functions of printing, copying and fax into a single unit. The new engine is accelerating the development of integrated business printing Brother. The company then launched a re-launched Products Digital Multi-Function Color Inkjet. As a result of product innovation, information and communication equipment business was growing Brother.
In this post only discussed about printer products. Here is a list of printers that are listed on the site Brother Printer listed below are auto drivers, as well as supporting applications such as printer software applications, firmware updates can be downloaded for free.
Here are the list Brother printersMonochrome Laser PrinterHL-1 seriesHL-1230, HL-1240, HL-1250, HL-1270N, HL-1430, HL-1440, HL-1450, HL-1470N, HL-1650, HL-1670N, HL-1850, HL-1870N
HL-2 seriesHL-2030, HL-2035, HL-2040, HL-2045, HL-2070N, HL-2075N, HL-2130, HL-2132, HL-2140, HL-2150N, HL-2170W, HL-2220, HL- 2240DHL-2242D, HL-2250DN, HL-2270DW, HL-2460
HL-3 seriesHL-3260N, HL-5 series, HL-5040, HL-5050, HL-5070N, HL-5140, HL-5150D, HL-5170DN, HL-5240, HL-5240L, HL-5250DN, HL-5270DN, HL -5340D, HL-5350DN, HL-5370DW, HL-5380DN
HL-6 seriesHL-6050D, HL-6050DN
HL-7 seriesHL-7050, HL-7050N
HL-8 seriesHL-8050N
Color Printer (Laser / LED)HL-2 seriesHL-2600CN, HL-2700CN
HL-3 seriesHL-3040CN, HL-3070CW, HL-3450CN
HL-4 seriesHL-4000CN, HL-4040CDN, HL-4040CN, HL-4050CDN, HL-4150CDN, HL-4200CN, HL-4570CDW
Monochrome Laser Fax / MFC / DCPFAX-2 seriesFAX-2820, FAX-2850, FAX-2920
FAX-8 seriesFAX-8360P
MFC-4 seriesMFC-4800, MFC-4800J
MFC-7 series
MFC-7820N, MFC-7840N, MFC-7840W, MFC-7860DW
MFC-8 series

MFC-9 seriesMFC-9160, MFC-9180, MFC-9660, MFC-9880
DCP-1 series

DCP-3 seriesDCP-330C, DCP-350C, DCP-375CW, DCP-385C, DCP-395CN
DCP-5 seriesDCP-540CN, DCP-560CN, DCP-585CW
DCP-6 seriesDCP-6690CW
DCP-7 seriesDCP-7010, DCP-7010L, DCP-7025, DCP-7030, DCP-7040, DCP-7045N, DCP-7055, DCP-7060D, DCP-7065DN
DCP-8 seriesDCP-8020, DCP-8025D, DCP-8040, DCP-8045D, DCP-8060, DCP-8065DN, DCP-8070D, DCP-8085DN,
DCP-9 seriesDCP-9010CN, DCP-9040CN, DCP-9042CDN, DCP-9055CDN
DCP-J1 seriesDCP-J125
DCP-J3 seriesDCP-J315W
DCP-A5 seriesDCP-J515W
DCP-J7 seriesDCP-J715W
Mobile Printer (MW / PJ)MW-1 seriesMW-100, MW-120, MW-140BT, MW-145BT
MW-2 seriesMW-260
PJ-seriesPJ-522, PJ-523, PJ-562, PJ-563, PJ-622, PJ-623, PJ-662, PJ-663
To download printer driver brother above may use the following link brother printer driver