Netbeans Property Sheet - Row Height

172 views Asked by At

When creating the PropertySheet in the createProperties method of a BeanNode subclass, is there a way to change height of a single row? Or is there a way to tell the property to change its height according to its content? (There should be displayed a 64x64 valueIcon in the property, but parts of the height are cut off)

1

There are 1 answers

1
Navnish Bhardwaj On

A component can be resized by dragging small square resize handles that appear around its perimeter when it is selected.

To resize the First Name: and Surname: text fields and make them occupy two adjacent cells, complete the steps below:

  • Control-click the two JTextField components to select them.

  • With both JTextFields selected, position the cursor over the cells right edge, click and drag until the orange highlighted guideline embraces the adjacent cells in column 2 on the right.

  • Release the cursor to resize the components.

    The First Name: and Surname: text fields are extended to span between the two cells as shown in the following illustration. The occupied cells are highlighted.