Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with using JCheckBox in JTable to return a value in another column

 
Ak Smith
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following code...I am trying to use a JCheckBox in Column0 - if when selected will return a double value in Column2. I don't know where I am going wrong. Please advice....




thanks....
 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4317
233
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"akimaki makiaki", please check your private messages regarding an important administrative matter.
 
Darryl Burke
Bartender
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BeForthrightWhenCrossPostingToOtherSites
http://forums.sun.com/thread.jspa?threadID=5450640
 
Ak Smith
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reposting this code so that it does not reference other classes. (also posted on forums.sun.com).

 
Michael Dunn
Ranch Hand
Posts: 4632
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Michael Dunn wrote:lucky I checked StackOverflow . . .
I shall repeat what Darryl Burke said earlier: tell the people on every site if you post in several places.
 
Ak Smith
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry Guys...I've just started with this. This is also posted on forums.sun.com and stackoverflow.

I have edited the code..but still cannot get a value to show up in column2. please advise.

thanks....

 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> please advise.

no thanks.

my simple solution works exactly as per your description
(check one, other unchecks and vice-versa)

you've indicated that our time is unimportant to you,
similarly, you getting the solution is unimportant to me.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and for anyone thinking of spending some time trying to fix the code,
here's his/her final post at the sun cross-post (posted some time ago)

"GOT IT !!! Here is the final code if somebody wants it for reference. Huge Help from Camickr - Thank You Very Much !!!"
 
Ak Smith
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Michael,
I'm sorry....not sure where it is that I ever mentioned or indicated that your time is unimportant to me ???

ciao
 
Rob Camick
Ranch Hand
Posts: 2564
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sorry....not sure where it is that I ever mentioned or indicated that your time is unimportant to me ???


The fact that you posted this on 3 forums (and didn't include links to each forum) indicates our time is unimportant. Think about it. What if someone in this forum takes the time to answer the question, but it has already been answered in another forum. Did that person just not waste their time?

Also, once you did get the answer in another forum, you didn't post the solution in the other to forums. So again, nobody knows an answer has been found and may spend time trying to provide and answer.

Questions should only be posted in a single forum. If you don't get an answer within a day then you can try another forum (of course including links to all postings).
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done, whoever Camick ( ) is.
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But you are quite right to complain about multiple postings. I agree it is a waste of time which is not being paid for, as well as very discourteous to all who replied.
 
Ak Smith
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well...I apologize. But I've just started doing this - I'm sure you've realized that this is just my first or maybe second post. Maybe there is another way of putting this across than simply accusing. That is just not fair.

Rob....thanks again for your help.
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ak Smith wrote:Well...I apologize. But I've just started doing this - I'm sure you've realized that this is just my first or maybe second post. Maybe there is another way of putting this across than simply accusing. That is just not fair.

No one's accusing, rather informing. Also, please read the FAQ's as it's all there, including the rationale behind these recommendations. This should be the first place to look before a first post here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic