Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for getParameter and window resize #8

Merged
merged 3 commits into from Aug 22, 2019

Conversation

@rpeyron
Copy link
Contributor

commented Aug 21, 2019

A small contribution:

  • Added support for Applet.getParameter (retrieve value of the attribute "param-xxx" of the Applet tag)
  • Improved resize callback to not resize canvas if the HTML element has not changed size, or if it has, call the repaint function.

Note: obviously not included in the PR, but I needed to remove src/main/java/javax/swing folder to be able to build because of errors on the swing part.

Support for getParameter and window resize
Added support for Applet.getParameter  (retrieve value of the attribute "param-xxx" of the Applet tag)
Improved resize callback to not resize canvas if the HTML element has not changed size, or if it has, call the repaint function.
src/main/java/java/applet/Applet.java Outdated Show resolved Hide resolved

@schaumb schaumb merged commit cf0f030 into j4ts:master Aug 22, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.