TOC PREV NEXT INDEX



Set the Size of the Canvas


The Canvas is the area where you will be working. It is possible to edit the size of the Canvas whenever you like, but in this tutorial, you will only change it once.

  1. Make sure you are looking at the Canvas Composer.
  2. Choose the "Canvas Methods" tab on the Canvas Composer. This is a special tab which only appears in the Canvas Composer.
  3. Use the choice box to the left of the Code Sourcerer button to choose getPreferredSize().

You should see the following code:

return new Dimension(200,200);

This is the code which tells Simplicity how large the Canvas should be. It will be easier to work with a larger Canvas. Edit the code so that it reads

return new Dimension(300,300);

The Canvas window will change to reflect the new, larger, size.


Data Representations, Inc.
http://www.datarepresentations.com
support@datarepresentations.com
sales@datarepresentations.com
TOC PREV NEXT INDEX