|
|
Selecting a row in a JTable
When I click on a cell, I'd like the whole row to be highlighted,
INCLUDING the selected cell. I've tried using the following code to no
avail:
setCellSelectionEnabled(false);
setColumnSelectionEnabled(false);
setRowSelectionEnabled(true);
Help would be much appreciated.
Prefer replies to tdk13@perfectsolve.com
Thanks.
|
|
0
|
|
|
|
Reply
|
asd
|
5/13/2004 3:46:25 PM |
|
use setRowSelectionInterval
Will
Author of JForm
http://jform.coderight.nl
asd@asd.com wrote in message news:<8t57a09067uruiiliv8ocjf3f1t0i7i2k0@4ax.com>...
> When I click on a cell, I'd like the whole row to be highlighted,
> INCLUDING the selected cell. I've tried using the following code to no
> avail:
>
> setCellSelectionEnabled(false);
> setColumnSelectionEnabled(false);
> setRowSelectionEnabled(true);
>
> Help would be much appreciated.
>
> Prefer replies to tdk13@perfectsolve.com
>
> Thanks.
|
|
0
|
|
|
|
Reply
|
will
|
5/14/2004 5:45:49 AM
|
|
|
1 Replies
1075 Views
(page loaded in 0.124 seconds)
Similiar Articles: Selecting a row in a JTable - comp.lang.java.guiWhen I click on a cell, I'd like the whole row to be highlighted, INCLUDING the selected cell. I've tried using the following code to no avail: setCe... JTable with row selection, but no cell selection - comp.lang.java ...I have a JTable where I want the user to be able to select a row, but not a single cell. If the user clicks on a cell, the entire row should be highli... JTable row selection (left and right mouse) - comp.lang.java.gui ...Is it possible to be able to allow users to use either the left or the right mouse button to select one or more rows in a JTable, and upon the select... Changing color of a selected cell in JTable - comp.lang.java.gui ...Selecting a row in a JTable - comp.lang.java.gui... d like the whole row to be highlighted, INCLUDING the selected cell. I ... changing font for particular cell in JTable ... JTable, edit a cell, but changed value not seen - comp.lang.java ...I have a problem with using JTable, editing a cell in a row and then expecting that ... But tabbing away means selecting the next row. So now the user is on the wrong ... Colors for JTable cells - comp.lang.java.guiSelecting a row in a JTable - comp.lang.java.gui... uitable: change column width - comp ... I want to set the background color of the ... row in a JTable - comp.lang.java ... Using JComboBoxes in a JTable - comp.lang.java.guiSelecting a row in a JTable - comp.lang.java.gui When I click on a cell, I'd like the whole row to be highlighted, INCLUDING the selected cell. Disable a JTable row - comp.lang.java.guiSelecting a row in a JTable - comp.lang.java.gui Disable a JTable row - comp.lang.java.gui Hi, Is there a way to disable select of a row in JTable based on the value of a ... populate a netbeans jtable - comp.lang.java.guimax devis via JavaKB.com wrote: > how it's possible to populate a jtable in netbeans? > > help please > In NetBeans, select the JTable. Make sure the Properties ... JTable Column with Multiple Types - comp.lang.java.guiSelecting a row in a JTable - comp.lang.java.gui Limiting number of characters in a JTable columns ... SELECTION, only a single row, column, or cell can be made. How do I select a row (or rows) in a JTable?John Zukowski. In the Model-View-Controller (MVC) world of Swing, the JTable is just a display mechanism. Instead of selecting rows in the table (view), you select ... Programmatically Making Selections in a JTable Component | Example ...For example, if the selection mode is SINGLE_SELECTION, only a single row, column, or cell can be made. See Enabling Single or Multiple Selections in a JTable Component ... 7/22/2012 10:34:45 AM
|
|
|
|
|
|
|
|
|