| | |
| | | { |
| | | panel.setInfo(getInfo()); |
| | | } |
| | | dlg = new GenericDialog( |
| | | Utilities.getFrame(MainActionsPane.this), |
| | | panel); |
| | | dlg = createDialog(panel); |
| | | |
| | | dialogs.put(action, dlg); |
| | | Utilities.centerGoldenMean(dlg, |
| | |
| | | } |
| | | |
| | | /** |
| | | * Creates the dialog to be displayed using the provided panel. |
| | | * @param panel the panel that will be contained in the dialog. |
| | | * @return the dialog to be displayed using the provided panel. |
| | | */ |
| | | protected GenericDialog createDialog(StatusGenericPanel panel) |
| | | { |
| | | return new GenericDialog( |
| | | Utilities.getFrame(MainActionsPane.this), |
| | | panel); |
| | | } |
| | | |
| | | /** |
| | | * Creates the categories contained by this panel. |
| | | * @return the categories contained by this panel. |
| | | */ |