You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by ps...@apache.org on 2003/06/19 05:37:03 UTC
cvs commit: jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw SmallButton.java
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: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org