/** * Handles action events generated by the user. * * @param e the event. */ public void actionPerformed(final ActionEvent e) { final String command = e.getActionCommand(); if (command.equals(CLOSE_COMMAND)) { dispose(); } else if (command.equals(COPY_COMMAND)) { this.panel.copySystemPropertiesToClipboard(); } }
setTitle(title); setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); setJMenuBar(createMenuBar(resources)); content.add(buttonPanel, BorderLayout.SOUTH); setContentPane(content);
setTitle(title); setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); setJMenuBar(createMenuBar(resources)); content.add(buttonPanel, BorderLayout.SOUTH); setContentPane(content);
setTitle(title); setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); setJMenuBar(createMenuBar(resources)); content.add(buttonPanel, BorderLayout.SOUTH); setContentPane(content);
/** * Handles action events generated by the user. * * @param e the event. */ public void actionPerformed(final ActionEvent e) { final String command = e.getActionCommand(); if (command.equals(CLOSE_COMMAND)) { dispose(); } else if (command.equals(COPY_COMMAND)) { this.panel.copySystemPropertiesToClipboard(); } }
/** * Handles action events generated by the user. * * @param e the event. */ public void actionPerformed(final ActionEvent e) { final String command = e.getActionCommand(); if (command.equals(CLOSE_COMMAND)) { dispose(); } else if (command.equals(COPY_COMMAND)) { this.panel.copySystemPropertiesToClipboard(); } }