Stretching columns

Hi,

Tried some very simple dialogs.

Maybe I just did not found it, but how I tell the GUI designer, what
column might stretch on resizing and what not?

Tom

7 comments

Hi,
I think you must use property hSizePolicy and vSizePolicy for inner
components.

Thanks!

"Thomas Singer" <idea@NOregnisSpam.de> wrote in message
news:br1fiv$2hn$1@is.intellij.net...

Hi,

>

Tried some very simple dialogs.

>

Maybe I just did not found it, but how I tell the GUI designer, what
column might stretch on resizing and what not?

>

Tom



0

Ah, thanks. I search in the columns/rows, not in the components. What if
a column does not have components?

Tom

0

In this case i have no ideas :))

But if you want some put "space" between layout as "empty column", i think
you should use vspacer or hspacer for filing column with
abstract-not-functional component. Or just put empty JPanel... In any case
you must have some component in layout cell to control size, i guess.

Thanks!

"Thomas Singer" <idea@NOregnisSpam.de> wrote in message
news:br1jth$rdv$1@is.intellij.net...

Ah, thanks. I search in the columns/rows, not in the components. What if
a column does not have components?

>

Tom



0

Ah, thanks. I search in the columns/rows, not in the components. What if
a column does not have components?


I guess you have to insert a spacer at least.

Guillaume


0

Sorry, but this looks like a hack defined by the weak design.

We have a layout manager similar to HIGLayout. We first define the
columns' and rows' sizes and stretching behaviour and than add the
components with information about the cell(s) to put in and the
orientation within this (large) cell. Works perfectly fine. No need for
spacer components.

Tom

0

Thomas Singer wrote:

Ah, thanks. I search in the columns/rows, not in the components. What if
a column does not have components?

Tom


If columns (row) doesn't have any component inside then it will be
eliminated on compilation time. At design time empty cells exist only as
possible placeholders for components.

With best regards,
Vladimir Kondratyev
_____________________
JetBrains

0

Thomas Singer wrote:

Ah, thanks. I search in the columns/rows, not in the components. What if
a column does not have components?

Tom


You can add space between component with the following ways:

1. Change container's margins
2. Change container's hGap/vGap
3. Insert fixed-width spacer.

Vladimir Kondratyev
___________________
JetBrains

0

Please sign in to leave a comment.