2

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

c0der
  • 18,467
  • 6
  • 33
  • 65

1 Answers1

3

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.

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433