=== DoubleSlider.java
==================================================================
--- DoubleSlider.java	(revision 1189)
+++ DoubleSlider.java	(local)
@@ -17,7 +17,7 @@
 
 /** Basic double-ended slider for Swing.
 	@author Jonathan Paisley, paisleyj@dcs.gla.ac.uk
-	@version 0.3
+	@version 0.4
  */
 
 public class DoubleSlider extends JPanel 
@@ -692,6 +692,14 @@
 		}
 
 	} // end of EventsHandler
+
+	/** Get maximum size of component */
+	public Dimension getMaximumSize()
+	{
+		if (orientation==HORIZONTAL)
+			return new Dimension(Short.MAX_VALUE,buttonSize);
+		return new Dimension(buttonSize,Short.MAX_VALUE);
+	}
  
 	/** Figure out the number of pixels in the track
 		@return The number of pixels in the track
