• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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

 
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....
 
Marshal
Posts: 6342
1114
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"akimaki makiaki", please check your private messages regarding an important administrative matter.
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • 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).

 
Ranch Hand
Posts: 4632
 
Marshal
Posts: 64707
226
  • 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
 
Rancher
Posts: 3052
22
  • 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
Marshal
Posts: 64707
226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done, whoever Camick ( ) is.
 
Campbell Ritchie
Marshal
Posts: 64707
226
  • 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.
 
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
Boost this thread!