Nov 10, 2003 #1 webIntern Programmer Nov 22, 2002 40 US Can someone tell me how I can set the size and location of a JList without JScrollpane on a Contentpane w/BorderLayout? I've tried setBounds, setMaximumSize, setPreferredSize, setMinimumSize...but the lists don't appear to be the size I specify.
Can someone tell me how I can set the size and location of a JList without JScrollpane on a Contentpane w/BorderLayout? I've tried setBounds, setMaximumSize, setPreferredSize, setMinimumSize...but the lists don't appear to be the size I specify.
Nov 21, 2003 #2 seanmceligot Programmer Nov 3, 2003 41 US Max/Min/PreferredSize are ignored by many layouts. You need to choose a layout or set the layout to null and use x/y coordinates. Read this tutorial on Layouts from Sun. http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html Sean McEligot Upvote 0 Downvote
Max/Min/PreferredSize are ignored by many layouts. You need to choose a layout or set the layout to null and use x/y coordinates. Read this tutorial on Layouts from Sun. http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html Sean McEligot