We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FlatBtn.setBackground
1 parent 900cad7 commit 7a14fe2Copy full SHA for 7a14fe2
durian-swt/src/main/java/com/diffplug/common/swt/widgets/FlatBtn.java
@@ -16,6 +16,7 @@
16
package com.diffplug.common.swt.widgets;
17
18
import org.eclipse.swt.SWT;
19
+import org.eclipse.swt.graphics.Color;
20
import org.eclipse.swt.graphics.Image;
21
import org.eclipse.swt.widgets.Composite;
22
import org.eclipse.swt.widgets.Listener;
@@ -76,4 +77,9 @@ public void setEnabled(boolean enabled) {
76
77
public void setSelection(boolean selected) {
78
item.setSelection(selected);
79
}
80
+
81
+ /** Sets the background color of the button. */
82
+ public void setBackground(Color color) {
83
+ wrapped.setBackground(color);
84
+ }
85
0 commit comments