Search:
Type: Posts; User: Azoth
Search:
Search took 0.02 seconds.
-
December 17th, 2017, 07:38 PM
Thanks. I solved this problem
-
December 17th, 2017, 02:41 PM
I found a bug in my jtable after it is resized. If you
click with a mouse in a cell, the table returns to the default . So I want a listener of sorts that catches mouse/ keys & keeps the resized...
-
November 15th, 2017, 05:34 PM
The code I am using states index out of bounds
The code I am using is
void Insert(int index)
{table.moveColumn(table.getColumnCount()-1,index);}
Help
-
October 20th, 2017, 07:06 PM
What I want is
// | Col 0 | Col 2 | Col 3 |
// | 1st | 3rd | 4th |
and this :
// | Col 0 | Col 6 |
// | 1st | 7th |
I have problems removing the last column or first...
-
October 20th, 2017, 07:05 PM
-
October 18th, 2017, 07:56 AM
I have a table with 7 columns
Since indexes start at 0,cols go 0-6 .
I want col 2 and cols 4-6 deleted
-
October 18th, 2017, 07:53 AM
I have a table with 7 columns
Since indexes start at 0;columns go 0-6
So i want col 1 and 4- 6 removed
-
October 17th, 2017, 12:06 PM
here is the code
for(int col=0;col<=2;col++)
StatsTable.removeColumn(StatsTable.getColumnModel().getColumn(1));
It does not remove the last 3 columns
Columns after removal I want...
-
October 17th, 2017, 09:04 AM
The code has been posted previously.
-
October 17th, 2017, 09:03 AM
The code has been posted previously.
-
October 15th, 2017, 12:33 PM
Ok I got rid of the 2nd column,but can’t get rid of the last one .
Any ideas?
-
October 15th, 2017, 12:32 PM
[QUOTE=jcaccia;2218091]Is it the original column #2 that is not deleted or a column that shows now in the second position after deleting them?
The correct code should be:
for (int col = 1; col <...
-
October 13th, 2017, 08:23 AM
[QUOTE=jcaccia;2218091]Is it the original column #2 that is not deleted or a column that shows now in the second position after deleting them?
The correct code should be:
for (int col = 1; col <...
-
October 12th, 2017, 08:17 PM
Ok that gets rid of many columns except the 2nd one.
I tried variants like
for (int col=3; col <= 6; col++)
StatsTable.removeColumn(StatsTable.getColumnModel().getColumn(3));
...
-
October 12th, 2017, 01:54 PM
Uh huh..I didn't think of that about the columns
Could you give the code for the loop that describes
this?
-
October 12th, 2017, 10:26 AM
I have a table with 7 columns. I am trying to delete columns 2-6. Here is the code:
for(int col=1;col<6;col++)
StatsTable.removeColumn(StatsTable.getColumnModel().getColumn(col));
It...
-
August 6th, 2017, 11:46 AM
I get
2
3
4
for
(StatsTable.getValueAt(i,0)
-
August 6th, 2017, 10:14 AM
javax.swing.JTable[,0,0,606x160,alignmentX=0.0,alignmentY=0.0,border=javax.swing.border.MatteBorder@129d20b,flags=251658560,maximumSize=,minimumSize=,preferredSize=,autoCreateColumnsFromModel=true,aut...
-
August 4th, 2017, 05:28 PM
The values
1
2
3
came from the the code
if (Integer.parseInt(StatsTable.getValueAt(i,0).toString()) != 0)
When printing out i I get
0
1
2
-
August 4th, 2017, 10:53 AM
The statement (9219) returns
1
2
3
-
August 4th, 2017, 07:32 AM
It should be
1
2
3
.
.
Like a spreadsheet
-
August 3rd, 2017, 12:49 PM
I have this code here:
try{
for(int i=0; i<=rows;++i)
{
if (Integer.parseInt(StatsTable.getValueAt(i,0).toString()) != 0)
...
-
August 1st, 2017, 01:21 PM
I have a jtable with 4 columns. Is the first column
labelled column 0 like in java arrrays or is it labelled 1 ?
-
I tried your suggestion.Jtable still throws NullPointerException
-
How do you do that?
I decided to embed my code in a try-catch block.
|
Click Here to Expand Forum to Full Width
|