This discussion is archived
2 Replies Latest reply: Jul 14, 2011 1:04 PM by 647985 RSS

Can JSrollPane have multiple grand children?

647985 Newbie
Currently Being Moderated
Hi,

I have a java application. The top most level is a JFrame. Then a JScrollPane with JPanel (A) as a client. Inside the JPanel (A), I put multiple JPanel's because I need multiple sets (groups) of areas (like a form has multiple sections). However, when user resizes the window (JFrame), some of the sections have been cut off and the scrolling bar does not work as expected, i.e. even user moves the scrolling bar, the bottom area (section) is still cut off.

Any suggestion is welcome.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points