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
0 answers

Align JPanel to right while still making the JPanel expandable using MigLayout

How to align JPanel to the right while at the same time making the JPanel expandable (shrink and expand) using MigLayout? I am trying to display a inner JPanel within another outer JPanel and want to make the inner JPanel expandable. The inner…
Markysch
  • 37
  • 5
0
votes
1 answer

Spaces between the elements MigLayout

Maybe some of you will be able to help me, because I'm sitting on this for a few hours and I do not know what to do. I checked the documentation several times, but with out any effect I need to create java gui where the components A1, A2, A3 will be…
Daniel Zawadzki
  • 179
  • 1
  • 7
0
votes
1 answer

"Inline" list of checkboxes - auto line break

I have a JPanel (extended by my GeneralOptions class) implemented as: public GeneralOptions() { setLayout(new MigLayout("", "[grow]", "[][][][]")); JLabel lblWyzywienie = new JLabel("Food"); add(lblWyzywienie, "cell 0 0"); …
Jakub Matczak
  • 14,327
  • 5
  • 42
  • 55
0
votes
1 answer

MigLayout gives component too much space

I Have two components C1 and c2, I want C1 to be given just as much horizontal space as it needs and then C2 should grow and take up the remaining horizontal space, however c1 is being given too much space like so: I want it so that there is no…
John Walker
  • 271
  • 1
  • 4
  • 15
0
votes
1 answer

GUI building trouble

I have a GUI setup that looks like this: It displays a document and enables user to edit it by adding/removing JTextAreas and text in them. I have a problem when trying to open the document. Document itself is made up of layers of JPanels on top of…
Karlovsky120
  • 5,718
  • 7
  • 30
  • 79
0
votes
1 answer

MigLayout with full screen mode

My application uses the full screen mode automatically when it launches, and it displays correctly with 1024x768 resolution, but when I have tested the same app in 1366x768 the bottom part disappears. the full screen mode setting looks like this…
Adil
  • 4,243
  • 10
  • 42
  • 61
0
votes
1 answer

Can't add panel to Miglayout

I have the class who extends class JComponent where I create a component with figures. And I want to add object this class in frame using the MigLayout, but component doesn't add and I can see only empty frame. Thank you for your help. class who…
Andrew Valevskiy
  • 399
  • 2
  • 5
  • 15
0
votes
0 answers

MiG Layout to iText PDF

I want to export a document created in my program (made out of JPanels, JTextAreas, JLabels, etc...) into a pdf using iText library. I will manually recreate the whole look of my document in iText and that is where I come to a problem. In order for…
Karlovsky120
  • 5,718
  • 7
  • 30
  • 79
0
votes
1 answer

column growing unexpectedly when window is resized in MigLayout

Well I am quite new to MigLayout and have read about it on whitepaper and Quickstart but that was not enough.I put a panel and below that I want one panel to occupy 30% of window and other the rest of it i.e, 70%. When window is resized(maximised)…
crazy4
  • 135
  • 1
  • 2
  • 10
0
votes
0 answers

Components cutting off on different platforms with MigLayout

I'm wondering what the best practices are when sizing components for multiple platforms when using MigLayout. Specifically I am having a problem when using the "Height 20!" type component constraints. When testing on different L&F's and platforms,…
Steve M
  • 8,136
  • 8
  • 40
  • 84
0
votes
1 answer

wrong alignment with miglayout

In jframe, I use miglayout for main jpanel position. in the left panel, I have 2 jpanel, I use boxlayout. ComponentPanel is the top left position and PropertyPanel is at the bottom left position. leftPanel = new JPanel(); …
redfox26
  • 1,850
  • 3
  • 23
  • 31
0
votes
1 answer

Flip rows and columns in MigLayout?

In documentation for MigLayout is written: Full support for left-to-right and bottom-to-top layouts. Does this mean that i can add components not left to right in row, but in columns too? So i mean: JPanel p = new JPanel(new…
AvrDragon
  • 6,359
  • 3
  • 21
  • 39
0
votes
1 answer

Please give a quick example how to simlate BorderLayout with MigLayout?

I wish WEST and EAST fractions of layout be of constant width. How to setup this with MigLayout? UPDATE The following code does not resize like border layout: package testing.Test_MigLayout_01; import javax.swing.JButton; import…
Suzan Cioc
  • 26,725
  • 49
  • 190
  • 355
0
votes
3 answers

How to get the bounds of a panel set by Miglayout manager before it is displayed?

There are three different kinds of panel each spanning different number of grids. 1*3 , 1*1 , 3*1 . add(panel1, "span 1 3,push, grow"); add(panel2, "push, grow"); add(panel3, "span 3 1,push, grow"); I want to change first panel's constraint to…
SagarDabas
  • 89
  • 1
  • 2
  • 9
0
votes
4 answers

setting background image in Java

OK, first thing I want to say is: yes, I know there are a number of similar questions on setting a background image in java. However, my situation is a bit different since I got handed a Java project that was started by someone else. I believe that…
exit_1
  • 1,100
  • 4
  • 11
  • 30
1 2 3
25
26