Now, I could have the JScrollPane centered using BorderLayout inside another JPanel (which I would set a minimum size of) inside this the current panel... but that seems messy. Does anyone know of a better way to size ScrollPanes?
for JList is very easy, simple to set initial coordinates, returns expected Dimension for LayoutManager, there are two methods implemented in API
-
and/or if really needed to restrict 2nd dimension