B4J Library jFXtrasControls library

If you are using the jMsgboxes library, and you should be, you will already have release 5 of FXtra Labs, jfxtras-labs-2.2-r5.jar. This library exposes some controls also located in jfxtras.

There's a Breadcrumb Bar and Items. A NumberUpDown, Date and Time Pickers and a List Spinner. Version 1.1 enhanced the ListSpinner and added DateTextField, TimeTextField and XYControl

If you don't already have it release 5 of jfxtras can be downloaded from
http://central.maven.org/maven2/org/jfxtras/jfxtras-labs/2.2-r5/jfxtras-labs-2.2-r5.jar

There is a demonstration for JFXtras called Ensemble that is modelled after a similar demonstration for Java FX. It used to be linked from the JFXtras home page but the link has gone. I found it at
http://jfxtras.org/resources/java/Ensemble.jar
and it is worth downloading and trying it. It includes sample Java code which is useful as the Javadoc for jfxtras-labs-2.2-r5.jar is devoid of comments.

The similar Ensemble for JavaFX itself can be found on Oracles website for Java in javafx_samples-2_2_45-windows.zip at bottom of this page
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html.
This is also well worth looking at.

EDIT :- Version 1.2 now posted with SceneBuilder integration. See post #8 for details.

EDIT :- Version 1.3 now posted with MDI Window control. See post #14 for details.

EDIT :- Version 1.4 now posted with additional events. See post #18 for details.
 

Attachments

  • jFXtrasControlsDemo1.4.zip
    45.8 KB · Views: 2,013
Last edited:

mrossen

Active Member
Licensed User
Longtime User
Great, Thanks

This works :)

B4X:
Sub mnuRemote_Action

    Window.Initialize("Window", True)
    Window.AddCloseIcon(False)
    Window.Title = "RF Remote Test"
    Window.ContentPane.LoadLayout("remote")
    MainForm.RootPane.AddNode(Window, 239, 122, 504, 500)
   
End Sub

Mogens
 

maxware

Well-Known Member
Licensed User
Longtime User
google traslator
...
Hello Agraham
great job
I have a problem with that do not solve JFXtrasDateTextField
version 1.40 and 1.05 of b4j
Example open your sample project forum
if you write in Sub AppStart ...
....
'DateTextField
DateField.Initialize ("DateField")
MainForm.RootPane.AddNode (DateField, 250, 300, 75, 0)
DateField.DateTime = 1388906880000

The value on the screen changes okkk .. 05/01/2014
but if you delete the row DateField.DateTime = 1388906880000
and put it in a button .. example
sub btnAddCrumbs_Action
DateField.DateTime = 1388906880000
.....
How does it work
grazieeee
Mamo
 

jmon

Well-Known Member
Licensed User
Longtime User
Hi,

Could it be possible to add the possibility to retrieve the date range selected in the Date Picker? At the moment setting the date picker mode to "Multiple" or "Range" only returns a single date.

Thanks for this library, great work!
 

jmon

Well-Known Member
Licensed User
Longtime User
Hi,

I think I found a bug in the DateField:
  1. When I select twice the same date in the DateField, I get a java.lang.NullPointerException Error.
Thank you for your work. This library is very useful to me, I use it with my Agenda control. Could you fix this bug if you have some time?

Sorry, I should have made that property read-only. You can't change either DateTextField or TimeTextField programmatically.
The weird thing with that, is that the first time you set the dateTime, it actually works, but the subsequent times, it doesn't....

Thanks.
Jmon.
 
Last edited:

micro

Well-Known Member
Licensed User
Longtime User
Hello Agraham and Thanks for all
You can add the event TextChanged and/or FocusChanged for JFXtrasDateTextField?
I ask you to avoid this you can manually edit the textfield for obvious reasons.
Is better to disable the manual editing.
 

positrom2

Active Member
Licensed User
Longtime User
How to use the XYControl events
XChanged and YChanged events added to XYControl
?
Those members are not generated by the Designer. I had added to the fxml file the line
B4X:
<?import jfxtras.labs.scene.control.gauge.*?>
Is that also right when using Controls rather than gauges?

In addition, having added to your sample code this line
B4X:
Private xy1 As JFXtrasXYControl
a lot of warning lines are produced
Program started.
NumberUpDown format = #,##0.###
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-shadow-highlight-color' while resolving lookups for '-fx-background-color' from rule '*.ListSpinner' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Anywhere%20Software/B4J/Libraries/jfxtras-labs-2.2-r5.jar!/jfxtras/labs/internal/scene/control/ListSpinner.css
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-text-background-color' while resolving lookups for '-fx-text-fill' from rule '*.label' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-mark-color' while resolving lookups for '-fx-background-color' from rule '*.ListSpinner *.idle' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Anywhere%20Software/B4J/Libraries/jfxtras-labs-2.2-r5.jar!/jfxtras/labs/internal/scene/control/ListSpinner.css
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-mark-color' while resolving lookups for '-fx-background-color' from rule '*.ListSpinner *.idle' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Anywhere%20Software/B4J/Libraries/jfxtras-labs-2.2-r5.jar!/jfxtras/labs/internal/scene/control/ListSpinner.css
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-text-background-color' while resolving lookups for '-fx-text-fill' from rule '*.label' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-text-background-color' while resolving lookups for '-fx-text-fill' from rule '*.label' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-accent' while resolving lookups for '-fx-text-fill' from rule '*.CalendarPickerControlSkin *.weekend' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Anywhere%20Software/B4J/Libraries/jfxtras-labs-2.2-r5.jar!/jfxtras/labs/internal/scene/control/CalendarPicker.css
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-text-background-color' while resolving lookups for '-fx-text-fill' from rule '*.label' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-text-base-color' while resolving lookups for '-fx-text-fill' from rule '*.toggle-button' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-shadow-highlight-color' while resolving lookups for '-fx-background-color' from rule '*.toggle-button' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-accent' while resolving lookups for '-fx-text-fill' from rule '*.CalendarPickerControlSkin *.weekend' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Anywhere%20Software/B4J/Libraries/jfxtras-labs-2.2-r5.jar!/jfxtras/labs/internal/scene/control/CalendarPicker.css
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-shadow-highlight-color' while resolving lookups for '-fx-background-color' from rule '*.toggle-button' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-accent' while resolving lookups for '-fx-text-fill' from rule '*.CalendarPickerControlSkin *.weekend' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Anywhere%20Software/B4J/Libraries/jfxtras-labs-2.2-r5.jar!/jfxtras/labs/internal/scene/control/CalendarPicker.css
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-shadow-highlight-color' while resolving lookups for '-fx-background-color' from rule '*.toggle-button:selected' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-text-base-color' while resolving lookups for '-fx-text-fill' from rule '*.toggle-button' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-shadow-highlight-color' while resolving lookups for '-fx-background-color' from rule '*.toggle-button' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-shadow-highlight-color' while resolving lookups for '-fx-background-color' from rule '*.slider *.track' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-color' while resolving lookups for '-fx-background-color' from rule '*.slider *.thumb' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-shadow-highlight-color' while resolving lookups for '-fx-background-color' from rule '*.text-field' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-text-inner-color' while resolving lookups for '-fx-text-fill' from rule '*.text-field' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-control-inner-background' while resolving lookups for '-fx-prompt-text-fill' from rule '*.text-field' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-accent' while resolving lookups for '-fx-highlight-fill' from rule '*.text-input' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-shadow-highlight-color' while resolving lookups for '-fx-background-color' from rule '*.slider *.track' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-color' while resolving lookups for '-fx-background-color' from rule '*.slider *.thumb' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-shadow-highlight-color' while resolving lookups for '-fx-background-color' from rule '*.text-field' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-text-inner-color' while resolving lookups for '-fx-text-fill' from rule '*.text-field' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-control-inner-background' while resolving lookups for '-fx-prompt-text-fill' from rule '*.text-field' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-accent' while resolving lookups for '-fx-highlight-fill' from rule '*.text-input' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-shadow-highlight-color' while resolving lookups for '-fx-background-color' from rule '*.big-decimal-field' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Anywhere%20Software/B4J/Libraries/jfxtras-labs-2.2-r5.jar!/jfxtras/labs/internal/scene/control/BigDecimalField.css
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-shadow-highlight-color' while resolving lookups for '-fx-background-color' from rule '*.text-field' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-text-inner-color' while resolving lookups for '-fx-text-fill' from rule '*.text-field' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-control-inner-background' while resolving lookups for '-fx-prompt-text-fill' from rule '*.text-field' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-accent' while resolving lookups for '-fx-highlight-fill' from rule '*.text-input' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-text-box-border' while resolving lookups for '-fx-background-color' from rule '*.big-decimal-field *.arrow-button' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Anywhere%20Software/B4J/Libraries/jfxtras-labs-2.2-r5.jar!/jfxtras/labs/internal/scene/control/BigDecimalField.css
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-shadow-highlight-color' while resolving lookups for '-fx-background-color' from rule '*.ListSpinner' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Anywhere%20Software/B4J/Libraries/jfxtras-labs-2.2-r5.jar!/jfxtras/labs/internal/scene/control/ListSpinner.css
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-mark-color' while resolving lookups for '-fx-background-color' from rule '*.ListSpinner *.idle' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Anywhere%20Software/B4J/Libraries/jfxtras-labs-2.2-r5.jar!/jfxtras/labs/internal/scene/control/ListSpinner.css
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-shadow-highlight-color' while resolving lookups for '-fx-background-color' from rule '*.text-field' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-text-inner-color' while resolving lookups for '-fx-text-fill' from rule '*.text-field' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-control-inner-background' while resolving lookups for '-fx-prompt-text-fill' from rule '*.text-field' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-accent' while resolving lookups for '-fx-highlight-fill' from rule '*.text-input' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_40/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-mark-color' while resolving lookups for '-fx-background-color' from rule '*.ListSpinner *.idle' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Anywhere%20Software/B4J/Libraries/jfxtras-labs-2.2-r5.jar!/jfxtras/labs/internal/scene/control/ListSpinner.css
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-shadow-highlight-color' while resolving lookups for '-fx-background-color' from rule '*.xy-control *.xy-button' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Anywhere%20Software/B4J/Libraries/jfxtras-labs-2.2-r5.jar!/jfxtras/labs/scene/control/gauge/extras.css
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-color' while resolving lookups for '-fx-fill' from rule '*.xy-control *.arrow' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Anywhere%20Software/B4J/Libraries/jfxtras-labs-2.2-r5.jar!/jfxtras/labs/scene/control/gauge/extras.css
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-box-border' while resolving lookups for '-fx-background-color' from rule '*.xy-control *.xy-slider-horizontal' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Anywhere%20Software/B4J/Libraries/jfxtras-labs-2.2-r5.jar!/jfxtras/labs/scene/control/gauge/extras.css
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-color' while resolving lookups for '-fx-fill' from rule '*.xy-control *.arrow' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Anywhere%20Software/B4J/Libraries/jfxtras-labs-2.2-r5.jar!/jfxtras/labs/scene/control/gauge/extras.css
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-box-border' while resolving lookups for '-fx-background-color' from rule '*.xy-control *.xy-slider-vertical' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Anywhere%20Software/B4J/Libraries/jfxtras-labs-2.2-r5.jar!/jfxtras/labs/scene/control/gauge/extras.css
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-color' while resolving lookups for '-fx-fill' from rule '*.xy-control *.arrow' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Anywhere%20Software/B4J/Libraries/jfxtras-labs-2.2-r5.jar!/jfxtras/labs/scene/control/gauge/extras.css
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-color' while resolving lookups for '-fx-stroke' from rule '*.xy-control *.zero' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Anywhere%20Software/B4J/Libraries/jfxtras-labs-2.2-r5.jar!/jfxtras/labs/scene/control/gauge/extras.css
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-color' while resolving lookups for '-fx-background-color' from rule '*.xy-control *.xy-thumb' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Anywhere%20Software/B4J/Libraries/jfxtras-labs-2.2-r5.jar!/jfxtras/labs/scene/control/gauge/extras.css
Thanks for an answer.
 
Last edited:

maleche

Active Member
Licensed User
Longtime User
Using your Library "JFXtrasWindow"

Dim Window As JFXtrasWindow

In your example...

Dim btn1, btn2 AsButton
btn1.Initialize("btn1")
btn1.Text = "Button1"
Window.ContentPane.AddNode(btn1, 10, 10, 100, 18)

Dim txt As TextField
txt.Initialize("txt")
txt.Text = "Help with Font Size"
Window.ContentPane.AddNode(txt, 10, 10, 100, 18)

How can I change the Font Size for btn1 or txt?

Thank you!
 

maleche

Active Member
Licensed User
Longtime User
Figured it out. I need to study the fx commands more

txt.Style="-fx-font-size: 12px"
Now I need to know how to Wrap Text.

txt.style="-fx-wrap-text: true" **** DID NOT WORK

any suggestions?

Thanks!
 

Swissmade

Well-Known Member
Licensed User
Longtime User
Very Nice Agraham,
On Java 8 this demo give errors:(:( any help for this.

Thanks for help
 

riaanp

Member
How do you use this library with B4J? I have copied it in a directory and configured the additional libraries. even copied it in the main B4J lib directory. stil does not work (and by copy i mean this file: jfxtras-labs-2.2-r5.jar) apologies brand new to B4J still learning the basics.
 

Swissmade

Well-Known Member
Licensed User
Longtime User
If you use Java 8 this library will not work also the demo will not.
Java 7.xx will
For Java 8 there is a new jfxtras...8 .jar
This is not yet available in B4j
 

Swissmade

Well-Known Member
Licensed User
Longtime User
Hi Agraham,

Is it possible to fix this Library for Java 8.
I think Java 7 will go away in a short time.
 

Phayao

Active Member
Licensed User
Longtime User
Hello,

I downloaded the jFXtrasControlsDemo1.4.zip from post 1, looks very exciting to me - but trying to start the demo gives the error:

java.lang.NoClassDefFoundError: com/sun/javafx/scene/control/skin/SkinBase

I was looking for this com.sun.javafx.scene ... on the internet did not give me any reasonable result, just bla bla that this is not available yet on JDK 8 .. but Erel obviously was able to start it :-(
Anyone have an idea what is missing here ?

Thanks a lot,

Chris

PS: OK, got it in the post 34 - with java 7 it worked, so I also hope to see the new version for JDK 8, Thank you
 
Last edited:

StarinschiAndrei

Active Member
Licensed User
Longtime User
Hello Agraham,
Could you please tell me how can i detect if the window is already open ? and if is opened to show it.
B4X:
Public Sub Initialize
wChestionar.Initialize("wChestionar",True)
wChestionar.AddMinimizeIcon(False,"wChestionar")
wChestionar.AddCloseIcon(False)
wChestionar.Title="Chestionar"
wChestionar.ContentPane.LoadLayout("frmChestionar")
Main.MainForm.RootPane.get
Main.MainForm.RootPane.AddNode(wChestionar,Main.pMain.Left,Main.pMain.Top,Main.pMain.Width,Main.pMain.Height)
End Sub
Thank you
 
Top