Forums Register Login

overwriting paintTrack(Graphics g) - help drawing a line

+Pie Number of slices to send: Send
Hi,

i have just overwritten the paintTrack(Graphics g) method from the BasicSliderUI, but i have no idea how i could draw a nice line.
I can draw the line with g.drawLine(x1, y1, x2, y2) but that line is pretty thin and doesnt look good... how can i achieve this?

thanks in advance
+Pie Number of slices to send: Send
The fillRect(...) method should work.
+Pie Number of slices to send: Send
thanks, thats what i was looking for
is it possible to change the color (black is not really what i was looking for ;) )?
+Pie Number of slices to send: Send
Check out all the nifty methods java.awt.Graphics has.
Beware the other head of science - it bites! Nibble on this message:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1280 times.
Similar Threads
size
simple graphics question
How to Draw a Line in Java?
Multiline JLabel
JSlider
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:51:54.