# The methods resize Component, reshape Component and move Component of Window Utilities are deprecated

**URL:** <https://forum.inductiveautomation.com/t/the-methods-resize-component-reshape-component-and-move-component-of-window-utilities-are-deprecated/18687>\
**Category:** Module Development\
**Tags:** ignition79\
**Created:** [July 2, 2018, 5:09am UTC](https://forum.inductiveautomation.com/t/the-methods-resize-component-reshape-component-and-move-component-of-window-utilities-are-deprecated/18687 "2018-07-02T05:09:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mukta\_kothiwan](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@mukta\_kothiwan](https://forum.inductiveautomation.com/u/mukta_kothiwan)\
**Post date:** [July 2, 2018, 5:09am UTC](https://forum.inductiveautomation.com/t/the-methods-resize-component-reshape-component-and-move-component-of-window-utilities-are-deprecated/18687/1 "2018-07-02T05:09:31Z")

</div>

I am using ignition SDK version 7.9.5-snapshot and the mentioned methods are deprecated. Can anyone please suggest an alternative to set width and height of PMI components at run time.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 2, 2018, 12:45pm UTC](https://forum.inductiveautomation.com/t/the-methods-resize-component-reshape-component-and-move-component-of-window-utilities-are-deprecated/18687/2 "2018-07-02T12:45:58Z")

</div>

Your constructor should set the default height and width for the component directly. That’s what will apply when the user drags the component out of the palette.

---

<div class="post-metadata">

**Author:** ![mukta\_kothiwan](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@mukta\_kothiwan](https://forum.inductiveautomation.com/u/mukta_kothiwan)\
**Post date:** [July 3, 2018, 5:20am UTC](https://forum.inductiveautomation.com/t/the-methods-resize-component-reshape-component-and-move-component-of-window-utilities-are-deprecated/18687/3 "2018-07-03T05:20:34Z")

</div>

Hi Phil,

I am not clear with the constructor you are talking about.  
here is my code:

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/f0769c306b25b67b02162fa8189942e097aa3bfe.png)

I am looking for an alternative to resizeComponent as it is deprecated.

Please suggest.

Thanks,  
Mukta

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 3, 2018, 12:27pm UTC](https://forum.inductiveautomation.com/t/the-methods-resize-component-reshape-component-and-move-component-of-window-utilities-are-deprecated/18687/4 "2018-07-03T12:27:22Z")

</div>

Hmm. You said you were using the SDK, so I assumed you were implementing a new component in a module. In Java. For jython purposes, those methods have all been replaced by [system.gui.transform()](https://docs.inductiveautomation.com/display/DOC79/system.gui.transform).
