Hi,

My applications main frame is a borderLayout panel, the footer in the South, the main application in the center and the header in the North. My header is a panel with a tableLayout. The header grows and shrinks correctly when the window is resized, however, when the width goes below the preferred with a scrollbar appear in the header panel which is not what I want.

How can I stop this scrollbar from appearing?

Thanks,

Craig.

asked 11 May '13, 11:20

Craig's gravatar image

Craig
1.1k126
accept rate: 6%


I figured it out; I had the preferred width of the Frame set at a different size to the panels preferred width, once I set these to be the same the problem went away.

link

answered 11 May '13, 11:25

Craig's gravatar image

Craig
1.1k126
accept rate: 6%

edited 11 May '13, 11:58

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×32
×7
×3
×1

Asked: 11 May '13, 11:20

Seen: 1,001 times

Last updated: 11 May '13, 11:58


© Copyright Gerger 2017