/**
* Constructs a new panel.
*/
public SystemPropertiesPanel()
{
final ResourceBundleSupport bundleSupport = new ResourceBundleSupport(Locale.getDefault(),
SwingPreviewModule.BUNDLE_NAME, ObjectUtilities.getClassLoader(SwingPreviewModule.class));
setLayout(new BorderLayout());
this.table = SystemPropertiesPanel.createSystemPropertiesTable();
add(new JScrollPane(this.table));
// Add a popup menu to copy to the clipboard...
this.copyPopupMenu = new JPopupMenu();
final String label = bundleSupport.getString("system-properties-panel.popup-menu.copy");
final KeyStroke accelerator = bundleSupport.getKeyStroke("system-properties-panel.popup-menu.copy.accelerator");
final JMenuItem copyMenuItem = new JMenuItem(label);
copyMenuItem.setAccelerator(accelerator);
copyMenuItem.getAccessibleContext().setAccessibleDescription(label);
copyMenuItem.addActionListener(new CopyAction());