Seems to work if I do something along the lines of

    public Dimension calcPreferredSize()
        return new Dimension(StateMachine.w,StateMachine.h/2);


On Monday, February 25, 2019 at 11:01:26 PM UTC+8, Gareth Murfin wrote:
> Ive made a pie chart that draws on canvas, when I add this it doesnt 
> appear, I have only managed to find one way to get it working in a test 
> form but as soon as I add other things to the form it seems to stop 
> displaying. Is there anything special I need to do to get my custom 
> component actually appearing correctly?

You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
Visit this group at
To view this discussion on the web visit
For more options, visit

Reply via email to