A demonstration how to do multi selections with JTables.
You are able to select multiple cells, colums, rows and parts of rows
A demonstration how to do multi selections with JTables.
You are able to select multiple cells, colums, rows and parts of rows
Littering a dark and dreary road lay the past, seeking a way to do a multiple select, with rows, cells and columns in a JTable, or select parts of them. So, now i reached the light at the end of the way.
I couldn’t find any code in the web to do so. I found some examples to do a column select, or multiple row select. But there was nothing to do a selection with parts of rows, like making text selections in a word processing program. So i had to do it myself.
If you have to use JTables with an option to do a selection with parts of rows, than i invite you to relax and make use of the code you will find at this place.
I think there is clearly a need for a new way to do selections with JTables, beside the existing methods. I have found many, more or less useful examples, in the web to do selections in JTables. But now enough the words, lets see what i mean: or see the YouTube vido for explaination: watch YouTube
Download the sample source code and may be you will spare some time to develop the functinality given by this demo again.
Why participate? For inspiration, and maybe a more helpful java resource, this site serves.
The code is compiled to run at java 8.xx, you need at least a Java JRE to run the demo bin code. If you will download the source code, you need a Java SDK and or Netbeans to compile and run the demo.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.