Kill box in tree dialog box makes dialog dispose of itself

This commit is contained in:
Terence Parr 2012-11-04 15:47:00 -08:00
parent 64a5be0675
commit e5c2dfaac4
2 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,9 @@
ANTLR v4 Honey Badger
November 4, 2012
* Kill box in tree dialog box makes dialog dispose of itself
October 29, 2012
* Sam fixes nongreedy more.

View File

@ -303,6 +303,7 @@ public class TreeViewer extends JComponent {
bottomPanel.add(scaleSlider, BorderLayout.CENTER);
// make viz
dialog.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
dialog.pack();
dialog.setLocationRelativeTo(null);
dialog.setVisible(true);