Check out the code below and see if you can tell me why my windows don't show the ScrollPane the way it's supposed to:
Border compound = BorderFactory.createEmptyBorder(0,10,10,10);
ev = new EventView(jDateTree, top, thisDateHash); // returns a JPanel
jEvent Panel = new JPanel();
JScrollPane evScrollPane = new JScrollPane(ev);
JEventPanel.setPrefferredSize(new Dimension(getWidth() - 170, getHeight() - 30));
My applet compiles and runs fine. It shows what it is supposed to, but there is only one scrollbar at the bottom of the applet. This should be a simple task, yet I don't know why it's not working. Could someone please help!!!????The element that is supposed to be scrolled is a JPanel, and I know it's legal to have a JPanel inside a scroll pane right?