Added getText() method to Swing