()
| 53 | private Map<String, String> locations; |
| 54 | |
| 55 | public XJFileChooser() { |
| 56 | addHierarchyListener(new HierarchyListener() { |
| 57 | @Override |
| 58 | public void hierarchyChanged(HierarchyEvent e) { |
| 59 | if((e.getChangeFlags() & HierarchyEvent.DISPLAYABILITY_CHANGED) != 0 && !isDisplayable()) { |
| 60 | // reinitialise fields when the file chooser is hidden |
| 61 | resource = null; |
| 62 | fileName = null; |
| 63 | isFileSelected = false; |
| 64 | resetChoosableFileFilters(); |
| 65 | } |
| 66 | } |
| 67 | }); |
| 68 | locations = getLocations(); |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * Overridden to make sure the shared MainFrame instance is used as |
nothing calls this directly
no test coverage detected