0

How to make the JScroll to auto resize? for example i expand the windows, so the scroll expand together, for Height and Width?

look image,

enter image description here

for everything i use the AbsoluteLayout, since its more easy to Drag and Drop elements in the screen (Using Eclipse)

i dont know how to make this auto resize possible, but looking the Name of the DefaultLayoult "ABSOLUTE" will it be impossible in this way??

mKorbel
  • 109,525
  • 20
  • 134
  • 319
user2582318
  • 1,607
  • 5
  • 29
  • 47
  • 3
    `for everything i use the AbsoluteLayout,` - don't use AbsouteLayout! `, since its more easy to Drag and Drop elements in the screen` - it may be easier for painting, but it is not easier for functionality as you have noticed. If you would use the proper layout managers then this functionality will work for you by default. That is why we always recommend using a layout manager. The scrollpane will only work properly when you use a proper layout manager. – camickr Oct 10 '13 at 18:26

1 Answers1

0

Try to use the GradBagLayout and set the GridBagConstraints attribute "fill" to BOTH

M.K.
  • 256
  • 1
  • 6