Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Layout constraints in GUI designer

$
0
0

Hello,

 

I have a panel using GridLayoutManager. It has two rows. On the second row, I wish to have a JLabel which spans 2 columns. GridLayoutManager allows specifying a constraint called "colSpan" that makes this possible. However, I do not see a way to set this value in the GUI builder. Is it possible?

 

Right now, I name the panel, get the layout, get the component constraints, and set the colSpan value to 2 in the code. This works but to me this is not how a GUI designer should require me to operate. And because of this, the designer also shows it wrong.

 

Teemu


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>