A frame with JBuilder - buttons can't be inserted

Status
Not open for further replies.

jewel22

Newbie level 3
Joined
Jun 15, 2009
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,298
A frame with JBuilder???

Hi
i'm jewel

I want to realise a frame (interface) on which i will insert some calculations
I want have ideas about which program i use the best ..Now i have installed JBuilder but bottons can't be inserted i don't know why
 

Re: A frame with JBuilder???

Jewel, I would strongly suggest NetBeans.

Of course, you need to know basic Java programming before you start, but NetBeans allows you to interactively (drag & drop) create an interface, and lets you insert calculations easily.

(example)

1. You create two text boxes (op_one and op_two), a button (calc) and a label (result).
2. You right click on the button, and add an event (MouseClicked).
3. NetBeans will create all the necessary object declarations and listeners as well as the "onClick" function, that will be - as expected - executed once the mouse is clicked (on the button).
4. Then, all you gotta do is write something like:
Code:
result.setText(op_one.getText() + op_two.getText());
5. Once you compile, the two numbers you type into the two text boxes will be added together and displayed on the label once you click on the button.

Simple as that

N.B. I've intentionally omitted type conversion to avoid complicating the example. The above code might not work 100% correctly (or at all). Type conversion can be done like this:

Code:
String s = "22";
int i;
double d;

i = Integer.parseInt(s); 
d = Double.parseDouble(s);
 

    jewel22

    Points: 2
    Helpful Answer Positive Rating
Re: A frame with JBuilder???

Hi Mr Jumper

Thank you very much,

I understood your exemple well with Netbeans, but i want know what about Visual Basic?? which one is simpler and more effictive because i have a constraint of time.
I just installed Microsoft Visual Basic 2008 Express Edition and i think is very easier then JBuilder. But i didn't try NetBeans Yet!
Thanks again
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…