Feb 18, 2021 Replies: 4 Staying with the graphic theme, this is a wrap of the javafx class BorderImage and associated classes. It is like an Android 9 Patch for Javafx. At a minimum you specify the image, border width, border Insets, and slice width. The methods in BorderImage_Utils provide shortcuts to creating a border image. Or you can take full control and specify everything yourself if necessary. Documentation for the border image is here https://docs.oracle.com/javase/8/javafx/api/javafx/scene/layout/BorderImage.html The example displays the screen in the image. All buttons have the same BorderImage. Button 3 gets resized when you resize the window. All the code is in the example project and a B4xLib is attached. Let me know how you get on with it. Attachments BorderImage-b4xlib.b4xlib BorderImage-b4xlib.b4xlib 6.5 KB · Views: 539 BorderImage.zip BorderImage.zip 93.3 KB · Views: 530 Last edited: Feb 18, 2021 Click to expand...
Staying with the graphic theme, this is a wrap of the javafx class BorderImage and associated classes. It is like an Android 9 Patch for Javafx. At a minimum you specify the image, border width, border Insets, and slice width. The methods in BorderImage_Utils provide shortcuts to creating a border image. Or you can take full control and specify everything yourself if necessary. Documentation for the border image is here https://docs.oracle.com/javase/8/javafx/api/javafx/scene/layout/BorderImage.html The example displays the screen in the image. All buttons have the same BorderImage. Button 3 gets resized when you resize the window. All the code is in the example project and a B4xLib is attached. Let me know how you get on with it.
Peter Simpson Expert Licensed User Longtime User Feb 18, 2021 #2 Excellent wrap @stevel05, It looks really nice. Buuuuuuuuut you did catch me out for a few moments there with JavaCompilerPath . I thought that my B4J IDE had lost the plot for a moment there Thank you...
Excellent wrap @stevel05, It looks really nice. Buuuuuuuuut you did catch me out for a few moments there with JavaCompilerPath . I thought that my B4J IDE had lost the plot for a moment there Thank you...
stevel05 Expert Licensed User Longtime User Feb 18, 2021 #3 Peter Simpson said: JavaCompilerPath Click to expand... Since it has become available I've updated my new project template so it is in all of my projects. Perfect for easy testing on all versions. I should remember to remove it before posting. Last edited: Feb 18, 2021
Peter Simpson said: JavaCompilerPath Click to expand... Since it has become available I've updated my new project template so it is in all of my projects. Perfect for easy testing on all versions. I should remember to remove it before posting.
Erel B4X founder Staff member Licensed User Longtime User Feb 21, 2021 #4 stevel05 said: Since it has become available I've updated my new project template so it is in all of my projects. Perfect for easy testing on all versions. I should remember to remove it before posting. Click to expand... Another option is to make it conditional in your template: Code: Copy #If JAVA8 #JavaCompilerPath: ... #Else IF JAVA11 ... #End IF
stevel05 said: Since it has become available I've updated my new project template so it is in all of my projects. Perfect for easy testing on all versions. I should remember to remove it before posting. Click to expand... Another option is to make it conditional in your template: Code: Copy #If JAVA8 #JavaCompilerPath: ... #Else IF JAVA11 ... #End IF
stevel05 Expert Licensed User Longtime User Feb 21, 2021 #5 Erel said: Another option is to make it conditional in your template: Click to expand... Yeah, I did. But I left the build configuration on the wrong option when I exported the project. Which caused a problem when the path did not exist on the PC. Last edited: Feb 21, 2021
Erel said: Another option is to make it conditional in your template: Click to expand... Yeah, I did. But I left the build configuration on the wrong option when I exported the project. Which caused a problem when the path did not exist on the PC.