UsingSmallerProcessingCanvasWithSwing #467
vsquared
started this conversation in
Show and tell
Replies: 1 comment 4 replies
-
@vsquared , this is interesting. What does py5 see as the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The following concept might be useful to some users combining Swing with the default canvas shrunk in size to become just another control. Normally draw() would be non-functional if the entire canvas is removed from the default window to accommodate Swing components and the user would need a JPanel for drawing. The technique below obviates the need for a JPanel and allows familiar Processing drawing commands to be used with draw().
Output:
Beta Was this translation helpful? Give feedback.
All reactions