B4J Library ControlsFX Library

Discussion in 'B4J Libraries & Classes' started by Erel, Feb 15, 2015.

  1. alienhunter

    alienhunter Active Member Licensed 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




    cutils.jpg
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can ignore those messages.
     
    alienhunter likes this.
  3. alienhunter

    alienhunter Active Member Licensed 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 ?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    The ListSelectionView doesn't raise any events.
     
  5. stevel05

    stevel05 Expert Licensed User

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

    Code:
    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.
     
    alienhunter, Erel and jmon like this.
  6. hookshy

    hookshy Well-Known Member Licensed 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
     
  7. micro

    micro Well-Known Member Licensed User

    Hi to all
    it's possible change text size in message for control fx notification?
    Thanks
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    Please start a new thread for this question.
     
  9. jayel

    jayel Active Member Licensed 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?
     
  10. Erel

    Erel Administrator Staff Member Licensed User

    jControlsFX is included in B4J installation. Just install the latest version of B4J.
     
  11. jmon

    jmon Well-Known Member Licensed User

  12. Erel

    Erel Administrator Staff Member Licensed User

    I will update it. Note that you can update it right now. Rename the jar file to controlsfx-8 and copy it to the internal libraries folder.

    I did a quick test and I didn't see any compatibility issues.
     
    jmon likes this.
  13. ThRuST

    ThRuST Well-Known Member Licensed User

    Anyone else who cannot get FXnotify to work with Java v9.0.1?

    ControlsFX.JPG
     
    Last edited: Feb 16, 2018
  14. Erel

    Erel Administrator Staff Member Licensed User

    Make sure to use jControlsFX9
     
  15. ThRuST

    ThRuST Well-Known Member Licensed 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.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice