| | |
| | | buttonsPanel.add(okButton, gbc); |
| | | okButton.addActionListener(new ActionListener() |
| | | { |
| | | @Override |
| | | public void actionPerformed(ActionEvent ev) |
| | | { |
| | | okClicked(); |
| | |
| | | buttonsPanel.add(cancelButton, gbc); |
| | | cancelButton.addActionListener(new ActionListener() |
| | | { |
| | | @Override |
| | | public void actionPerformed(ActionEvent ev) |
| | | { |
| | | cancelClicked(); |
| | |
| | | return buttonsPanel; |
| | | } |
| | | |
| | | /** |
| | | * Method called when user clicks on cancel. |
| | | * |
| | | */ |
| | | /** Method called when user clicks on cancel. */ |
| | | private void cancelClicked() |
| | | { |
| | | isCanceled = true; |
| | | dispose(); |
| | | } |
| | | |
| | | /** |
| | | * Method called when user clicks on OK. |
| | | * |
| | | */ |
| | | /** Method called when user clicks on OK. */ |
| | | private void okClicked() |
| | | { |
| | | BackgroundTask<ArrayList<LocalizableMessage>> worker = |
| | |
| | | toFront(); |
| | | } |
| | | |
| | | /** |
| | | * Updates the widgets on the dialog with the contents of the securityOptions |
| | | * object. |
| | | * |
| | | */ |
| | | /** Updates the widgets on the dialog with the contents of the securityOptions object. */ |
| | | private void updateContents() |
| | | { |
| | | if (javaArguments.getInitialMemory() > 0) |
| | |
| | | { |
| | | SwingUtilities.invokeLater(new Runnable() |
| | | { |
| | | @Override |
| | | public void run() |
| | | { |
| | | UIFactory.setTextStyle(comp, |