| 1844 | /// Closes the current form and returns to the previous form, releasing the |
| 1845 | /// EDT in the process |
| 1846 | @Override |
| 1847 | public void dispose() { |
| 1848 | if (isDisposed()) { |
| 1849 | return; |
| 1850 | } |
| 1851 | setDisposed(true); |
| 1852 | |
| 1853 | // the dispose parent method might send us back to the form while the command |
| 1854 | // within the dialog might be directing us to another form causing a "blip" |
| 1855 | if (!menu) { |
| 1856 | super.dispose(); |
| 1857 | } |
| 1858 | } |
| 1859 | |
| 1860 | /// Shows a modal dialog and returns the command pressed within the modal dialog |
| 1861 | /// |