Questions tagged [miglayout]

MiG Layout is a free and open-source layout manager for Java Swing, SWT, JavaFX2, Fantom, Qt and other GUI toolkits.

MiG Layout is a free and open-source layout manager for many GUI toolkits. Its aim is to allow you to create advanced GUI layouts that are maintainable and flexible.

http://www.miglayout.com/

386 questions
0
votes
3 answers

Centering Panel in Java

For some reason i am having problems centering my panel vertically that is located inside another panel. I do exactly as the examples i studied but still no luck. Down there is my code. Despite using setAlignmentY(0.5f) on my container panel, it…
harbinger
  • 49
  • 1
  • 2
  • 10
0
votes
1 answer

Need help understanding some row constraints behaviour

In a Java project I am working on, my constraints were originally set to: JPanel panel = new JPanel(); String layoutConstraints = "fill"; String columnConstraints = "[right]rel[grow]"; String rowConstraints = "[]10[]"; panel.setLayout(new…
asmodai
  • 297
  • 1
  • 3
  • 11
0
votes
1 answer

how do I add horizontal/vertical spacer behaviour to miglayout

I am using migLayout and set it on flowY. My object then added with a lot of gaps. Regularly, on swing editor I add vertical or horizontal spacer. what is the best practice to add it using miglayout ? Plus - sometimes I put the spacer between…
Bick
  • 15,895
  • 44
  • 133
  • 231
0
votes
1 answer

Why doesn't MigLayout stretch the size of this table cell to fit the grid?

Below is a screenshot of a GUI I created with Java Swing and MigLayout as the main layout manager. "Game Board" has kept its smallest possible size, but this is not desired behavior. I'd want this JPanel to stretch all the way to the right and…
Pieter
  • 28,337
  • 74
  • 160
  • 235
0
votes
2 answers

Fill Entire Cell With Two Components Using MigLayout

I have two components which I would like to both fill the same cell in a MigLayout: For example, I want to give both components constraints something like this: cell 0 0 1 1, push, grow and have them both be placed exactly over top of one another…
ulmangt
  • 5,143
  • 3
  • 20
  • 35
-1
votes
1 answer

MigLayout ClassNotFoundException when creating maven jar

I'm trying to create a jar file of my simple java gui application. I'm using Intellij IDEA and maven. I have imported Mig Layout as a maven dependency, when I run the program inside Intellij IDEA everything works fine, but when I create a jar by…
PtContact
  • 23
  • 5
-1
votes
1 answer

how to get miglayout-swing in gradle

I am trying to get the miglayout jar file: miglayout-3.7.2-swing.jar. I want only this jar. I don't want all the jars of miglayout-3.7.2. If I give com.miglayout:miglayout:3.7.2@jar it downloads everything. Any one help me how to download…
Rajmahendra
  • 2,710
  • 2
  • 27
  • 39
-1
votes
2 answers

Full height element - MiGLayout

I have the below image. It consists of a JPanel containing one label for the picture, another one for the '@usuario1' text, another one for 'contenido', and another one for '#demo'. Below the image is the code which constructs…
-2
votes
1 answer

How I can do swing complex layout Java

I need a help about a java swing layout. I want do any thing like that (please see the image): http://i1374.photobucket.com/albums/ag420/Bruno_Freitas/PROGRAMADEPONTUACcedilAtildeO_zpsebaf314e.jpg I tried put a grid bag layout, but I could not…
-2
votes
1 answer

How to add a JSeparator beside a JLabel in a Jpanel?

How do I add all of these component in a JPanel by using MigLayout and achieve the rest of the conditions as described in the above picture?
-2
votes
1 answer

How to… using MigLayout

I'm trying to use MigLayout for my project but i'm struggling to understand the logic. I'd like to place 2 labels on top and at the bottom of a certain panel with a margin of 20px between the labels and the ends of the panel. Moreover, he labels…
Jack Kass
  • 55
  • 9
1 2 3
25
26