B4J Library ControlsFX Library

Status
Not open for further replies.

alienhunter

Active Member
Licensed User
Longtime User
Hi
i upgraded to B4J 4.01 from B4J 3.71 and now i am getting those errors with my project when using controlsfx
Program started.
1.8.0_40
Windows 8.1

Feb 03, 2016 7:48:35 AM com.sun.javafx.css.StyleConverterImpl getInstance
SEVERE: StyleConverterImpl : converter Class is null for : com.sun.javafx.scene.layout.region.CornerRadiiConverter
Feb 03, 2016 7:48:35 AM com.sun.javafx.css.StyleConverterImpl readBinary
SEVERE: could not deserialize com.sun.javafx.scene.layout.region.CornerRadiiConverter
could not deserialize com.sun.javafx.scene.layout.region.CornerRadiiConverter




 

alienhunter

Active Member
Licensed User
Longtime User
hi to all ,
is there an event that can be captured when you move items from the source list to target list and vice versa ?
 

stevel05

Expert
Licensed User
Longtime User
@alienhunter
If you need it you can add an invalidation listener to the target values:

B4X:
Sub Process_Globals
    Private fx As JFX
    Private MainForm As Form
    Private ListSelectionView1 As ListSelectionView
End Sub

Sub AppStart (Form1 As Form, Args() As String)
    MainForm = Form1
    MainForm.SetFormStyle("UNIFIED")
    MainForm.RootPane.LoadLayout("1") 'Load the layout file.
    MainForm.Show
 
    ListSelectionView1.SourceItems.Clear
    ListSelectionView1.TargetItems.Clear
 
    Dim LSVJO As JavaObject = ListSelectionView1
    Dim TargetItems As JavaObject = LSVJO.RunMethod("getTargetItems",Null)
    Dim Listener As Object = TargetItems.CreateEvent("javafx.beans.InvalidationListener","TargetChanged","")
    TargetItems.RunMethod("addListener",Array(Listener))
 
    ListSelectionView1.SourceItems.AddAll(Array As String(1,2,3,4,5,6,7))
End Sub

Sub TargetChanged_Event(MethodName As String, Args() As Object) As Object
    Dim L As List = Args(0)
    For i = 0 To L.Size - 1
        Log(L.get(i))
    Next
End Sub

Be aware that the list will contain all of the target values, the invalidation listener doesn't provide an old and new value.

Layout 1 just contains a ListSelectionView.

Don't forget to remove the listener if you no longer need it.
 

hookshy

Well-Known Member
Licensed User
Longtime User
There is a library named the same jFXControls done by Agraham that is supported only on java jdk 7 ....
I have used an panel object with old jFXControls ...
Dim window As JFXtrasWindow
 

micro

Well-Known Member
Licensed User
Longtime User
Hi to all
it's possible change text size in message for control fx notification?
Thanks
 

jayel

Active Member
Licensed User
Longtime User
Hey dowload link doesn't work anymore.
And the other download just provide the jar file no more xml?
Where can I find the XML?
 

ThRuST

Well-Known Member
Licensed User
Longtime User
Anyone else who cannot get FXnotify to work with Java v9.0.1?


 
Last edited:

ThRuST

Well-Known Member
Licensed User
Longtime User
I did but somehow still not all the controls was showing correctly (half was gone) in the example. If someone else experience the same we'll know about it.
 

ThRuST

Well-Known Member
Licensed User
Longtime User
This control is a bit old but still nice and useful. I am using the black Notification with an image, (Java 8) and would like to change the font and size.

Is this update possible?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…