B4J Question How to Remove warnings when shape is resized

Discussion in 'B4J Questions' started by jmon, Mar 21, 2015.

  1. jmon

    jmon Well-Known Member Licensed User

    Hello,

    I bumped into a problem that not many may have encountered yet. When I add a shape (any shape, like circle, polygon, rectangle...) to an anchorPane and set the anchors to that anchorPane, I get those warnings:
    I am not trying to resize the control, I just set the right anchor. The issue it that I have 100s of shapes added in anchorpanes and anchored, so I end up having hundreds of lines written in my StdOut (I monitor the stdout and write to file).

    I have attached an example that demonstrates the issue, but here is what it does:
    Code:
    For i = 1 To 10
        
    Dim c As JavaObject
        c.InitializeNewInstance(
    "javafx.scene.shape.Circle"Null)
        c.RunMethod(
    "setRadius"Array(20.0))
        ap.AddNode(c, 
    0Rnd(0, ap.Height), -1, -1)
        ap.SetRightAnchor(c, 
    Rnd(225))
    Next
    and I get that:
    I was wondering if there was a method like the one to disable CSS warnings for shapes?

    Thanks,

    Jmon.
     

    Attached Files:

  2. Daestrum

    Daestrum Well-Known Member Licensed User

    Saw a note on Oracles Anchorpane class.
     
    jmon likes this.
  3. jmon

    jmon Well-Known Member Licensed User

    Thanks for your answer.
    That's what I am doing in this case, I just set the right anchor and it works in the example, just the issue is the message in the stdout.
     
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