Skip to content

Commit ec547ef

Browse files
hansonrhansonr
authored andcommitted
adds ^ and V arrows to JSpinner
1 parent 2ff777d commit ec547ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sources/net.sf.j2s.java.core/src/swingjs/plaf/JSSpinnerUI.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public DOMNode updateDOMNode() {
4545
upNode = DOMNode.setStyles(
4646
newDOMObject("input", id + "_up", "type", "button", "value", ""),
4747
"transform", "scaleY(.5)", "width", "20px", "height", "20px");
48+
DOMNode.setAttr(upNode, "value", "\u25b2");
4849
up.appendChild(upNode);
4950
bindJSEvents(upNode, "mousedown touchstart", Event.MOUSE_DOWN, true);
5051
bindJSEvents(upNode, "mouseup touchend", Event.MOUSE_UP, true);
@@ -56,6 +57,7 @@ public DOMNode updateDOMNode() {
5657
newDOMObject("input", id + "_dn", "type", "button", "value", ""),
5758
"transform", "scaleY(.5)", "width", "20px", "height",
5859
"20px");
60+
DOMNode.setAttr(dnNode, "value", "\u25bc");
5961
dn.appendChild(dnNode);
6062
bindJSEvents(dnNode, "mousedown touchstart", Event.MOUSE_DOWN, true);
6163
bindJSEvents(dnNode, "mouseup touchend", Event.MOUSE_UP, true);

0 commit comments

Comments
 (0)