summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/swing/scala/swing/Component.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/swing/scala/swing/Component.scala b/src/swing/scala/swing/Component.scala
index 8dc1169395..cec47f6589 100644
--- a/src/swing/scala/swing/Component.scala
+++ b/src/swing/scala/swing/Component.scala
@@ -234,8 +234,8 @@ abstract class Component extends UIElement {
def propertyChange(e: java.beans.PropertyChangeEvent) {
e.getPropertyName match {
case "font" => publish(FontChanged(Component.this))
- case "background" => publish(ForegroundChanged(Component.this))
- case "foreground" => publish(BackgroundChanged(Component.this))
+ case "background" => publish(BackgroundChanged(Component.this))
+ case "foreground" => publish(ForegroundChanged(Component.this))
case _ =>
/*case "focusable" =>
case "focusTraversalKeysEnabled" =>