int (boolean strikeout, boolean underlined, boolean italic) { int style = SimpleTextAttributes.STYLE_PLAIN; if (strikeout) { style |= SimpleTextAttributes.STYLE_STRIKEOUT; } if (underlined) { style |= SimpleTextAttributes.STYLE_UNDERLINE; } if (italic) { style |= SimpleTextAttributes.STYLE_ITALIC; } return style; }