diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/gui/ParseTreeInfoPanel.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/gui/ParseTreeInfoPanel.java index 8df0393cb..62d605592 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/gui/ParseTreeInfoPanel.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/gui/ParseTreeInfoPanel.java @@ -116,12 +116,12 @@ public class ParseTreeInfoPanel extends JPanel mParseTreeModel.setParseTree(parseTree); } catch (IOException ex) { - JOptionPane.showMessageDialog( + showErrorDialog( aParent, "Could not open " + aFile + ": " + ex.getMessage()); } catch (ANTLRException ex) { - JOptionPane.showMessageDialog( + showErrorDialog( aParent, "Could not parse " + aFile + ": " + ex.getMessage()); }