-/**
+/*
* Jexer - Java Text User Interface
*
* License: LGPLv3 or later
final int width) {
// Set parent and window
- super(parent);
-
- setX(x);
- setY(y);
- setHeight(1);
- setWidth(width);
+ super(parent, x, y, width, 1);
}
/**
return;
}
- if ((mouse.getMouse1())
+ if ((mouse.isMouse1())
&& (inScroll)
&& (mouse.getX() > 0)
&& (mouse.getX() < getWidth() - 1)
) {
// Recompute value based on new box position
- value = (rightValue - leftValue) * (mouse.getX()) / (getWidth() - 3) + leftValue;
+ value = (rightValue - leftValue)
+ * (mouse.getX()) / (getWidth() - 3) + leftValue;
return;
}
inScroll = false;