try {
String clipboardContent = (String) trans.getTransferData(DataFlavor.stringFlavor);
String[] clipboardLines = clipboardContent.split("\n");
for (String clipboardLine : clipboardLines) {
model = (PowerTableModel) table.getModel();
model.addRow(new Object[] {clipboardLine});
}
} catch (IOException ioe) {
JOptionPane.showMessageDialog(this,
"Could not add read arguments from clipboard:\n" + ioe.getLocalizedMessage(), "Error",
JOptionPane.ERROR_MESSAGE);