星期二 四月 14, 2009

Quick Design "Calculator" with GUI Builder in NetBeans 6.5

During NetBeans 6.5,you can do the GUI design very quickly and it's very convenient for you to use.You can work out the project by just drafting the swing components.


Before get started,you should install NetBeans 6.5(6.7 Milestone 1/2/3 is  also okay) and JDK 6(or higher edition) on your computer.


This time I'd like to do a simple calculator with NetBeans 6.5.


First of all,just oepn NetBens 6.5,choose Javase,create a new java desktop application, name for your project and make it the main project.


After that,we can design the calculator by drifting the swing components ,here we use Jbutton for the number 1 to 9 ,and use textfield to display the result.Like below:


 


I put the sourcecode in the attachment,you can download it and run it on your computer.


However,this is just a simple application,contains four arithmetic operations(add,subtract,multiply,divide)and arithmetic point operations.Besides,with it ,you can continue your next calculation .Of course, you can do further developing with the existing one.


 Source code:http://blogs.sun.com/Chinese_Functional_CA/resource/src.rar


 

About

This is Chinese Functional CA Team Blog. Any suggestion is appreciated.

Search

Archives
« 四月 2014
星期日星期一星期二星期三星期四星期五星期六
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
今天