textfieldlistener

Discussion in 'Computers and The Internet' started by Trotsky311, Mar 21, 2005.

  1. Trotsky311

    Trotsky311 Supporters HipForums Supporter

    Messages:
    749
    Likes Received:
    0
    alright,

    i've got 3 JSliders, and 3 JTextfields,

    they correspond and such one to one,

    the sliders go from 0 to 255, and the corresponding text field changes value.

    i use the numbers for RGB values, how do i get my the values out of the textfields as they are changed, ie: the color slowly shifts as the slider is dragged, but not because of any eventhandler on the slider itself.

    the sliders only change the textfields.
    textfields only change the color.
     
  2. SilentMember

    SilentMember Member

    Messages:
    6
    Likes Received:
    0
    <sorry, posted under old user name - something's weird about this site's cookies>
     
  3. Lonely Goatherd

    Lonely Goatherd Member

    Messages:
    181
    Likes Received:
    0
    Well, apparently you've got some code that copies the slider value to the text field - couldn't you insert more code in the same place that copies the slider value to whatever color you need to change?
     
  4. Trotsky311

    Trotsky311 Supporters HipForums Supporter

    Messages:
    749
    Likes Received:
    0
    i ended up doing that.

    i'm turning into microsoft, as opposed to finding a good solid solution, i just patched the crap outta that thing.

    eh. it works.

    but DAMN. that's the worst coding practices i've ever seen. i should be slapped.

    by the swedish bikini team.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice