Results 1 to 4 of 4
Thread: JScrollpane auto resize
- 09-29-2009, 08:07 PM #1
Member
- Join Date
- Sep 2009
- Posts
- 8
- Rep Power
- 0
- 09-29-2009, 08:50 PM #2
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,143
- Rep Power
- 5
A scroll pane works the same way as a panel does, so if you know how to do it with a panel I'm not sure what your problem is.
The easiest solution is to add the scroll pane to the center of a BorderLayout.
- 09-29-2009, 10:06 PM #3
Member
- Join Date
- Sep 2009
- Posts
- 8
- Rep Power
- 0
getContentPane().add(scrollPane,BorderLayout.CENTE R);
Does not work :confused: The scrollPane still has a static size.
- 09-29-2009, 10:12 PM #4
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,143
- Rep Power
- 5
Similar Threads
-
jscrollpane
By kaemonsaionji in forum New To JavaReplies: 3Last Post: 02-25-2009, 08:39 AM -
Getting JScrollPane to stop auto-scrolling
By Shadow in forum AWT / SwingReplies: 8Last Post: 10-21-2008, 08:52 PM -
Auto-complete/Auto-fix for custom statement
By dark_cybernetics in forum EclipseReplies: 0Last Post: 08-19-2008, 11:19 AM -
help with JScrollPane
By tommy in forum AWT / SwingReplies: 1Last Post: 08-06-2007, 07:58 PM -
Resize frame
By lenny in forum AWT / SwingReplies: 1Last Post: 07-29-2007, 11:18 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks