Clock with nifty, updating the text

What I’m trying to do is create a ‘clock’ with nifty. My nifty text field calls a method that returns the current time as a string. Only problem is I need to update that textfield. So my question is, is there a way I can update the nifty screen or a screen element with the update loop?


TextRenderer timeLabel = screen.findElementByName("timeLabel").getRenderer(TextRenderer.class);



Thanks! I was trying to figure out how to do that for the past hour.