/[classpath]/classpath/javax/swing/text/StyleConstants.java
ViewVC logotype

Diff of /classpath/javax/swing/text/StyleConstants.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by mkoch, Fri Oct 22 17:46:47 2004 UTC revision 1.4 by mkoch, Mon Oct 25 10:37:36 2004 UTC
# Line 279  public class StyleConstants Line 279  public class StyleConstants
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)
# Line 314  public class StyleConstants Line 314  public class StyleConstants
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)
# Line 344  public class StyleConstants Line 344  public class StyleConstants
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)
# Line 364  public class StyleConstants Line 364  public class StyleConstants
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

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26