Code example for InvocationTargetException

Methods: printStackTrace

0
			// Immediately reasserts the exception by interrupting the caller thread itself 
			Thread.currentThread().interrupt();
 
			e.printStackTrace();
		} catch (InvocationTargetException e) {
			e.printStackTrace();
		} 
	} 
 
	private JLabel getAuthorLabel() { 
		if (authorLabel == null) {
			authorLabel = new JLabel("Please enter your name. (optional)");
			authorLabel.setAlignmentX(Component.LEFT_ALIGNMENT);
		} 
		return authorLabel;
	} 
 
	public JTextField getAuthorField() { 
		if (authorField == null) {
			authorField = new JTextField(40);
		}