For Programmers: Free Programming Magazines  


Home > Archive > Java Help > April 2007 > moving on to jslider...









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author moving on to jslider...
i'm not llloyd wood

2007-04-29, 7:07 pm

.... i can put one on the screen but it doesn't do anything [duh]
i want it to increase the fonts with every tick???

k

--
Sometimes I'm in a good mood.
Sometimes I'm in a bad mood.
When all my moods have cum to pass
i hope they bury me upside down
so the world can kiss me porcelain,
white, Irish bottom.
Andrew Thompson

2007-04-29, 10:07 pm

i'm not llloyd wood wrote:
>... i can put one on the screen but it doesn't do anything [duh]
>i want it to increase the fonts with every tick???


- Add a change listener to the JSlider.
- Implement the state changed.
- When it (the state) does (change), get the Font of
the Component.
- Construct a new Font based on the name and style
of the current Font.
- Set the new Font as the Component's Font.

As an aside,
- Checking the JavaDocs will be necessary,
in order to turn that description into code.
- Checking the JavaDocs first might have allowed
to progress this faster than asking on usenet.
- If you want to gain respect, and more readers,
please put an upper case letter at the start of each
sentence, always capitalize the word 'I', and refrain
form using more than one '?'.

And since I expect I've asked you some of the last things
earlier, I will also warn you that you are coming to the
end of my limit of answering these poorly formed, and
formatted questions from you.

Please take a little more care when posting in future,
to prepare the question carefully and make good use
of the JavaDocs.

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.as...-setup/200704/1

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com