CactiProgrammer
CactiProgrammer

Reputation: 63

JProgressBar positioning to bottom of the window

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.

image of frame

Upvotes: 2

Views: 129

Answers (1)

Andrew Thompson
Andrew Thompson

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

Related Questions