Please describe what's not working. What is the previousJButton supposed to do? What is it doing instead, if anything?

The code you've posted is the kind of (forgive me) crap people get from...