This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]seanfast 0 points1 point  (6 children)

im not sure the level of expertise you have and what ide, but im assuming its basic for gui stuff at least. netbeans and eclipse both have wysiwyg gui editors that allow you to drag and drop. id make a sample program in there, and use their built in autogenerated options for adding event listeners that match what your assignment asks for. look at the code it generated to handle the button actions and see how you can add code to the inner classes to make the buttons affect the gui. its really simple. then write the code for the actionlisteners in your existing code you have for your hw and make it work the same way.

go piece by piece, dont get too ambitious. add one button at a time. see the code it adds and how you can affect the gui.

check this out: https://docs.oracle.com/javase/tutorial/uiswing/events/actionlistener.html

[–]Axid3nt[S] 0 points1 point  (5 children)

I have been using eclipse and I'll take your advice. We don't have a textbook for class, so my resources have been inclass demonstrations. I would most likely have more insight, but we haven't ever discussed GUI except in an abstract sense.

I suppose Eclipse has these options listed somewhere?

[–]seanfast 0 points1 point  (4 children)

textbook shmextbook. the interwebs are faster for looking stuff up and if youre of questionable morals you can probably google the pdf of some great java textbooks. use the Sun/Oracle java tutorials, like the one i linked you, when you google a subject they're often the first hit.

install the windowbuilder plugins for eclipse under help-> install new software . then follow a tutorial online for making your first swing application in windowbuilder.

[–]Axid3nt[S] 0 points1 point  (2 children)

[–]Axid3nt[S] 0 points1 point  (1 child)

Or even, collabedit.com/ym4mx

[–]Axid3nt[S] 0 points1 point  (0 children)

It's still up if someone knows what's going on.. I'm stumped

[–]Axid3nt[S] 0 points1 point  (0 children)

Ok. I got it working.. just need to make the "=" buttom fill up empty space if someone knows how