static SimpleAttributeSet style_center() { ret style_center(new SimpleAttributeSet); } static SimpleAttributeSet style_center(SimpleAttributeSet a) { StyleConstants.setAlignment(a, StyleConstants.ALIGN_CENTER); ret a; }