Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void italic() {
- // TODO add your handling code here:
- MutableAttributeSet attrib = new SimpleAttributeSet();
- AttributeSet old = editor.getCharacterAttributes();
- if (old != null) {
- attrib.addAttributes(old.copyAttributes());
- if (StyleConstants.isItalic(attrib)) {
- StyleConstants.setItalic(attrib, false);
- } else {
- StyleConstants.setItalic(attrib, true);
- }
- editor.setCharacterAttributes(attrib, true);
- // isReportOpen = true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement