Update JoshText.java

Add undo/redo capability check to disable the buttons when not available.
Update JoshText.java
Merge pull request #34 from RobertBColton/patch-1

Implements canUndo()/canRedo()