psmith 2003/06/18 20:37:03
Modified: src/java/org/apache/log4j/chainsaw SmallButton.java
Log:
Fixed bug where a SmallButton could be 'clicked' (visibly the border changed)
even though it didn't do anything.
added disable checking which ignores the mouse when inactive.
Revision Changes Path
1.2 +5 -2
jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/SmallButton.java
Index: SmallButton.java
===================================================================
RCS file:
/home/cvs/jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/SmallButton.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SmallButton.java 18 Jun 2003 06:28:00 -0000 1.1
+++ SmallButton.java 19 Jun 2003 03:37:02 -0000 1.2
@@ -111,8 +111,11 @@
* @param e DOCUMENT ME!
*/
public void mousePressed(MouseEvent e) {
- m_border = m_lowered;
- setBorder(m_lowered);
+
+ if (isEnabled()) {
+ m_border = m_lowered;
+ setBorder(m_lowered);
+ }
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]