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 |
|
|
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 |
|
|