5 Years
Discussion Span
Last Post by zakiraimanaz

What part are you having problems with?
Displaying a button
Adding a listener to the button
Executing the listener's code when the button is pressed
Doing a save in the listener code


actually i can display the button. but i cannot make it functional. it should be when i press the button,it will save. but there nothing happen. i'm already create different panel with another button. only SAVE button cannot function.
for the EXIT button already done with it.


what is listener?sorry i'm still new with java. before this i used c++.
so,if i add listener,then the SAVE button will be ok?


so,if i add listener,then the SAVE button will be ok?

by okay, it means that when you'd add a listener you will execute whatever code you've written for the button's function whenever the button is pressed

Check the API and Java tutorials, it'll save you a lot of time

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.