1. Copying JTable's data to clipboard in Unix/Linux coderanch.comHi All, I have written some code to copy rows selected from a JTable via mouse and copied via Ctrl + C. These rows and their columns are formatted to a string and copied to the system clipboard. This code works fine in windows. I am able to paste the data from clipboard to notepad. However this code doesn't work well ... |
2. copy defaulttable mode, two different tables , with diff data java-forums.orgFollowing code i try to make a copy of the table which is passed into this method But copyPrintingModel , is empty at the the end of the loop but the elementcount is same that in the table. i.e. the data is added but the copyPrintingModel looses the data. I suppose thats because of , copyPrintingModel.addRow -- perhaps stores only the ... |
3. Copy data from one JTable to another JTable. forums.oracle.comYou make changes to a table's data via making changes to its TableModel - so it might depend on what you're using for the TableModel. Just get the model from the source JTable, make a new one from that and use that as the target's TableModel. Hope that made sense Good luck Lee |