Custom cursor using image gets resized bigger

I have created a custom cursor using the following code:
ClassLoader cl = this.getClass().getClassLoader();     
Toolkit tk = Toolkit.getDefaultToolkit();
Image im = tk.getImage( cl.getResource("images/wallcursor.gif"));
Cursor Custom_Cursor = tk.createCustomCursor(im,new Point(9,9),"Drawing wall");
draftGrid.setCursor( Custom_Cursor );The cursor is loaded and it works, however - the image I use for the cursor is resized so it gets too big. Any clues on why this happens?
btw; draftGrid is one of my own classes that extends JComponent.
- bjorn

Thanks for your replies guys.
I tried your code KPSeal, and it works in resizing the cursor image back to its original size. However, a gray square of size 32,32 (which is returned by getBestCursorSize()) is shown round the cursor.
Here is the updated code (yours hade some minor bugs)
Image im = tk.getImage( cl.getResource("images/wallcursor.gif"));
try {
       tracker.addImage(im, 0 );
       tracker.waitForID(0);
} catch( InterruptedException ie ) {
       ie.printStackTrace();
int w = im.getWidth(this);
int h = im.getHeight(this);
int pw = Toolkit.getDefaultToolkit().getBestCursorSize(w, h).width;
int ph = Toolkit.getDefaultToolkit().getBestCursorSize(w, h).height;
System.out.println("w="+w+", h="+h+" - pw="+pw+", ph="+ph);
Image cim = createImage(pw, ph);
cim.getGraphics().drawImage(im,0,0, this);                     
Cursor Custom_Cursor = tk.createCustomCursor(cim,new Point(0,0),"Drawing wall");
draftGrid.setCursor( Custom_Cursor );The System.out.println statement prints: w=18, h=13 - pw=32, ph=32
If I try to do the createImage with w and h instead of pw and ph the same gray square (32,32) is created, and in addition the cursor's size is too big which was the probem to begin with ...
- bjorn

Similar Messages

  • Video Image gets resized

    I am trying to develop a chat application which has the webcam feature. I am using JMF for this purpose. I am creating this as an applet. The first time when the page loads and the user clicks the start button to start the video, the webcam starts and the video is displayed in a small area of the applet.
    The problem is that, if the user clicks on any other buttons on the applet, the image gets resized. It scales itself in the horizontal direction. I have no clue as to why is this happeneing. I have tried using GridBagLayout, but still the problem persists.
    Any help in this matter will be highly appreciated.
    Regards,
    Sharad

    This is the code which I am using. The start button is to start the video. After the video is started, clicking on the next button will resize the video. The next button loads another image on to the applet. The Image is on the left side and the video is being displayed on the right side. Clicking on the next button calls the class PresentControl.java.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.border.*;
    import java.net.*;
    import java.awt.image.*;
    import java.io.*;
    import java.util.*;
    Description : Online presentation client main applet
    public class ClientOnPres extends JApplet {
         private Container contentPane;
    private JToolBar tb;      // Toolbar
    private JButton closeBtn,descBtn,plistBtn;// general button
    private JButton attBtn, smediaBtn,qmediaBtn,nextBtn,prevBtn; //presenter control button
    private JRadioButton[] pntButtons;               // indicator shape type
    private JButton drawBtn, delBtn, submitBtn; //
    private JPanel bodyPane, leftPane, midPane,leftMidPane,rightPane;
    private JTextArea chatOutText;      // display chat data
    private JTextField chatInText;      // entering chat data
    private JScrollPane jpChat;      // chat textbox scrolling
    private JLabel pageLbl, subjectLbl, nameLbl; // # of page, subject, presenter name
    private JLabel matrLbl, prterImage; // display presentation material
                                                                     // display presenter video image
    private String SERVER_IP_ADDRESS = ""; //IP address of the server
    private static final int SERVER_PORT = ; //port number
    private Socket clientSocket;
    private long requestStamp;
    private long responseStamp;
    private PresentControl pcontrol;
    private ThumbnailHandler thumbHandle;
    private ArrayList imgList;
    private Vector imageVector;
    private ObjectInputStream ois;
    private ObjectOutputStream oos;
    private Component thisFrame;
    private ArrayList iparray;
    private TransMedia tm;
    private ReceiveMedia ar;
    private int casttype;
    private String senderip;
    private String requestIp;
    private String username;
    private String userid;
    private boolean isHost = false;
    private int presentId;
    private String presentTopic;
    private String presentPresenter;
    private String presentDesc;
    private static final String MULTICAST_IP = "228.11.12.13";
    private static final int VIDEO_PORT = 31000;
    private static final int AUDIO_PORT = 32000;
    private static final int VIDEO_PORT_HOST = 31010;
    private static final int AUDIO_PORT_HOST = 32010;
    private static final int MULTICAST_TTL = 255;
    private boolean transOk = false;
    private boolean readyToStart = false;
    Object dataSync = new Object();
    public ClientOnPres() {
    getRootPane().putClientProperty("defeatSystemEventQueueCheck",
    Boolean.TRUE);
    public void init() {
              contentPane = getContentPane();
              iparray = new ArrayList();
              requestIp = getParameter("requestIp");     
              username = getParameter("username");
              userid = getParameter("userid");
              presentId = Integer.parseInt(getParameter("presentId"));
              //---- Toolbar
              tb = new JToolBar();     
              closeBtn = new JButton("Close");
              closeBtn.setMargin(new Insets(0,5,0,5));
              descBtn = new JButton("Description");
              descBtn.setMargin(new Insets(0,5,0,5));
              plistBtn = new JButton("Participant List");
              plistBtn.setMargin(new Insets(0,5,0,5));
    Dimension dm = new Dimension(10, 0);     
              tb.add(closeBtn);
              tb.addSeparator(dm);          
              tb.add(descBtn);
              tb.addSeparator(dm);          
              tb.add(plistBtn);
    contentPane.setLayout(new BorderLayout());          
    contentPane.add(tb, BorderLayout.NORTH);
    //------ body panel
    bodyPane = new JPanel();
    leftPane = new JPanel();
    midPane = new JPanel();
    rightPane = new JPanel();
    bodyPane.setLayout(new BorderLayout());
              bodyPane.setBorder(BorderFactory.createEtchedBorder());     
    bodyPane.add(leftPane, BorderLayout.WEST);
    bodyPane.add(midPane, BorderLayout.CENTER);
    bodyPane.add(rightPane, BorderLayout.EAST);
    contentPane.add(bodyPane, BorderLayout.CENTER);
    //------ left pane : thumbnail panel
    JPanel leftTopPane = new JPanel();
    JLabel label1 = new JLabel("Preview");
    leftTopPane.add(label1);
    leftMidPane = new JPanel();
    leftMidPane.setPreferredSize(new Dimension(80,350));
    leftMidPane.setLayout(new FlowLayout());
    leftPane.setLayout(new BorderLayout());
    leftPane.add(leftTopPane, BorderLayout.NORTH);
    leftPane.add(leftMidPane, BorderLayout.CENTER);
              leftPane.setBorder(BorderFactory.createLoweredBevelBorder());
    //--- main Panel
    midPane.setLayout(new BorderLayout());
    //--- top Panel
    JPanel topPane = new JPanel();
    JPanel firPane = new JPanel();
    JPanel secPane = new JPanel();
    JLabel label10 = new JLabel("Presentation Control : ");
              drawBtn = new JButton("Draw");
              drawBtn.setMargin(new Insets(0,5,0,5));
              delBtn = new JButton("Delete");
              delBtn.setMargin(new Insets(0,5,0,5));
              submitBtn = new JButton("Submit");
              submitBtn.setMargin(new Insets(0,5,0,5));
              attBtn = new JButton("Attention");
              attBtn.setMargin(new Insets(0,5,0,5));
              smediaBtn = new JButton("Start");
              smediaBtn.setMargin(new Insets(0,5,0,5));
              qmediaBtn = new JButton("Stop ");
              qmediaBtn.setMargin(new Insets(0,5,0,5));
              nextBtn = new JButton("Next ");
              nextBtn.setMargin(new Insets(0,5,0,5));
              prevBtn = new JButton("Prev ");
              prevBtn.setMargin(new Insets(0,5,0,5));
              firPane.add(label10);
              firPane.add(drawBtn);
              firPane.add(delBtn);
              firPane.add(submitBtn);
              firPane.add(attBtn);
              JSeparator jsp1 = new JSeparator(JSeparator.VERTICAL);
              jsp1.setPreferredSize(new Dimension(30, 20));
              firPane.add(jsp1);     
              firPane.add(nextBtn);
              firPane.add(prevBtn);
              JSeparator jsp2 = new JSeparator(JSeparator.VERTICAL);
              jsp2.setPreferredSize(new Dimension(30, 20));
    topPane.setLayout(new BorderLayout());
              topPane.add(firPane,BorderLayout.WEST);
              topPane.add(secPane,BorderLayout.CENTER);
              topPane.setBorder(BorderFactory.createLoweredBevelBorder());
              //--- middle panel
              JPanel subPane = new JPanel();
    JPanel abovePane = new JPanel();
    JPanel abovePane1 = new JPanel();
    JPanel abovePane2 = new JPanel();
    JPanel belowPane = new JPanel();
    JLabel label2 = new JLabel("Subject : ");
    JLabel label3 = new JLabel("Page :");
              pageLbl = new JLabel();
              subjectLbl = new JLabel();
              matrLbl = new JLabel();
    abovePane1.add(label2);
    abovePane1.add(subjectLbl);
    abovePane2.add(label3);
    abovePane2.add(pageLbl);
    abovePane.setLayout(new BorderLayout());
    abovePane.add(abovePane1, BorderLayout.WEST);
    abovePane.add(abovePane2, BorderLayout.EAST);
              abovePane.setBorder(BorderFactory.createEtchedBorder());
              belowPane.setLayout(new BorderLayout());
              belowPane.add(matrLbl, BorderLayout.CENTER);
              subPane.setLayout(new BorderLayout());
              subPane.add(topPane, BorderLayout.NORTH);
              subPane.add(abovePane, BorderLayout.CENTER);
              midPane.add(subPane, BorderLayout.NORTH);
    midPane.add(belowPane, BorderLayout.CENTER);
              //---- right side panel
    JPanel rightTopPane = new JPanel();     
    JPanel rightMiddlePane = new JPanel();
    JPanel rightBelowPane = new JPanel();
              JLabel label4 = new JLabel("Presenter : ");
              JLabel nameLbl = new JLabel("Hwan K. Chung");
    JPanel rightAbovePane = new JPanel();
    JPanel rightButtonPane = new JPanel();     
    rightButtonPane.setBorder(BorderFactory.createLoweredBevelBorder());
              chatInText = new JTextField(14);
    chatOutText = new JTextArea(15,13);
    chatOutText.setLineWrap(true);
    chatOutText.setEditable(false);
    chatOutText.setBorder(BorderFactory.createLoweredBevelBorder());
              rightButtonPane.add(smediaBtn);
              rightButtonPane.add(qmediaBtn);
              rightAbovePane.add(label4);
              rightAbovePane.add(nameLbl);
              rightAbovePane.setBorder(BorderFactory.createEtchedBorder());
              rightTopPane.setLayout(new BorderLayout());
              rightTopPane.add(rightButtonPane,BorderLayout.NORTH);
              rightTopPane.add(rightAbovePane,BorderLayout.CENTER);     
              rightMiddlePane.setBorder(BorderFactory.createEtchedBorder());
              jpChat = new JScrollPane(chatOutText);
              rightBelowPane.add(jpChat);
              rightBelowPane.add(chatInText);
              TitledBorder border = new TitledBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED),
              "Chatting Box",
                                       TitledBorder.LEFT,
                                       TitledBorder.CENTER);
              rightBelowPane.setBorder(border);
              rightBelowPane.setPreferredSize(new Dimension(150,350));
              rightPane.setLayout(new BorderLayout());
              rightPane.add(rightTopPane,BorderLayout.NORTH);     
    //          rightPane.add(rightMiddlePane,BorderLayout.CENTER);     
              rightPane.add(rightBelowPane,BorderLayout.SOUTH);     
    //--- get frame object for thumbnail image transfer the popup window
    thisFrame = getParent();
         smediaBtn.addActionListener(new ActionListener() {
                   String result = null;
                   public void actionPerformed (ActionEvent em) {
              try{
              long requestStamp = System.currentTimeMillis();
              oos.writeLong(requestStamp);
              oos.flush();
              oos.writeInt(11);                // request start
                        oos.flush();
              oos.writeUTF(requestIp); // sender IP in this case
                        oos.flush();
                        } catch (IOException ie) {
                             System.err.println("System error, Send data :11 " + ie);
                        long then = System.currentTimeMillis();
                        long waitingPeriod = 30000; // wait for a maximum of 30 secs.
                        try {
                        synchronized (dataSync) {
                             while (!readyToStart &&
                                       System.currentTimeMillis() - then < waitingPeriod) {
                             if (!readyToStart)
                                       System.err.println(" - Waiting for ready to start...");
                             dataSync.wait(1000);
                        } catch (Exception e) { System.err.println("Error in waiting ..start"); }
         try {
              long requestStamp = System.currentTimeMillis();     
              oos.writeLong(requestStamp);
              oos.flush();
              oos.writeInt(13);                // request start
                        oos.flush();
                        } catch (IOException ie) {
                             System.err.println("System error, Send data :13 " + ie);
                        try {
                             if (casttype == 2)
                             tm = new TransMedia(MULTICAST_IP,casttype,iparray);
                             else
                                  tm = new TransMedia(senderip,casttype,iparray);
                        } catch (Exception ee) {
                             System.err.println("Video sending error, construction() : " + ee);
                        try {
                             result = tm.start();
                        } catch (Exception ee) {
                             System.err.println("Video sending error, start : " + ee);
                        if (result != null)
                             System.err.println("Error2 : " + result);
                        else {
                             System.err.println("Trans Ok");
                             transOk = true;
         qmediaBtn.addActionListener(new ActionListener() {
                   public void actionPerformed (ActionEvent em) {
                        try {
                             tm.stop();
                        } catch (Exception ee) {
                             System.err.println("Video sending error, stop : " + ee);
              ///// sending chat data          
    chatInText.addActionListener(new ActionListener() {    // input text
    public void actionPerformed(ActionEvent e) {
         try {
    long requestStamp = System.currentTimeMillis();
    oos.writeLong(requestStamp);
    oos.flush();
    oos.writeInt(21);
    oos.flush();
                        oos.writeUTF(username);
                        oos.flush();
    oos.writeUTF(chatInText.getText() + "\n");
    oos.flush();
    chatInText.setText("");
    } catch(IOException ioe) {
    System.out.println("Outstream writer err in chatting: " + ioe.getMessage()); }
    while (!(thisFrame instanceof Frame))
         thisFrame =((Component)thisFrame).getParent();
    public void start() {
    try {
    clientSocket = new Socket(SERVER_IP_ADDRESS, SERVER_PORT);
    ois = new ObjectInputStream(clientSocket.getInputStream());
    oos = new ObjectOutputStream(clientSocket.getOutputStream());
    long requestStamp = System.currentTimeMillis();
    oos.writeLong(requestStamp);
    oos.flush();
    oos.writeInt(1);           // send request for initial data
              oos.flush();
    oos.writeUTF(requestIp); // send participant data
              oos.flush();
    oos.writeUTF(username); // send participant name
              oos.flush();
                   thumbHandle = new ThumbnailHandler(this,
    contentPane,
    thisFrame,
    leftMidPane);
              pcontrol = new PresentControl(pageLbl,subjectLbl,
              matrLbl,
              nextBtn,prevBtn,
              ois,oos);
    new ResponseManager().start();
         } catch (Exception e) {
              System.err.println("RRManager Error : " + e);
              e.printStackTrace();
    //--- Client accessing class
    class ResponseManager extends Thread {
         private long prevStamp = 0;
         private int prevActType = 0;
         private int actType;
    public void run() {
    try {
         long curStamp;
    while(true) {
    curStamp = ois.readLong();
    actType = ois.readInt();
         if (curStamp > prevStamp || actType != prevActType) {
         switch (actType) {
         case 2:
         receiveInitData();
         break;
         case 4:
         pcontrol.receiveSlidePage();
         break;
         case 12:
              iparray = (ArrayList) ois.readObject();
                   casttype = ois.readInt();
                   senderip = ois.readUTF();
                   readyToStart = true;
         break;           
         case 14:
                                  System.out.println("Session type and sender ip : " + senderip + " " + casttype);
                                       if (senderip.equals(requestIp)) {
                                            long then = System.currentTimeMillis();
                                            while (!transOk && System.currentTimeMillis() - then < 30000) {
                                            if (!transOk) {
                                                      System.err.println(" Waiting for transmit...");
                                                 Thread.sleep(1000);
                                       if (casttype == 2)
                                            ar = new ReceiveMedia(MULTICAST_IP,VIDEO_PORT,AUDIO_PORT,MULTICAST_TTL);
                                       else {
                                            if (senderip.equals(requestIp))
                                                 //Play for sender himself
                                                 ar = new ReceiveMedia(senderip,VIDEO_PORT_HOST,AUDIO_PORT_HOST,MULTICAST_TTL);
                                            else
                                                 ar = new ReceiveMedia(senderip,VIDEO_PORT,AUDIO_PORT,MULTICAST_TTL);
                                       rightPane.add(ar,BorderLayout.CENTER);
                                       rightPane.validate();
                                       rightPane.repaint();
              if (ar.initialize())
                        ar.start();
         break;
         // receive chat data
         case 22:
    try {
         String inData = ois.readUTF();
    chatOutText.append(inData);
    chatOutText.setCaretPosition(chatOutText.getDocument().getLength());
    chatOutText.scrollRectToVisible(chatOutText.modelToView(
                                                      chatOutText.getDocument().getLength()));
                             } catch (Exception e) { e.printStackTrace(); }
         break;           
         default:
         System.out.println("Action type err!");
    prevStamp = curStamp;
    prevActType = actType;
    } catch (Exception e) {
         System.out.println("Response Manager Error : " + e);
                        e.printStackTrace();      
    } // end try
    } // end run
         ///// receive initial data and load thumbnail images
         private void receiveInitData() {
                   try {
                   presentTopic = ois.readUTF();
                   presentPresenter = ois.readUTF();
                   presentDesc = ois.readUTF();
                        imgList = (ArrayList) ois.readObject();
              } catch (Exception e) {
              System.out.println("Error in ReceiveInitData : " + e);
                   if (presentPresenter.equals(userid))
                        isHost = true;
                   if (!isHost) {
                        attBtn.setEnabled(false);
                        smediaBtn.setEnabled(false);
                        qmediaBtn.setEnabled(false);
                        nextBtn.setEnabled(false);
                        prevBtn.setEnabled(false);
                        drawBtn.setEnabled(false);
                        delBtn.setEnabled(false);
                        submitBtn.setEnabled(false);
                        midPane.validate();
                        rightPane.validate();
                   thumbHandle.receiveImages(imgList,presentId);
                   imageVector = thumbHandle.getImageVector();     
    pcontrol.firstLoading(imageVector);                               
    } // end class
    /********************************* Present Control **********************/
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.util.Vector;
    import javax.swing.*;
    public class PresentControl {
    private int SCALE_WIDTH = 560;
    private int SCALE_HEIGHT = 450;
    private JLabel pageLbl;
    private JLabel subjectLbl;
    private JLabel matrLbl;
    private JButton nextBtn;
    private JButton prevBtn;
    private Vector imgVec;
    private static int currentSlide;
    private ObjectInputStream ois;
    private ObjectOutputStream oos;
    public PresentControl(JLabel pageLbl,
                   JLabel subjectLbl,
                   JLabel matrLbl,
                   JButton nextBtn,
                   JButton prevBtn,
                   ObjectInputStream ois,
                   ObjectOutputStream oos) {
         this.pageLbl = pageLbl;
         this.subjectLbl = subjectLbl;
         this.matrLbl = matrLbl;
         this.nextBtn = nextBtn;
         this.prevBtn = prevBtn;
         this.ois = ois;
         this.oos = oos;
    public void firstLoading(Vector vec) {
         imgVec = vec;
              Image first = (Image)imgVec.elementAt(0);
              matrLbl.setIcon(new ImageIcon(adjustImage(first)));
              pageLbl.setText("1");
              subjectLbl.setText("1");
              currentSlide = 1;
              ReqButtonListener reqlistener = new ReqButtonListener();
              nextBtn.addActionListener(reqlistener);
              prevBtn.addActionListener(reqlistener);
    private Image adjustImage(Image org) {       
    return org.getScaledInstance(SCALE_WIDTH, SCALE_HEIGHT,
         Image.SCALE_FAST);
    class ReqButtonListener implements ActionListener {
    public void actionPerformed(ActionEvent evt) {
         Object source = evt.getSource();
         int sendSlide = 0;
         long timeStamp = System.currentTimeMillis();
              if (source == nextBtn) {
    sendSlide = currentSlide + 1;
    else if (source == prevBtn) {
    sendSlide = currentSlide - 1;
    try {
    oos.writeLong(timeStamp);
    oos.flush();
    oos.writeInt(3); // send request
    oos.flush();
    oos.writeInt(sendSlide);
                        oos.flush();
    } catch (IOException ioe) {
    JOptionPane.showMessageDialog(null, ioe.getMessage());
    }//try
    public void receiveSlidePage() {
              int slideNumber = 1;
         try {
         slideNumber = ois.readInt();
    } catch (Exception e) {
         JOptionPane.showMessageDialog(null, e.toString());
              if (slideNumber < 1)
              slideNumber = 1;
              else if (slideNumber > imgVec.size())
              slideNumber = 1;
              Image img = (Image)imgVec.elementAt(slideNumber - 1);
              this.matrLbl.setIcon(new ImageIcon(adjustImage(img)));
              this.pageLbl.setText(String.valueOf(slideNumber));
              currentSlide = slideNumber;

  • Custom cursor using startDrag

    Hello everyone,
    I have a movieclip following my mouse to act as a custom cursor.
    I am using startDrag on the movie clip and mouse.hide()
    What I am trying to resolve is the following:
    I have several hidden simple button objects in the background of my flash movie. ( I am using these to detect when the user has the mouse in certain areas of the flash movie)
    When i go to move over these simple buttons, my custom cursor movieclip stops following the mouse cursor.  Normally my cursor would also then change to the Hand cursor, but i disabled that.
    Can anyone think of any method or hack that would make this work for me?  I would like my custom cursor following the mouse pointer at all times even when hovering over a simple button.
    thanks in advance.

    The cursor changes to hand cursor yet?
    When you say "single button Several hidden objects", the number is?

  • Lightroom 5 - Creating Custom Collections of Images | Getting Started with Adobe Photoshop Lightroom 5 | Adobe TV

    Discover how to simplify the creation of virtual groups of images using Collections, Smart Collections and Collection Sets in Lightroom.
    http://adobe.ly/12t11p3

    Is there anyway that we can create a Template of a Collection Set Structure?
    I have a particular Structure Set that I use for my Collection Sets, and the Collections within them for each time I do a shoot session.
    Is there anyway that I can streamline the process of making these structures instead of doing it one collection at a time?
    I can't seem to find it at the moment. A possibility for the Future?
    Thanks

  • Image getting resized in website, won't print correctly. Help!

    videoimagination.com
    Yes, it's a template. Yes, it's hideous. No, I'll never do it
    again.
    Too late.
    Anyway.
    If you click the "Families" button on the top of the page,
    then click on "Order Form" or "Film Gauge" links, my files open,
    and there's the image.
    Except...The film gauge chart must print actual size.
    They're both empty html pages with a jpeg image inserted.
    when I print the jpeg images from any editing program,
    they're hunky-dory.
    As soon as I insert the images into the empty html page, they
    don't print actual size.
    And I can't figure out how to make the order form default
    print to landscape.
    Any help appreciated.
    I teach 9th grade in real life, so please use small words and
    type slooooowly. It's been a long week.
    Thanks in advance.
    Allison

    >
    http://videoimagination.com/pages/zottmann.html
    > When printed correctly, the image of the 400 foot reel
    should be just about 7
    > inches across.
    forget inches.
    The image will print at the pixel size it is. If you want it
    larger- make it
    a larger pixel dimension in an image editor.
    >
    >
    http://videoimagination.com/pages/orderform.html
    > The order form should be around 8 1/2 by 11 or so, IRL
    we use a standard sheet
    > of paper to print.
    Can't force landscape printing in any practical way.
    Adapt and overcome- turn the image 90 degrees and enlarge it
    so it will fit
    standard paper. Standard us paper would be about 612px by
    792px. You have
    to go smaller to deal with default margin settings in the
    printer.
    question- there is tons of scripting on the order form page
    to test for
    flash player, but there's no .swf in them.
    Making the order form a .pdf would be okay probably.
    If you make the images oversize, it depends on how the user's
    Print Dialog
    Box is set on what will happen. If it's set to print actual
    size, extra
    sheets of paper will come out. If it's set to "size to fit
    paper" it will
    shink to fit one page.
    There are also absolute paths to your hard drive.
    <link rel="stylesheet" href="file:///C|/Documents and
    Settings/Owner/Desktop/Doubles/free1/mm_health_nutr.css"
    background="file:///C|/Documents and
    Settings/Owner/Desktop/Doubles/free1/mm_dashed_line.gif"
    bgcolor="#000033">
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Change custom cursor size

    does anybody know how to change a custom cursor's size? we have created a custom cursor using the toolkit, but we can't seem to resize it so that the cursor is bigger.

    Read the API on java.awt.Toolkit
    createCustomCursor() creates a cursor of whatever size the system can handle. Generally, this is 32x32 for Windoze systems. toolkit.getBestCursorSize() will return a closest supported size for some (w,h) suggestion. You have to draw your image on a BufferedImage using the graphics object, then submit the BufferedImage object to toolkit.createCustomCursor()
    Jason

  • Custom Cursors- drawing bitmaps?

    Hello everyone,
    I went on to www.youtube.com and found a tutorial to set up
    custom cursor using the actionscript(2.0) on the actualt movie
    clip(which was my cursor):
    onClipEvent(enterFrame)
    _x=_root._xmouse
    _y=_root._ymouse
    And the actionscript on the acutal frame:
    Mouse.hide()
    This code sufficiantly replaced my mouse with my movie clip,
    but I noticed when i moused over my button, they did not show the
    same mouse over that I had with the normal mouse.
    Another thing I could like to acomplish is, when my custom
    cursor click anywhere in the flash movie, it overlays a bitmap(an
    image(a .jpeg)) on that instance of that flash movie. I've seen it
    done before in flash sites that allow that user to create things
    such as characters or art. I know it's posible, but I've searched
    all of the internet and have gained no fruit from it.
    If anyone would be so kind as to show me how to go this, or
    even simply point me to a link. I would be very greatful. If I do
    get it working, I'll be sure to share it with the community, as
    what I'm gonna use it for is pretty cool in my opinion.
    Thanks for your time and consideration.
    Peace,
    Mike.

    So I put the code clbeech seggusted in the actions frame and
    it didn't work.
    How do I insert a link to download my flash file so that
    someone can see waht's actually going on?
    Also,
    I'm having trouble with button events.
    I entered some code in the actions palette after clicking on
    the button in the stage. The code was:
    on (release) {
    gotoAndPlay(36);
    Simple enough right?
    Well the frames didn't play, it glitched for a second,
    teasing me as if it would, but didn't.
    I got this compilke error:
    Mouse events are premitted only for button instances.
    This was the error I got from clbeech's code after inserting
    it on the first frame in the actions layer.
    Expected a feild name '.' operator.

  • Linux - The custom cursor is looking bad

    Creating a custom cursor using png 32x32 images. The images are displaying perfect as a cursor on Windows and Mac but, on Linux the image is bad. Below I am pasting code to test the things by using some png image.
    import java.awt.*;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import java.net.URL;
    import javax.swing.*;
    public class UserCursor {
         private void initComponents() {
              JFrame jf = new JFrame("Cursor Test");
              jf.setLayout(new BorderLayout());
              final JButton jb = new JButton("Change Cursor");
              jf.getContentPane().add(jb,BorderLayout.NORTH);
              jf.setSize(200, 200);
              jf.setVisible(true);
              final Cursor cur = createCursor();
              jb.addMouseListener(new MouseAdapter(){
                   public void mouseEntered(MouseEvent arg0) {
                        jb.setCursor(cur);
         private Cursor createCursor() {
              Cursor userCursor=null;
              Toolkit toolkit = Toolkit.getDefaultToolkit();
              URL icon = getClass().getResource("images/someImage.png");
              Image image = new ImageIcon(icon).getImage();
              userCursor = toolkit.createCustomCursor(image, new Point(0, 0), "My Cursor");
              return userCursor;
         public static void main(String args[])
              UserCursor uc= new UserCursor();
              uc.initComponents();
    }

    Kanni wrote:
    Toolkit.getBestCursorSize(....)
    I tried using above suggestion to solve my cursor problem. It didn't work for me.
    ThanksSo how did you try this. Did you use the result of this function to choose a suitable cursor glyph? Did you use it to scale the original using an Affine Transformation?
    How can anyone give any further help if the only feedback you provide is "it didn't work" .

  • Custom Cursor and Drag Image in 1.4 DnD

    What is the proper way to provide a custom cursor and drag image in 1.4 DnD? Say we initiate the drag on a component that supports data transfer (such as a JTree).

    Well, this is strange. My app was locking up (100% CPU) when using DND from windows Explorer.
    I noticed that another part of the same appliction was working perfictly. The difference: JFrame .vs. JDialog. I switched the offending JDialog to a JFrame and all works perfictly now!
    java version "1.4.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
    Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
    I would like to switch back at some point, but my g.setXORMode() problem is a much bigger issue for us. (That is, once you enter the XOR mode, you can not go back!)

  • When I try and print an "Approach Plate, or Departure" from ForeFlight to my Epson Stylus NX430 using AirPrint the image is resized. How can I print without it resizing. I want to have the plate print in the original size so I can use it.

    When I try and print an "Approach Plate, or Departure" from ForeFlight to my Epson Stylus NX430 using AirPrint the image is resized. How can I print without it resizing. I want to have the plate print in the original size so I can use it. Is this an Apple, Epson, or Foreflight Issue? I just purchased the printer so I can return it and get a different model or brand. I spoke to Epson and the suggestions given did not resolve the issue. I have cut the paper down to the size of the plate roughly 5.5x8 and it still try's to print at 8.5x11. I have also requested help through ForeFlights Tech help but have yet to receive an answer.
    Please help!

    It varies based on what you ordered and whether it is in stock or has to be assenbled and shipped from China. Your email conformation should give an estimate of when the items are expected to be shipped or available for pick up if you are having it sent to a local Apple Store.

  • When I have resized and saved an image in Photoshop (CS, version 8.0 for Mac) using image size, why is it so large when I open it in preview or another image viewer? Has it actually saved according to the size I specified?

    When I have resized and saved an image in Photoshop (CS, version 8.0 for Mac) using image size, why is it so large when I open it in preview or another image viewer? Has it actually saved according to the size I specified?

    You want to view the image at the Print Size, which represents the size that shows in the Image>Resize Dialog.
    View>Print Size
    Since screen resolution is almost always lower that the print resolution (somewhere between 72 and 96 usually), images will always look bigger on the screen, unless you view them at print size.
    (apple Retina displays have a much higher resolution than normal screens, closer to the average print size resolution)
    more info:
    Photoshop Help | Image size and resolution

  • How to get list of custom objects used in abap report program?

    Hi friends,
    I have a requirement in which I have to scan the entire abap report and retrieve list of custom objects used in it for example custom tables, data elements, structures, table types etc,. Is there any provision in SAP like fuction modules to do this functionality?  As of now I am coding everything manually where so many possibilities are there for all kinds of objects. Provide your answers and suggestions...
    Thanks,
    Nastera

    Hi,
    The best way to do this is environment analysis. Follow the steps:
    1. Open se38, type in the program name (don't click on on display/change or create button, stay on first screen only)
    2. Click on environment analysis button (hot key SHIFT+F4)
    3. It will throw a pop-up, which will ask for type of object you want to see, which are linked /used by this program. select all (or may be if you are only interested in Tables, then select table only)
    4. Hit 'Enter'
    You will get the full list of all objects used in this report program. Just note down the one which starts with Z or Y and that's it.
    Cheers,
    Anid

  • Using custom cursor

    I want to use a cursor from file in my page. How can I do
    this?
    I've found:
    <style>
    <!--
    BODY{
    cursor:url("3dwmove.cur");
    -->
    </style>
    but works only in IE and for all page not only for a link for
    example.

    You can't. Custom cursors are a pain for your visitor, many
    (most? all?)
    of whom will not want to download and install something from
    a site.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Flesky" <[email protected]> wrote in
    message
    news:ehi23v$653$[email protected]..
    >I want to use a cursor from file in my page. How can I do
    this?
    >
    > I've found:
    > <style>
    > <!--
    > BODY{
    > cursor:url("3dwmove.cur");
    > }
    > -->
    > </style>
    >
    > but works only in IE and for all page not only for a
    link for example.
    >

  • Netbeans 6.1 won't use customized cursor .

    Hi , Have you guys tried the Netbeans 6.1 ?  If you have ever used netbeans ,you know what I am talking about.
    I wonder if anyone has encountered the same problem . when I expand the tree node in the project window or file window , the cursor changed into an waiting cursor , that normal ,but the waiting cursor isn't my customized cursor ,but the xorg's default black watch, I have the same problem when testing on windows , the waiting cursor in netbeans is the windows default large ugly one .
    why netbeans don't use my customized cursor instead of the system default one ? Do the developers of netbeans think all the linux users use the black watch cursor ?
    Have you encountered the same issue ?

    I just noticed the same issue with an Airport Express 802.11n (2nd) with version 7.6.3. I configured the primary and the secondary radius server on the Airport Express.
    With the primary radius server running WLAN login with WPA2/Enterprise worked fine.
    I then stopped the primary radius server and tried to repeat the WLAN login again and it failed. In the secondary radius server log there was no trace at all even when I started the radius server in debug mode.
    Because the Airport Express is in another subnet than the two radius server I enabled logging on my router firewall. I found only four retries for the primary radius server.
    This proves your result that the secondary radius server is never used.

  • TS1702 When I try and use the Kindle app on my touch it keeps telling me to register the kindle. I register it using the account and password I used to get the app but it tells me there is no customer found for the email address and password. help

    When I try and use the Kindle app on my touch it keeps telling me to register the kindle. I register it using the account and password I used to get the app but it tells me there is no customer found for the email address and password. help

    No, it is asking you to register with your Amazon user id and password. Your Apple ID won't work.

Maybe you are looking for

  • MacBook Pro start up disk full. Will not pass the grey screen

    Hi I didn't realized how close I was to fill the start up disk and now my mac pro will not boot. I have read many entries and try a few things but nothing has worked. I have the late 2011 MacBook Pro running Mavericks 10.9 Of the 499.25 GB I only hav

  • Adobe reader XI 11.0.05,running in Win 7 Pro 64-bit

    I have the black X upper left corner. When access a web sit , for example WWW.SSA.GOV and click in forms , then open a pdf link , a blank screen shows with a black x only. I tried many options to fix this problem but not success. If I try to open the

  • Lenovo G505S microphone jack

    There is none lol. When I bought this laptop, in the store there was 1x microphone jack. Lol not really. I have one gaming headset and I can't use it, becuse it's microphone and audio needs separate jacks. Any good suggestion, how to fix it?  Becuse

  • Synching of Apple TV to iTunes inconsistent.

    Some movies purchased on Apple TV have never synched to my iTunes account. TV shows and music purchased during the same time frame have all synched.  What am I missing?

  • Question about different query results with wildcard

    Hi, I'm working with a third party app on SQL Server 2000, and from what I can gather, programmed in C# & VisualFoxPro. When we search with     Note contains 94949 we get 571 results, when we search with     Note contains 94949* we get 575 results. T