Hello,

I can't resize my progress bar. I can change the size only horizontally, not vertical.
JPanel content = new JPanel (new BorderLayout());
content.setLayout(new BorderLayout());
content.add(areaScrollPane, BorderLayout.PAGE_START);
content.setPreferredSize(new Dimension(500, 455));
 
pb = new JProgressBar(0, 100);
pb.setStringPainted(true);
pb.setOrientation(SwingConstants.VERTICAL);
pb.setValue(10);
pb.setMaximumSize(new Dimension(130,140));
 
content.add(pb, BorderLayout.WEST);

Do you guys have any idea what is wrong here?