bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug awt/26527] New: Toolkit.createCustomCursor needs to be implemented


From: hendrich at informatik dot uni-hamburg dot de
Subject: [Bug awt/26527] New: Toolkit.createCustomCursor needs to be implemented
Date: 2 Mar 2006 08:11:09 -0000

My image viewer application relies on Toolkit.createCustomCursor(),
but this method is currently just a stub (returning null always).
However, I am not sure whether a general implementation is possible,
or whether this must be overridden in the peers (GtkToolkit etc.).



import java.awt.*;
import java.awt.image.*;

public class CustomCursor extends Frame {

  public static void main( String args[] ) {
    CustomCursor cc = new CustomCursor();
    cc.setSize( 300, 200 );
    cc.show(); 
  }

  public CustomCursor() {
    super( "custom cursor test" );
    Image tmp = new BufferedImage( 1, 1, BufferedImage.TYPE_INT_ARGB );
    Cursor hiddenCursor = Toolkit.
                     getDefaultToolkit().
                       createCustomCursor( tmp, new Point(0,0), "none");
    setCursor( hiddenCursor );
  }
}


-- 
           Summary: Toolkit.createCustomCursor needs to be implemented
           Product: classpath
           Version: 0.21
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: awt
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hendrich at informatik dot uni-hamburg dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26527





reply via email to

[Prev in Thread] Current Thread [Next in Thread]