lCurrentFrame.setText("N/a");
lFrameRate.setText("N/a");
}
else if (currentSprite != null && framelister.getSelectedItem() != null) {
int i = (Integer) framelister.getSelectedItem();
KeyFrame k =
//TODO check if this works
currentSprite.getFrameByID(i);
if (k != null) {
lCurrentFrame.setText(String.valueOf(currentSprite.getCurrentFrame().getId()));
lFrameRate.setText(String.valueOf(currentSprite.getDelay()));