Rectangle displayBounds =
new Rectangle(Integer.parseInt(m_displayField_x.getText()),
Integer.parseInt(m_displayField_y.getText()),
Integer.parseInt(m_displayField_width.getText()),
Integer.parseInt(m_displayField_height.getText()));
return new DeviceAddCommand(targetCategory,
"device_" + System.currentTimeMillis(),
m_nameField.getText(),
m_imageField.getText(),
displayBounds);
}