Skip to content

Instantly share code, notes, and snippets.

@schipplock
Created December 27, 2022 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schipplock/713eed060c60e3c82deeb78c7a4323fd to your computer and use it in GitHub Desktop.
Save schipplock/713eed060c60e3c82deeb78c7a4323fd to your computer and use it in GitHub Desktop.
ich schäme mich
if (autosize) {
int height = getHeight() + getRootPane().getHeight() + itemPanel.getHeight() + actionPanel.getHeight();
int width = itemPanel.getWidth() + 40;
setPreferredSize(new Dimension(width, height));
pack();
autosize = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment