/[classpath]/classpath/java/awt/Toolkit.java
ViewVC logotype

Diff of /classpath/java/awt/Toolkit.java

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

revision 1.30 by mark, Sat Jul 2 20:32:26 2005 UTC revision 1.31 by rabbit78, Tue Aug 2 15:29:25 2005 UTC
# Line 790  public abstract class Toolkit Line 790  public abstract class Toolkit
790    {    {
791      // Presumably the only reason this isn't abstract is for backwards      // Presumably the only reason this isn't abstract is for backwards
792      // compatibility? FIXME?      // compatibility? FIXME?
793        if (GraphicsEnvironment.isHeadless())
794          throw new HeadlessException("No custom cursor in an headless graphics "
795                                      + "environment.");
796      return null;      return null;
797    }    }
798    
# Line 801  public abstract class Toolkit Line 804  public abstract class Toolkit
804     */     */
805    public Dimension getBestCursorSize(int preferredWidth, int preferredHeight)    public Dimension getBestCursorSize(int preferredWidth, int preferredHeight)
806    {    {
807        if (GraphicsEnvironment.isHeadless())
808          throw new HeadlessException("No best cursor size in an headless "
809                                      + "graphics environment.");
810      return new Dimension (0,0);      return new Dimension (0,0);
811    }    }
812    

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

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