As you can Use HTML in Swing Components you might try wrapping the labels to fit better.
As you can Use HTML in Swing Components, you might try wrapping the labels to fit better. Labels. Put(1, new JLabel("Lowpriority")); labels.
Put(10, new JLabel("gh priority(Quick delivery)")); Addendum: You also might try altering the label's horizontal alignment. Addendum: Another approach might be to use short labels on the slider itself and add an explanatory legend nearby. If you have to implelent a custom component, I found Kirill Grouchnikov's How to Write a Custom Swing Component helpful.
I tried that before posting - didn't work... But now I see that it indeed works, problem was that I was using SubstanceL&F that for some reason doesn't render HTML properly (though it reserve extra space because of line breaks). This wasn't exactly what I wanted but I'll accept your answer because it seems to be the best option there is. – Uhlen Jan 3 at 8:45 It's a compromise; I've added more above.
– trashgod Jan 3 at 14:34.
I think you will have to make your own version of JSlider and override method public Hashtable createStandardLabels( int increment, int start ) where specially this line is ready for changes put( new Integer ( labelIndex ), new LabelUIResource( ""+labelIndex, JLabel. CENTER ) ); according to code found at: http://kickjava.com/src/javax/swing/JSlider.java.htm.
No that doesn't seem to make any difference. After some more digging I see now that the "layout" and painting of the JSlider is performed by BasicSliderUI, creating a custom UI class and overriding #paintHorizontalLabel changes position of the labels but then everything else needs to be modified as well... Seems this problem is too hard to solve in a reasonable way :( – Uhlen Jan 2 at 22:17 I haven't said it would be simple. I just offered you an option.
Little bit similar to second one from @trashgod. And override method of class which is fully opensource and documented isn't very tough. Take it easy :) – Marek Sebera Jan 3 at 20:11.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.