Can someone tell me the function of a box. You can't put anything inside the box. Well I have not been able to anyway, so that might be just me.

asked 25 Feb '14, 01:44

Raymond's gravatar image

accept rate: 0%

Hi Raymond,

You can't put anything inside the box in tableLayout and borderLayout due the structure of these layouts. In these layouts, it's not possible to overlay two or more cells.

The only layout which meets your request is xyLayout since it allows you to overlay multiple cells. The example below shows how to put 2 textFields in the box:

    <cell height="100" width="200" x="10" y="10">
    <cell x="20" y="30" height="20" width="100">
    <cell x="20" y="60" height="20" width="100">

If you don't want to use xyLayout, you can always simulate the box appearance in tableLayout and borderLayout by implementing a panel for each box and its content. Just set the borderType attribute of the panel as "TitledBorder" (and set borderTitle if necessary) to simulate the box appearance.

<panel borderType="TitledBorder">
    <row height="10"/>
    <row height="20">
    <row height="10"/>
    <row height="20">

Hope this helps,


answered 25 Feb '14, 15:48

Ibrahim%20Sandalli's gravatar image

Ibrahim Sand... ♦♦
accept rate: 25%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 25 Feb '14, 01:44

Seen: 1,570 times

Last updated: 25 Feb '14, 15:48

© Copyright Gerger 2017