Jim, did you read my post? I looked at the Button control. I just can't figure out how to give it an image and remove the margins. Thanks for the code example, but my example code is no worse and gives me the result I want. I just assumed there was an easier (less code) way of doing this.
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
mohammed sanaullah wrote:
Jim, did you read my post? I looked at the Button control. I just can't figure out how to give it an image and remove the margins. Thanks for the code example, but my example code is no worse and gives me the result I want. I just assumed there was an easier (less code) way of doing this.
Can make use of "graphic" property of Button Control.
Gregg Bolinger wrote:I added an image to it however you can still see the Button underneath because of insets/margins and I can't seem to find out how to remove them
Gregg Bolinger wrote:
mohammed sanaullah wrote:
Jim, did you read my post? I looked at the Button control. I just can't figure out how to give it an image and remove the margins. Thanks for the code example, but my example code is no worse and gives me the result I want. I just assumed there was an easier (less code) way of doing this.
Can make use of "graphic" property of Button Control.
Gregg Bolinger wrote:I added an image to it however you can still see the Button underneath because of insets/margins and I can't seem to find out how to remove them
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
variable and a Skin implementsskin
. Each skinjavafx.scene.control.Skin
variable,behavior
.javafx.scene.control.Behavior
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook