Tuesday, January 24, 2012

make converter and calculating decimal to binary, sign magnitude, one's complement two's complement and float

Now, I will share for you all, how to make converter  and calculating decimal to binary, sign magnitude, one's complement two's complement and float.
First, we must now about decimal , binary , sign magnitude , one's complement two's complement and float.
You can learn about that here. I make that in Indonesian language, if you confuse about that, you can translate here.
Ok, First step for make this program :
1. open your Netbeans (I recomended to use that)


2. create new project and give name OARKOM

3. create new JFrame Form and give name HALAMAN_AWAL


4. And make interface like what do you want, example

make Pilihan,Tentang,Keluar (Option , About , Exit) can use Menu Bar, in the Swing Menus in Palete. And for add menu bar use Menu.


But before that,you make panel first in Swing Containers . Because if we use panel we be easy for edit backgrond and anything. Make like Konversi, use label in Swing Controls. Make something like konvers or kalkulasi use Button in swing controls, and use text area for make some text to your program.

After that Make new JFrame Form again  for Kalku (calculating), Konversi and Tentang_Saya (About_Me) , Tentang_Materi (About_Course) as new class.





Use Text field for user inserting number.

5. After that change variable name of all button,text field. It's will make you be easy for remember name of the button or text field. right klik in button or text field


6. And double left klik for make code in the button (for processing), and not for text field.

you can look my code in my program, download here




No comments:

Post a Comment