1 19 package org.openide; 20 21 import javax.swing.JComponent ; 22 23 24 31 final public class WizardValidationException extends Exception { 32 private String localizedMessage; 33 private JComponent source; 34 35 36 private WizardValidationException() { 37 } 38 39 45 public WizardValidationException(JComponent source, String message, String localizedMessage) { 46 super(message); 47 this.source = source; 48 this.localizedMessage = localizedMessage; 49 } 50 51 56 public JComponent getSource() { 57 return source; 58 } 59 60 64 public String getLocalizedMessage() { 65 return (localizedMessage != null) ? localizedMessage : this.getMessage(); 66 } 67 } 68 | Popular Tags |