Hi there...
I am having a little problem with the limits of pane...
I was working very good with pane - a project with ruler - so this must be extremely big... but have no problem... but when i moved the project to other computer strange things happened..
error:
Here is a small project to understand it...
Tried with labels no problem...
The problem seems to be at canvas & pane combination... but the strange is that at my pc works....
i am using jdk 131 - tried to install at other pcs but the same... hope this fix that but nope...
How to bypass this problem ?
I am having a little problem with the limits of pane...
I was working very good with pane - a project with ruler - so this must be extremely big... but have no problem... but when i moved the project to other computer strange things happened..
error:
java.lang.NullPointerException
at com.sun.javafx.sg.prism.NGCanvas$RenderBuf.validate(NGCanvas.java:213)
at com.sun.javafx.sg.prism.NGCanvas.initCanvas(NGCanvas.java:640)
at com.sun.javafx.sg.prism.NGCanvas.renderContent(NGCanvas.java:603)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2053)
at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1945)
at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:235)
at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:576)
at com.sun.javafx.sg.prism.NGNode.renderForClip(NGNode.java:2294)
at com.sun.javafx.sg.prism.NGNode.renderRectClip(NGNode.java:2188)
at com.sun.javafx.sg.prism.NGNode.renderClip(NGNode.java:2214)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2047)
at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1945)
at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:235)
at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:576)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2053)
at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1945)
at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:477)
at com.sun.javafx.tk.quantum.ViewPainter.paintImpl(ViewPainter.java:330)
at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:91)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at com.sun.javafx.tk.RenderJob.run(RenderJob.java:58)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:125)
at java.lang.Thread.run(Thread.java:748)
Here is a small project to understand it...
B4X:
Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Private Pane1 As Pane
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout(1) 'Load the layout file. - just loading a pane
MainForm.Show
Dim a As Canvas
a.Initialize("aa")
Pane1.AddNode(a,0,0,10000,10000) 'if i have it at 8000 works ok... but my project needs about 259200 pixels.. worked fine with my pc - but in other pcs have problems... 10000 gives problem too..
a.DrawCircle(50,50,20,fx.Colors.Red,True,1)
End Sub
'Return true to allow the default exceptions handler to handle the uncaught exception.
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
Return True
End Sub
Sub Pane1_MouseClicked (EventData As MouseEvent)
End Sub
Tried with labels no problem...
The problem seems to be at canvas & pane combination... but the strange is that at my pc works....
i am using jdk 131 - tried to install at other pcs but the same... hope this fix that but nope...
How to bypass this problem ?