Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


As of 7.8.1. See system.gui.transform() instead.


Sets a component's size at runtime. The coordinates work in the same way as the system.gui.moveComponent function.


system.gui.resizeComponent(component, width, height)

  • Parameters

JComponent component - The component to resize

int width - The new width for the component

int height - The new height for the component

  • Returns


  • Scope


Code Examples
Code Snippet
#This code would go in a Timer's propertyChange script for animation \
if event.propertyName == "value":
   newWidth = event.newValue;
   rect = event.source.parent.getComponent("Rectangle")
   system.gui.resizeComponent(rect, newWidth, 80)
  • No labels