This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version: NetBeans IDE 7.1 RC1 (Build 201111242103) Java: 1.6.0_29; Java HotSpot(TM) 64-Bit Server VM 20.4-b02 System: Linux version 3.0.0-13-generic running on amd64; UTF-8; en_US (nb) I have following code where I would like to use rectangular selection... additionalCPTable.setColumnSelectionAllowed(false); additionalCPTable.setRowSelectionAllowed(true); additionalCPTable.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION); additionalCPTable.setTableHeader(null); I selected additionalCPTable and I already had "this" string in the clipboard. When I pasted the text this happened... this.setTableHeader(null); So all lines except the last one were deleted and string was replaced just there. One would expect that paste action will behave here similarly to writing text action.
I agree, but there are two cases: 1) Single line paste should paste the string repeatedly to all lines, So pasting "this" when additionalCPTable are selected: additionalCPTable.setColumnSelectionAllowed(false); additionalCPTable.setRowSelectionAllowed(true); additionalCPTable.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION); additionalCPTable.setTableHeader(null); one should get this.setColumnSelectionAllowed(false); this.setRowSelectionAllowed(true); this.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION); this.setTableHeader(null); 2) if the pasted string has multiple lines, they should be entered as they are (padding the number of lines by empty strings). So pasting aa bb cc in the same case as above, should produce aa.setColumnSelectionAllowed(false); bb.setRowSelectionAllowed(true); cc.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION); .setTableHeader(null);
I second this. Rectangular selection is supposed to support this feature. I've never tried multi-line paste as jirka_x1 is suggesting in any editor, but single-line paste is a must.
Should be resolved by issue #218915. *** This bug has been marked as a duplicate of bug 218915 ***