Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [flowlayout]

Flow layout places components left to right and then top to bottom, allocating just enough place for each component.

flowlayout
0 votes
0 answers
11 views

How to prevent adjacent delegates in a QML Flow from shifting when one expands?

I am working with a QML Flow layout in which I dynamically adjust the height of a delegate (Rectangle with id: zakaz) when a button is pressed. This expansion works as intended, pushing the delegate ...
Benjamin Gavrikovcky's user avatar
1 vote
0 answers
41 views

I'd like make private pywinauto fork for single Qt6 class, where to start?

We have this class: https://doc.qt.io/qtforpython-6/examples/example_widgets_layouts_flowlayout.html ported from Qt6 by developers on the top of Qt5 application which we testing and it not supported ...
Dmitry Afanasyev's user avatar
1 vote
1 answer
47 views

Why is only one component appearing

I have a JFrame and for some reason only one component is appearing public JFrame mainMenuFrame = new JFrame(); public JLabel welcomeText1 = new JLabel(); public JLabel welcomeText2 = new ...
Cardboard Box's user avatar
3 votes
2 answers
987 views

Jetpack Compose: How to make all items in a FlowRow the same height

I have some dynamic Text Composables laid out in a FlowRow, but I can't seem to get them to be the same height. With a normal Row, you can use .height(Intrinsic.Min) on the Row in conjunction with ....
DHoward's user avatar
  • 273
0 votes
0 answers
34 views

How to make a FlowLayout JPanel nested inside a ScrollPanel go down the next row when reaching a fixed width [duplicate]

I have a JPanel with a FlowLayout inside of a viewPort of a JScrollPane. I can add components dinamically to this JPanel but when I reach the end of the JScrollPane what i want is for the components ...
VAndrew009's user avatar
0 votes
2 answers
56 views

Java Swing bars floating instead of starting from the same baseline

I'm very new to Java Swing and I'm currently trying to make a simple bar chart that visualises bubble sort algorithm. I developed the code to scale the bars depending on user inputted values, but I'm ...
phoonicked's user avatar
2 votes
1 answer
423 views

Customizing corner radius & colors for UICollectionView sections in Compositional Layout?

I am working on a project where I am using UICollectionView with a compositional layout. I am trying to add corner radius to the section headers of my UICollectionView. I am using ...
Shivaditya kr's user avatar
1 vote
2 answers
360 views

how to get flow layout's row count in android

I have 3 views that i included in flow helper of constraint layout and are laid out like this: |TextView1| |View(delimiter)| |TextView2| when text of TextView2 doesn't fit, it moves to next line: |...
AT Amrani's user avatar
  • 260
0 votes
1 answer
42 views

Layout Manager assistance

I'm trying to make a collapsible panel look and having some issue with the layout manager, I'm pretty new at using layout managers and trying to userstand them. I have Jpanel with a flowlayout, I'm ...
user1547386's user avatar
3 votes
3 answers
3k views

how to add spacing between row and columns in FlowLayout?

I'm migrating FlowLayout from the accompanist library with the native compose v1.4.0. To give spacing between columns and rows we had FlowCrossAxisAlignment and FlowMainAxisAlignment, however now this ...
Rulogarcillan's user avatar
1 vote
1 answer
615 views

How to use Flow Layout inside a Panel in Java?

Here is the code with problem: import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JButton; public ...
Aman's user avatar
  • 350
0 votes
2 answers
645 views

How can I fix this error for Flow Layout in java?

I don't know why but I get an error everythime I run this code. The error is: Exception in thread "main" java.lang.Error: Unresolved compilation problem: The method setLayout(LayoutManager) ...
Musical Brothers's user avatar
0 votes
1 answer
74 views

How do I get both my image and button to display?

Currently, the problem I am trying to solve is how I get both my image and button to show up. When I have the following line in the code the image shows up but when I remove it my image doesn't ...
owaishakir's user avatar
1 vote
1 answer
93 views

Java Swing FlowLayout in Vaadin

As some of you might know there is a Layout that is called FlowLayout in the Java Swing Framework. To spice things up a little I started using Vaadin instead of Swing. Everything works fine except ...
Léo's user avatar
  • 11
0 votes
1 answer
31 views

Trouble spacing in JFrame

I am new to Java, what I am trying to do is generate a GUI with a bunch of images I have managed to generate a bunch of images, however, they have unnecessary space between them horizontally, is there ...
Krishna Raju's user avatar

15 30 50 per page
1
2 3 4 5
24