change language in blog

Friday, December 9, 2011

make converter biner, desimal, hexa dan oktal

Neatbean
asslamualkum
Making an application converter decimal, binary, octal, and hexadecimal by using the application neatbean free download, neatbean is a java based application, there are also steps - steps, as follows:


1. Open the application neatbeannya (here I use neatbean 6.5.1), while the appearance is as below:
   

2. The next step, after the application is open, we make new project.example image below (follow that has been circled, and then next):
 

3. Then rename the converter, but here I do not change.after that click finish (follow that have been circled):
  

4. Create new JFrame form by right clicking on the java user application> choose New> JFrame click From (follow that have been circled):
 

5. Arrange JFrame fromnya accordance with our wishes (select the palette menu located on the right side upper corner a bit, but if not to be. we can use by selecting the menu window on the menu bar, then select the palette), this is the picture before editing:
 
  
and after editing, to:

 
 
6. time we mengcoding ... + _ +
a. empty
Click 2 times on empty, then write this coding:
jTextField2.setText ("");
jTextArea1.setText ("");

 
b. cancel
Click 2 times on cancel, then write this coding:  

System.exit (0);

c.proses
use coding :
String a = jTextField2.getText();
int desimal = Integer.parseInt(a);
String hasildesimal = Integer.toBinaryString(desimal);
String oktal = Integer.toString(desimal);
String hxdesimal = Integer.toHexString(desimal);
jTextArea1.setText(“nilai desimalnya adalah \n”+ a +”\n \n” + “nilai binernya adalah \n”+ hasildesimal +”\n \n” + “nilai oktalnya adalah \n”+ oktal +”\n \n” + “nilai hexadesimalnya adalah “+ hxdesimal); 

7. Time for us to test our application, select the Run menu> click Run main project or if the keyboard press shift + F5 or right click> run project. use value to be sought in the column that has been available, click proses. looks as follows:

 

8. Done ... survived him,
for my friends, welcome to make a big task ...
please criticism and suggestions + _ +
(remember this application will not be issued if the error info, so who could ask for your cooperation ..


wasslamualkum wr. wb 

No comments:

Post a Comment

Total Pageviews