468,510 Members | 1,741 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,510 developers. It's quick & easy.

Repainting a AWT Button

Is there a way to repaint an AWT Button while it is not pressed. I am trying
to implement a custom behaviour for a Button. I implement a mouse listener
and I want to repaint the button when I click the right mouse button. I have
tried all methods sych as paint, repaint, update but they all seem to fail.
The button is repainted only when I press it, (when I press the left mouse
button).

Thaks in advance
Tilemachos
Jul 17 '05 #1
1 2160
did you try this ?

b.setVisible(false);
b.setVisible(true);
On Thu, 11 Sep 2003 21:09:23 +0300, java <ti*****@hotmail.com> wrote:
Is there a way to repaint an AWT Button while it is not pressed. I am
trying
to implement a custom behaviour for a Button. I implement a mouse
listener
and I want to repaint the button when I click the right mouse button. I
have
tried all methods sych as paint, repaint, update but they all seem to
fail.
The button is repainted only when I press it, (when I press the left
mouse
button).

Thaks in advance
Tilemachos


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Hal Vaughan | last post: by
reply views Thread by Phil | last post: by
reply views Thread by Mike Richardson | last post: by
2 posts views Thread by Phil | last post: by
2 posts views Thread by Geraldine Hobley | last post: by
5 posts views Thread by Jesse Aufiero | last post: by
8 posts views Thread by =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.