Reputation: 63
I was trying to position a JProgressBar
to the bottom of the window's screen. I have tried using setVerticalAlignment
and setHorizontalAlignment
. When doing so a syntax error appears.
To make it clear my goal is to put a progress bar at the bottom of the window.
Upvotes: 2
Views: 129
Reputation: 168845
An easy way is to set the parent container to have a BorderLayout
, then panel.add(progressBar, BorderLayout.PAGE_END);
will make the progress bar appear at the bottom.
Upvotes: 3