In the code you posted, the Icon 'sword2' is declared as a local variable inside the 'try' scope of a 'try..catch'. This means it is local to that block and disappears at the end, i.e. when the...