|
-
March 14th, 2010, 08:57 AM
#1
[Swing-Progress Bar] Can't resize progress bar
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);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|