From 1c067d028460e8457a92a0061f76b0b42a664ed5 Mon Sep 17 00:00:00 2001 From: Karl Tauber Date: Sat, 25 Sep 2021 18:32:11 +0200 Subject: [PATCH] behaviour --> behavior --- .../src/main/java/com/formdev/flatlaf/FlatClientProperties.java | 2 +- .../main/java/com/formdev/flatlaf/ui/FlatStylingSupport.java | 2 +- .../src/main/java/com/formdev/flatlaf/ui/FlatTextFieldUI.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flatlaf-core/src/main/java/com/formdev/flatlaf/FlatClientProperties.java b/flatlaf-core/src/main/java/com/formdev/flatlaf/FlatClientProperties.java index f4b4e03d..e6aa98f0 100644 --- a/flatlaf-core/src/main/java/com/formdev/flatlaf/FlatClientProperties.java +++ b/flatlaf-core/src/main/java/com/formdev/flatlaf/FlatClientProperties.java @@ -165,7 +165,7 @@ public interface FlatClientProperties * The rule "Button.primary" can be applied to buttons only. * The rule ".secondary" can be applied to any component. *

- * To have similar behaviour as in CSS, first the rule without type is applied, + * To have similar behavior as in CSS, first the rule without type is applied, * then the rule with type. * E.g. setting style class to "foo" on a {@code JButton} uses rules * from UI default keys "[style].foo" and "[style]Button.foo". diff --git a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatStylingSupport.java b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatStylingSupport.java index 49ab18e3..58774c0c 100644 --- a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatStylingSupport.java +++ b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatStylingSupport.java @@ -118,7 +118,7 @@ public class FlatStylingSupport * The rule "Button.primary" can be applied to buttons only. * The rule ".secondary" can be applied to any component. *

- * To have similar behaviour as in CSS, this method first gets the rule without type, + * To have similar behavior as in CSS, this method first gets the rule without type, * then the rule with type and concatenates both rules. * E.g. invoking this method with parameters styleClass="foo" and type="Button" does following: *

{@code
diff --git a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTextFieldUI.java b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTextFieldUI.java
index 2e676135..8dc04234 100644
--- a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTextFieldUI.java
+++ b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTextFieldUI.java
@@ -320,7 +320,7 @@ debug*/
 		//   - not opaque and
 		//   - border is not a flat border and
 		//   - opaque was explicitly set (to false)
-		// (same behaviour as in AquaTextFieldUI)
+		// (same behavior as in AquaTextFieldUI)
 		if( !c.isOpaque() && FlatUIUtils.getOutsideFlatBorder( c ) == null && FlatUIUtils.hasOpaqueBeenExplicitlySet( c ) )
 			return;