Hey, I'm trying to learn Swing right now (with limited success) so I can make a personal calendar app (cuz sux0r = {Outlook, Palm}).
One thing that has me stumped is how to have an object seem like it is at the top of a JScrollPane, but not scroll along with the contents inside of it. The reason I want to do this is so I can have the names of the days (Monday, Tuesday, etc.) along the top of the scroll pane as column headers, if that gives you a better idea of what I'm trying to accomplish. At this point I'm thinking I need to use a JLayeredPane, add the scroll pane into the layered pane, then add the header object into the layered pane on a higher level. But I have no idea how to use a JLayeredPane even though I've read the API/tutorial/documentation. I just can't get anything to show up!!!! Can someone help?
One thing that has me stumped is how to have an object seem like it is at the top of a JScrollPane, but not scroll along with the contents inside of it. The reason I want to do this is so I can have the names of the days (Monday, Tuesday, etc.) along the top of the scroll pane as column headers, if that gives you a better idea of what I'm trying to accomplish. At this point I'm thinking I need to use a JLayeredPane, add the scroll pane into the layered pane, then add the header object into the layered pane on a higher level. But I have no idea how to use a JLayeredPane even though I've read the API/tutorial/documentation. I just can't get anything to show up!!!! Can someone help?