>Don't set the document until after the canvas has been >added to the swing tree and packed.
An excellent advice. That fixed the problem. Thanks.
>Don't set the document until after the canvas has been >added to the swing tree and packed.
An excellent advice. That fixed the problem. Thanks.