I recently picked up Elixir and Phoenix as development tools and i'm loving them. The Erlang virtual machine (BEAM) where code runs is an amazingly simple, yet powerful, system that allows for some really hard things like inter-process communication to...
Recently i had to create a gradient background for one of the panels in our [POS application](http://inforviegas.pt/wp-content/uploads/2010/09/VOS.jpg), so i though i'd share the code.
You need to pass the top and bottom colors of the gradient and...
yourScrollPane.getVerticalScrollBar().setUnitIncrement(85);
It's actually pretty simple. Just do something like this, adjusting to the horizontal scrollbar and/or the height that you want:
yourScrollPcane.getVerticalScrollBar().setPreferredSize(new Dimension(85, Integer.MAX_VALUE));