So there is a constructor for JScrollBar that looks like:
public JScrollBar(int orientation, int value, int extent, int min, int max)
For my implementation of JScrollBar I need to have the int values be long since the size of my data can be over int's limitations, so something like:
public JScrollBar(int orientation, long value, long extent, long min, long max)
What is the best way for me to implement this constructor for JScrollBar, would it be to completly remake JScrollBar, since those values are everywhere? Or is there some other way much better way to do this.
NOTE: If I do completely rewrite JscrollBar I will also have to overwrite swing.DefaultBoundedRangeModel too because it also takes an int. This doesn't seem to be the best approach so does anyone have any better ideas?