|
@@ -14,7 +14,10 @@ public class Main
|
|
|
// create a layout panel to hold the views
|
|
|
JPanel mainpanel = new JPanel(new BorderLayout(0, 0));
|
|
|
window.getContentPane().add(mainpanel);
|
|
|
- mainpanel.add(gallery, BorderLayout.CENTER);
|
|
|
+ JScrollPane scrollGallery = new JScrollPane(gallery);
|
|
|
+ scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
|
|
|
+ scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
|
|
|
+ mainpanel.add(scrollGallery, BorderLayout.CENTER);
|
|
|
mainpanel.add(controls, BorderLayout.PAGE_START);
|
|
|
|
|
|
// Setup the frame to do frame things
|