 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Theodosis Ekizoglos Guest
|
Posted: Fri Jun 25, 2004 9:09 am Post subject: Pressed Button Illusion |
|
|
I created a Button class with rounded edges that extends the JButton
class with overriding the paintComponent() method using the
fillRoundRect(....) method etc. Thanks all the guys for help in my
last message.
Now, my problem is, that when the button is pressed there is no
press-effect. There is no shadows that make the illusion of a pressed
button.
Is there an apropriare method for that? Or must I draw all the shadows
(lines) in paintComponent method? What exactly happends with the
shadows when a button is pressed?
|
|
| Back to top |
|
 |
ak Guest
|
Posted: Fri Jun 25, 2004 9:41 am Post subject: Re: Pressed Button Illusion |
|
|
| Quote: | I created a Button class with rounded edges that extends the JButton
class with overriding the paintComponent() method using the
fillRoundRect(....) method etc. Thanks all the guys for help in my
last message.
Now, my problem is, that when the button is pressed there is no
press-effect. There is no shadows that make the illusion of a pressed
button.
Is there an apropriare method for that? Or must I draw all the shadows
(lines) in paintComponent method? What exactly happends with the
shadows when a button is pressed?
you should of course check state of your button while painting. |
--
http://uio.dev.java.net Unified I/O for Java
http://reader.imagero.com Java image reader
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|