Skip to content

Commit dde5583

Browse files
hansonrhansonr
authored andcommitted
not significant
1 parent c0330ff commit dde5583

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2992,13 +2992,14 @@ protected void updateCellNode() {
29922992

29932993
if (allowPaintedBackground || isMenu && !isMenuItem)
29942994
DOMNode.setStyles(domNode, "background", "transparent");
2995-
if (cellComponent instanceof BooleanRenderer || cellComponent.getClientProperty("_jsBooleanEditor") != null) {
2995+
if (cellComponent instanceof BooleanRenderer
2996+
|| cellComponent.getClientProperty("_jsBooleanEditor") != null) {
29962997

29972998
DOMNode.setStyles(centeringNode, "width", "100%", "height", "100%");
29982999
DOMNode.setStyles(buttonNode, "width", "100%", "height", "100%");
29993000
DOMNode.setStyles(actionNode, "position", "absolute", "width", "14px", "height", "14px", "top",
30003001
(cellHeight / 2) + "px");
3001-
int textAlign = ((BooleanRenderer) cellComponent).getHorizontalAlignment();
3002+
int textAlign = ((AbstractButton) cellComponent).getHorizontalAlignment();
30023003
int width = cellWidth;
30033004
switch (textAlign) {
30043005
case SwingConstants.RIGHT:

0 commit comments

Comments
 (0)