This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
I have a class which extends JPanel. 2D images are drawn on it dynamically, as are components added to it. The problem is that when an instance of this object is added to the window: getContentPane().add(new JScrollPane(myPanel)); I don't get the scroll bars when components are added to it dynamically below the viewport. Help!!!