Example usage for java.text ParseException printStackTrace

List of usage examples for java.text ParseException printStackTrace

Introduction

In this page you can find the example usage for java.text ParseException printStackTrace.

Prototype

public void printStackTrace(PrintStream s) 

Source Link

Document

Prints this throwable and its backtrace to the specified print stream.

Usage

From source file:Main.java

protected JFormattedTextField createField() {
    MaskFormatter formatter = null;
    try {//  w  w w .j av  a2 s .com
        formatter = new MaskFormatter("########");
    } catch (ParseException e) {
        e.printStackTrace(System.out);
    }
    JFormattedTextField jtf = new JFormattedTextField(formatter);
    return jtf;
}

From source file:ca.uqac.info.trace.generation.BookstoreGenerator.java

@Override
public void initialize(CommandLine c_line) {
    super.initialize(c_line);
    try {//from   w ww.ja v a2 s.  c o m

        super.parseFromString(m_petriNetDefinition);
    } catch (java.text.ParseException e) {
        e.printStackTrace(System.err);
    }

}