279 |
|
|
280 |
public static void setBold(MutableAttributeSet a, boolean b) |
public static void setBold(MutableAttributeSet a, boolean b) |
281 |
{ |
{ |
282 |
a.addAttribute(Bold, new Boolean(b)); |
a.addAttribute(Bold, Boolean.valueOf(b)); |
283 |
} |
} |
284 |
|
|
285 |
public static void setComponent(MutableAttributeSet a, Component c) |
public static void setComponent(MutableAttributeSet a, Component c) |
314 |
|
|
315 |
public static void setItalic(MutableAttributeSet a, boolean b) |
public static void setItalic(MutableAttributeSet a, boolean b) |
316 |
{ |
{ |
317 |
a.addAttribute(Italic, new Boolean(b)); |
a.addAttribute(Italic, Boolean.valueOf(b)); |
318 |
} |
} |
319 |
|
|
320 |
public static void setLeftIndent(MutableAttributeSet a, float i) |
public static void setLeftIndent(MutableAttributeSet a, float i) |
344 |
|
|
345 |
public static void setStrikeThrough(MutableAttributeSet a, boolean b) |
public static void setStrikeThrough(MutableAttributeSet a, boolean b) |
346 |
{ |
{ |
347 |
a.addAttribute(StrikeThrough, new Boolean(b)); |
a.addAttribute(StrikeThrough, Boolean.valueOf(b)); |
348 |
} |
} |
349 |
|
|
350 |
public static void setSubscript(MutableAttributeSet a, boolean b) |
public static void setSubscript(MutableAttributeSet a, boolean b) |
351 |
{ |
{ |
352 |
a.addAttribute(Subscript, new Boolean(b)); |
a.addAttribute(Subscript, Boolean.valueOf(b)); |
353 |
} |
} |
354 |
|
|
355 |
public static void setSuperscript(MutableAttributeSet a, boolean b) |
public static void setSuperscript(MutableAttributeSet a, boolean b) |
356 |
{ |
{ |
357 |
a.addAttribute(Superscript, new Boolean(b)); |
a.addAttribute(Superscript, Boolean.valueOf(b)); |
358 |
} |
} |
359 |
|
|
360 |
public static void setTabSet(MutableAttributeSet a, javax.swing.text.TabSet tabs) |
public static void setTabSet(MutableAttributeSet a, javax.swing.text.TabSet tabs) |
364 |
|
|
365 |
public static void setUnderline(MutableAttributeSet a, boolean b) |
public static void setUnderline(MutableAttributeSet a, boolean b) |
366 |
{ |
{ |
367 |
a.addAttribute(Underline, new Boolean(b)); |
a.addAttribute(Underline, Boolean.valueOf(b)); |
368 |
} |
} |
369 |
|
|
370 |
// The remainder are so-called "typesafe enumerations" which |
// The remainder are so-called "typesafe enumerations" which |