B4J Question jFxtrass control window recreation ?

hookshy

Well-Known Member
Licensed User
Longtime User
I am trying to user a window from jFxtrass lib .
Once the window is closed it must be recreated as it sais in the tutorial but It seems I have problems recreating the window .
I have enclosed code used to fill window and error .


As user can close the window a new one must be recreated !
Thanks

B4X:
Sub build_control_palete
Log("control palete")
Dim Window As JFXtrasWindow

    Window.Initialize("Window", True)
    Window.AddMinimizeIcon(False, "Window")
    Window.AddCloseIcon(False)
  
    'Window.AddIcon1(True, "Icon1")
    'Window.AddIcon2(True, "Icon2")
  
    Dim apane As AnchorPane
    apane.Initialize("")
    Window.ContentPane = apane
  
    Window.Title = "Controls palete"
  
    scrol_bmp.Initialize("scrol_bmp")
    Window.ContentPane.AddNode(scrol_bmp, 0, 0, 245, 300)  

    Dim p As Pane = scrol_bmp.InnerNode
  
  
    Dim img(6) As ImageView
    For i=0 To 5
    img(i).Initialize("bmp")
    p.AddNode(img(i),0,i*50dip,50dip,50dip)
    Dim bmpx As Image
    bmpx.InitializeSample(File.DirAssets,i&".png",50dip,50dip)
    img(i).SetImage(bmpx)
    img(i).Tag=i
  
    Next

    MainForm.RootPane.AddNode(Window, 50, 50, 250, 350)
  
End Sub

B4X:
Device "Intel(R) HD Graphics Family" (\\.\DISPLAY1) initialization failed :
WARNING: bad driver version detected, device disabled. Please update your driver to at least version 8.15.10.2302
Program started.
config size2
config loaded
control palete
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-box-border' while resolving lookups for '-fx-background-color' from rule '*.scroll-pane' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_67/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-box-border' while resolving lookups for '-fx-background-color' from rule '*.scroll-bar:vertical' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_67/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-box-border' while resolving lookups for '-fx-background-color' from rule '*.scroll-bar:vertical *.track-background' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_67/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-box-border' while resolving lookups for '-fx-background-color' from rule '*.scroll-bar *.increment-button' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_67/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-highlight-color' while resolving lookups for '-fx-background-color' from rule '*.scroll-bar:vertical *.increment-arrow' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_67/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-box-border' while resolving lookups for '-fx-background-color' from rule '*.scroll-bar *.decrement-button' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_67/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-highlight-color' while resolving lookups for '-fx-background-color' from rule '*.scroll-bar:vertical *.decrement-arrow' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_67/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-box-border' while resolving lookups for '-fx-background-color' from rule '*.scroll-bar:vertical *.track' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_67/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-box-border' while resolving lookups for '-fx-background-color' from rule '*.scroll-bar:vertical *.thumb' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_67/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-box-border' while resolving lookups for '-fx-background-color' from rule '*.scroll-bar:horizontal' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_67/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-box-border' while resolving lookups for '-fx-background-color' from rule '*.scroll-bar:horizontal *.track-background' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_67/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-box-border' while resolving lookups for '-fx-background-color' from rule '*.scroll-bar *.increment-button' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_67/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-highlight-color' while resolving lookups for '-fx-background-color' from rule '*.scroll-bar:horizontal *.increment-arrow' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_67/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-box-border' while resolving lookups for '-fx-background-color' from rule '*.scroll-bar *.decrement-button' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_67/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-highlight-color' while resolving lookups for '-fx-background-color' from rule '*.scroll-bar:horizontal *.decrement-arrow' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_67/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-box-border' while resolving lookups for '-fx-background-color' from rule '*.scroll-bar:horizontal *.track' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_67/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-box-border' while resolving lookups for '-fx-background-color' from rule '*.scroll-bar:horizontal *.thumb' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_67/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-box-border' while resolving lookups for '-fx-background-color' from rule '*.scroll-pane *.corner' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_67/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 '*.menu-bar' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_67/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 '*.menu-button' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_67/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 '*.menu-button *.label' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_67/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
 

hookshy

Well-Known Member
Licensed User
Longtime User
B4X:
WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-color' while resolving lookups for '-fx-background-color' from rule '*.menu-bar' in stylesheet jar:file:/C:/Program%20Files%20(x86)/Java/jdk1.7.0_67/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
 
Upvote 0
Top