How to hide the arrow buttons in a JScrollBar
I need to hide the arrow buttons of java.awt.Scrollbar(VERTICAL) in an AWT application. Does anyone know how this can be achieved? I saw an example here , but the code just hides the buttons. The vacant space for the buttons still remains; it is not occupied by the scroll bar. To be more exact, here is the screenshot of what I should achieve. I am not sure which direction to go about it. Update : I was looking for a solution in AWT. But now I am open to suggestions in Swing as well. Harry Lime Try this.. it replaces the regular buttons on the Vertical ScrollBar with buttons that are 0x0 in