I'd like to create a JPanel in java with a layout similar to the one below. Any ideas?

Use a vertical BoxLayout and set the alignment of items on each row. (Make each row its own JPanel)
Another option is to use a SpringLayout or a GridBoxLayout and setup spacing for each indentation.
Take a look at miglayout. With this layout manager, you will never have to ask which layout manager to use for a specific situation :-)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With