when you reach the last employee in record the Next and previous buttons should be disabled
Do you know how to detect when the last employee record has been reached?
Do you know how to disable a button? Read the API doc for the button class for a method to use.
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
but it messes my whole program
If you get errors you need to post the full text of the error message if you want help with them.
To see how to enable and disable buttons, write a small simple GUI program with two buttons.
Have one enabled and one disabled. Add action listeners to both buttons.
When the button is pressed, have the action listener disable the button that was pressed and enable the other button.
If you have problems with this program, post it here with your questions.
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16