I need to put a button in the bottom right of an otherwise empty JPanel
+-----------------------------------+
| |
| |
| |
| |
| |
| |
| |
| |
| +-----------+|
| | Click Me! ||
| +-----------+|
+-----------------------------------+
How do I do that? It should be easy right? I would like to find the correct layout manager rather than using a sequence of nested panels.
JPanel panel = new JPanel();
panel.setLayout(new SomeKindOfLayoutManagerThatDoesThis());
panel.add(new JButton("Click Me!"), SETTINGS);