Disabling a button at EOF
My application writes data to a text file, I have buttons such as the next button that is disabled until the first button is clicked, then you can hit the next button to go through all the data stored on file.
However my problem is that I am trying to get it so the next button is disabled on the last record so that rather than the eof message be displayed you know from when the button is greyed out that you are at the end of file.
I would be grateful for any help, I have only been studying java for a few months, this seems to be an impossible task at the moment.
Thanks in advance.:confused: