How to render the JTable Cell with JSlider

tomatolei2009
tomatolei2009 used Ask the Experts™
on
Hello Expert:
                  Can you give me an example which uses the JSlider to render the cell of JTable with MaxValue and MinValue. It means I can use JSlider to set the value of cel in a certain column. Thanks!l
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2010

Commented:
Can You post a link to Your page or piece of code You're messing with?

Author

Commented:
Ok, I will upload a demo file to you.  In this demo file two column has been rendered by JSlider, but you can not change the value of it. how can I implement it?
MixerTest.java
Top Expert 2016
Commented:
>>but you can not change the value of it. how can I implement it?

That's because you've only made Volume a CellRenderer. It needs to be a CellEditor too

Author

Commented:
thanks i know the problem

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial