Get Icon of a Cursor!!!

Hi All,
I need the image icon used by java for E_RESIZE_CURSOR type of cursor. I need a JLabel having this imageIcon. I saw the source code of Cursor.java. Seems like, it loads images from jdk1/3/jre/lib/iamges/cursors for some exclusive types of cursors. I could not find any image for this type of Cursor and few others.
I can have my own icon on the label, but it would be nice to have exactly the same image.
Any ideas?

That wont work coz' first of all, screencapture does not capture the cursor and second to that, I want my cursor icon to be dynamic. i.e, if the user changes the cursor style from settings panel, the icon should change.
I did some work here. Actually, Windows OS has all the images for cursors in C:\winnt\cursors folder. Java cursor class maps to these images through. Therefore, when we change mouse pointer style from Control Panel, the cursor on java side also changes. I want to simulate this on a imageicon/jlabel.
Thanks

Similar Messages

  • Having trouble threading frames, getting the wrong loaded cursor, not the chain-links

    Hi there, I am trying to thread frames, which hasn't been an issue for me previously. The cursor usually shows the chain link icon when hovering over the second frame, but today it is showing a square icon and when I try to click into the the second frame instead, it tries to create a new text frame. Any help is appreciated. Thanks!

    i had put the two text boxes on different layers before to show that they were separate frames, they actually live on one layer together.
    Re: Having trouble threading frames, getting the wrong loaded cursor, not the chain-links 

  • How do I get icons to show up on my iphone

    Before upgrading to IOS7, I had more icons showing. Missing several; when I search and type the name in, apps open up. How do I get icons to "reappear" on my phone?

    1)  Check in All Folders and on All Pages/Screens...
    2)  If no joy...
    Settings > General > Reset > Reset Home Screen
    3)  Also... Check in Restrictions... Settings > General > Restrictions
    Understanding Restrictions  >  http://support.apple.com/kb/HT4213

  • How to get icon of file

    Hi
    i have the following code
    // get selected file
    file = fileChooser.getSelectedFile();
    //get Icon for the selected file
    Icon icon = fileChooser.getIcon(file);
    //set Icon
    L_Icon.setIcon(icon);but the prob is i am getting the same icon for all the file type(for html, Doc,...),
    how can we get the icon accociated to file
    Regards
    Satinderjit

    Hi
    i have the following code
    // get selected file
    file = fileChooser.getSelectedFile();
    //get Icon for the selected file
    Icon icon = fileChooser.getIcon(file);
    //set Icon
    L_Icon.setIcon(icon);but the prob is i am getting the same icon for all the file type(for html, Doc,...),
    how can we get the icon accociated to file
    Regards
    Satinderjit

  • How can we get icon previews back for alternate media files?

    How - if ever - can we get icon previews back for alternate media files?

    For the folder you're in do you have the View option set as shown in this screenshot?
    What do you mean by alternate media files?
    OT

  • ITunes not showing GET prompt next to gray podcast that have not been down loaded.  This is an subscribed to podcast.  I click on it and it will download ... but where is the GET icon

    Not seeing the GET icon in the podcast window along the shaded(gray) podcast names in the window containing a subscribed to podcast.  Now if I click on one of these podcast it will download.  Typical behavior was that I would see a handful of podcast and if I choose to I could select GET ALL or individually select GET to download independent podcast.
    iTunes 10.5.2.11 Win7 64  
    Any reason not to do a complete iTuned uninstall and install?
    Any thoughts or sugestions?

    Did an uninstall and e re-install and I am now seeing ... GET

  • No matter what tool I choose, all I get is a hand cursor

    I recently installed Photoshop CS4 and didn't have any problems with the installation.  However, quite frequently the program gets into a mode where no matter what tool I choose all I get is a hand cursor.  I've tried logging off to correct the problem, but that doesn't work.  Rebooting the computer is normally sufficient.  I haven't determined any specific actions that always cause this circumstance to arise.  Does anyone have any ideas on what my problme might be?
    BTW, I'm running on Windows XP Pro, 32-bit, with 3.5 GB of memory and a 2GHz dual-core cpu.
    Thanks.

    This is my expereince as well.  I've never seen the problem in any other application and I've been using Photoshop for over 15 years, and this is the first version that I've encountered this problem.  And like you, when I switch to any other program the mouse and keyboard work just fine, so it is not a physical keyboard problem.
    But, if hitting the space bar a few times solves the problem, then I'm happy for now.
    Thanks all.
    Chuck

  • Getting column names from cursor

    Hi all
    I have procedure which produces list of applied for jobs web page(using htp. package)
    I got result in cursor, but have to provide dinamic sort, based on colimn pressed
    procedure my_application_list
    (pi_resume_num     in varchar2 default null
    ,pi_sort_col     in varchar2 default null
    ,pi_page_no     in varchar2 default null
    ,pi_action     in varchar2 default null
    ,pi_msg          in varchar2 default null
    is
    CURSOR cur_job IS
         SELECT      jtl.JOB_TITLE
              ,jtl.COMPANY_NAME
              ,a.APPLY_DATE
              ,a.lang
              ,a.job_id
         FROM job_tl jtl, applied_for_job a, gateway gt
         WHERE a.job_seeker_id=app.job_Seeker
         AND a.job_id=jtl.job_id
         AND a.lang=jtl.lang
         AND a.gateway=gt.gateway
         AND jtl.lang=(SELECT substr(MIN(lt.order_list||jtl0.lang),2) lang
                   FROM      job_tl jtl0
                        ,language_tl lt
                   WHERE jtl0.job_id = a.job_id
                   AND jtl0.lang=lt.lang
                   AND lt.gui_lang=app.language)
         ORDER BY pi_sort_col
    rest of code
    The columns displayed in web page are Job_title, Company_name and Applied_date
    This page is displyed well, bu without column nmes at the top. I am trying to get column names from cursor in order to have ORDER BY <pi_sort_col>
    can someone help how i can get those column names:Job_title, Company_name and Applied_date
    User will be able to click on column and sort
    Thank in advance .I appreciate any help

    Hi Francisco
    Here is my code
    CREATE OR REPLACE PACKAGE BODY cc_web_application_list
    IS
    TYPE COL_NAME_LIST IS TABLE OF VARCHAR2(100)
         INDEX BY BINARY_INTEGER;
    TYPE COL_ORDER_LIST IS TABLE OF VARCHAR2(30)
         INDEX BY BINARY_INTEGER;
    col_name_t col_name_list;
    col_order_t col_order_list;
    procedure my_application_list
         (pi_resume_num     in varchar2 default null
         ,pi_sort_col     in varchar2 default null
         ,pi_page_no     in varchar2 default null
         ,pi_action     in varchar2 default null
         ,pi_msg          in varchar2 default null
    is
    l_my_page_no      PLS_INTEGER :=     TO_NUMBER(nvl(pi_page_no,1));
    l_js_name          gam_user.username%TYPE;
    l_js_first_name          gam_user.first_name%TYPE;
    l_cnt                PLS_INTEGER := 0;
    l_scr_lines      PLS_INTEGER := 0;
    l_curline           PLS_INTEGER;
    l_jobs_applied           PLS_INTEGER;
    l_total_rec      PLS_INTEGER;
    l_total_pages      PLS_INTEGER;
    l_pos               PLS_INTEGER;
    l_first               PLS_INTEGER :=0;
    last                PLS_INTEGER :=0;
    l_lines           PLS_INTEGER := 10;
    col_name      VARCHAR2(100) := col_name_t(3) ;
    col_order           VARCHAR2(30) := 'DESC';
    str                VARCHAR2(2000);
    TYPE display_rec IS TABLE OF VARCHAR2(500) INDEX BY BINARY_INTEGER;
    display           display_rec;
    TYPE page_table_type IS TABLE OF PLS_INTEGER INDEX BY BINARY_INTEGER;
    page_number          page_table_type;
    CURSOR cur_job IS
         SELECT      jtl.JOB_TITLE job_title
              ,jtl.COMPANY_NAME company_name
              ,a.APPLY_DATE apply_date
              ,a.lang
              ,a.job_id
         FROM job_tl jtl, applied_for_job a, gateway gt
         WHERE a.job_seeker_id=app.job_Seeker
         AND a.job_id=jtl.job_id
         AND a.lang=jtl.lang
         AND a.gateway=gt.gateway
         ORDER BY a.apply_date;
    This decode is a problem
              decode(col_order,'ASC'
                   ,decode(col_name
                   ,col_name_t(1), jtl.job_title
                   ,col_name_t(2), jtl.company_name
                   ,col_name_t(3), TO_CHAR(a.apply_date, 'YYYYMMDDhh24miss')
                   ,a.apply_date)
                   ) ASC
              ,decode(col_order,'DESC'
                   ,decode(col_name
                   ,col_name_t(1), jtl.job_title
                   ,col_name_t(2), jtl.company_name
                   ,col_name_t(3), TO_CHAR(a.apply_date, 'YYYYMMDDhh24miss')
                   ,a.apply_date)
                   ) DESC
              ,a.apply_date
    TYPE rec_one IS TABLE OF cur_job%ROWTYPE INDEX BY BINARY_INTEGER;
    r               rec_one;
    BEGIN
    BEGIN
    SELECT username,first_name
    INTO l_js_name,l_js_first_name
    FROM gam_user
    WHERE user_id = App.job_seeker;
    EXCEPTION
    WHEN OTHERS THEN NULL;
    END;
    Cc_Pkg_Elements.p_page_top_job_seeker(
    'Personal Job List'
    ,REPLACE(Txt_Proc_My_Joblist.title_job_list
         ,'##first_name##',l_js_first_name),'N' ,TRUE ,'Pxx');
    ----- get numer of records returned by query
    SELECT COUNT(1)
    INTO l_total_rec
    FROM     job_tl jtl,applied_for_job a
         ,gateway gt
    WHERE a.job_id = jtl.job_id
    AND     a.job_seeker_id     = App.job_seeker
    AND     a.gateway     = gt.gateway ;
    ------get number of pages
    l_total_pages:=CEIL (l_total_rec/l_lines);
    l_jobs_applied := 0;
    col_name := pi_sort_col;
    col_order := pi_sort_col;
    --get first positions
    l_first := (nvl(l_my_page_no,1) - 1) * l_lines + 1;
    FOR rec IN cur_job LOOP
         l_cnt := l_cnt + 1;
         EXIT WHEN l_cnt > l_first + l_lines - 1;
         IF l_cnt >= l_first THEN
              l_scr_lines := l_scr_lines + 1;      
              r(l_scr_lines) := rec;          --assign counter from loop to r index
              IF rec.apply_date IS NOT NULL THEN
              l_jobs_applied := l_jobs_applied + 1;
              END IF;
         END IF;
    END LOOP;
    htp.p('<FORM ACTION="'||App.gateway||'8.my_application_list" METHOD="post">');
    htp.p('<table align="center">');
    htp.p('<tr><td>');
    IF r.COUNT = 0 THEN
         Web_Pkg_Elements.doc_msg(Txt_Proc_My_Joblist.no_jobs);
    END IF;
    htp.p('</td></tr>');
    htp.p('</table>');
    --table_heading(col_name ,col_order );
    htp.p('<table align=center>');
    htp.p('<tr align="center"><td>');
    FOR i IN 1..l_total_pages LOOP
         page_number(i) := i;
         IF page_number(i) = l_total_pages THEN
              htp.p('');
    ||'');
              Web_Pkg_Elements.doc_val_small(page_number(i)||'</A>');          
         ELSE
         htp.p('');
    |'||'');
         Web_Pkg_Elements.doc_val_small(page_number(i)||' |'||'</A>');     
         END IF;
    END LOOP;
    htp.p('</td></tr>');
    htp.p('</table>');
    htp.p('<table align=center>');
    FOR l_curline IN 1..l_scr_lines LOOP
         display(1) := NVL(r(l_curline).job_title, '<br>');
         display(2) := NVL(r(l_curline).company_name, '<br>');
         display(3) := NVL(Cc_Pkg_Nls.date2char(r(l_curline).apply_date, App.date_format), '<br>');
         IF MOD(l_curline, 2) = 0 THEN     
              Cc_Pkg_Elements.tr_even;
         ELSE
              Cc_Pkg_Elements.tr_odd;
         END IF;
         htp.p('<td>');
         htp.p('');
         Web_Pkg_Elements.doc_val(display(1)||'');
         htp.p('</td>');
         htp.p('<td>');
         Web_Pkg_Elements.doc_val(display(2));
         htp.p('</td>');
         htp.p('     <td>');
         Web_Pkg_Elements.doc_val(display(3));
         htp.p('     </td>');
    htp.p('</tr>');
    END LOOP;
    htp.p('</TABLE>');
    htp.p('<TABLE width="88%" BORDER="0" CELLPADDING="0" CELLSPACING="0"
                   align="center">');
    htp.p('<tr valign=bottom>');
    htp.p('<TD colspan=2 align=right>');
    IF l_my_page_no > 1 THEN
         htp.p('<P>'||'<IMG SRC="'||App.image||'prev.gif" ALT="'
         ||Txt_Proc_My_Joblist.prev
         ||'"'     ||' HEIGHT=20 BORDER=0 ALIGN=bottom '
         ||'hspace=2>');
    END IF;
    IF l_my_page_no < CEIL (l_total_rec/l_lines) THEN
         htp.p(' <a href="'||
         web_pkg_elements.link$$(App.gateway||'8.my_application_list?'
         ||'pi_sort_col='||Web_Pkg_Elements.replace_in_url(pi_sort_col)
         ||'&pi_msg=&pi_page_no='||TO_CHAR(l_my_page_no + 1)
         ||">'||'<IMG SRC="'||App.image||'next.gif" ALT="'
         ||Txt_Proc_My_Joblist.NEXT
         ||'"' ||' HEIGHT=20 BORDER=0 ALIGN=bottom '
         ||'hspace=2></a>');
    END IF;
    htp.p('</TD>');
    htp.p('</TR>');
    htp.p('     </TABLE>');
    htp.formHidden('pi_sort_col', pi_sort_col);
    htp.formHidden('pi_page_no', pi_page_no);
    htp.p('</FORM>');
    END my_application_list;
    END ; --cc_pkg_application_list

  • How do I get icons to desktop?

    How do I get icons to my desktop?Can I move some of the apps from Launchpad to my desktop?

    Go to your Applications folder, right-click on the application of your choice, left-click on "Make Alias", move the alias to your desktop.

  • How do I get icons to snap to grid?

    how do I get icons to snap to grid?

    Hi, is this on a Mac?
    One the Desktop or in a Finder Window, highlight one icon then select all, then choose Finder>View>Show View options.

  • How do I make the icons at the bottom of the macbook get bigger when the cursor rolls over them?

    I've checked in settings, but can't figure it out.
    thanks,
    judy

     > Dock > Turn Magnification ON

  • How Do I get icons image directory to work in a JAR file?

    Yes, I must admit after going through the tutorial and other stuff I am stiil stumped
    I have an application that uses the jlfgr icons for the toolbar, and it works fine as long as i actually run it from the directory that it is in.
    I would like to put in into a jAr file, and be able to execute it from other places.
    I have a Directory named PhoneBook
    in that are the classes I use
    AddressBook - the main class
    PersonEntry - The 'data class'
    and various other things like FileFilters.....
    inside that directory there are two more:
    images - contains all the icon images
    Data - where the default 'database' entries are stored.
    I use code like this:
         private void fillToolBar( JToolBar bar )
              Dummy = new JButton(new ImageIcon("images/New16.gif"));
              Dummy.setActionCommand("New");
              Dummy.addActionListener(this);
              Dummy.setToolTipText("New");
              bar.add( Dummy );
              // etc etc
    to get all the icons into the toolbar
    I have made a Jar file that has all the classes and all the directorys with the icons in it
    and so the program runs, but does not get the icons for the toolbar, I just get a whole load of 'dud' buttons.....
    AS this is the first time i've ever got the GUI to look right rather than just the code functioning properly
    I'd like to get the whole thing in a working Jar file
    So Could someone show me Step By Step, How I get my classes and images into a Jar file
    so that i can from a different directory go
    java - jar Phone.jar
    and have the GUI come up with all the images, assuming I'm totally thickheaded when it comes to Jar files.?
    I also can't get the images to show up if I merely run the 'program' from another directory than the one it is compiled in
    I can get the program to run, just not access the images with something like
    java -cp blah/blah/blah AddressBook
    {the main class is AddressBook }
    the data directory can be anywhere as I use a JFileChooser to allow the user to open and save desired files.
    I really would appreciate some clear workable help. {though I'm running out of Duke Dollars...}

    What you need is a correct path to the directory
    inside of the jar. This can be accomplished by adding
    a line to your main program like this:
    URL
    url=myProgram.class.getResource("images/New16.gif");
    Dummy = new JButton(new ImageIcon(URL));
    where myProgram.class is the name of the class
    file that contain the main method.
    Hope this helps....
    ;o)
    PS: I don't want your dukes...I got them coming out of
    my ears!
    O.K, that works thank you.
    I put something like:
    for all the 'buttons' in the toolbar
    URL url = null;
    Class ThisClass = this.getClass();
    url=ThisClass.getResource("images/New16.gif");
    Dummy = new JButton(new ImageIcon(url));
    Dummy.setActionCommand("New");
    Dummy.addActionListener(this);
    Dummy.setToolTipText("New Database");
    bar.add( Dummy );
    etc for all the rest of the 'buttons'
    After Reading the API docs on URL's etc I'm still not sure as to why it works, but it does....
    I am able now to place the class files in a jar along with the images and it all works fine
    although now I don't quite follow all my code....................
    I assume that
    url=ThisClass.getResource("images/New16.gif");
    returns some sort of 'relative url ' ???
    Thanks for the help though.

  • HP Smart Web Printing / IE8 / Windows Vista: Cannot get icon to appear!

    I've installed HP Smart Web Printing 4.5.1 in IE8 running under Vista SP2.  I cannot get the icon to appear.  Under Tools/Manage Add-ons, "Show or Hide HP Smart Web Printing" is reported as "enabled".  When I select "Show or hide HP Smart Web Printing" under the double arrows at the far right of the tool bar, nothing happens.  I see others have had some success at getting through this, but nothing seems to be working for me.  I've tried removing and re-installing the utility to no avail.  What do I have to do?

    Hey HP ...  Does anyone from HP monitor these posts and provide answers, as one might expect?  Is anyone listening?  Is anyone there?  Does anyone CARE?

  • How to get icon for hardrive(s) to show up?

    Hi--How do I get the icons for hardrive(s) to show up? Odd. Thanks!

    if your talking about on the desktop:
    go to dock, click on finder, go to the menu bar, click on the "Finder" menu, chose preferences. When Finder Preferences opens, click on the "General" icon from the toolbar. Under "Show these items on the desktop:" check "Hard Disks". You may want to check "External Disks," and CDs, DVDs, iPods and connected servers.
    cheers,
    -TT

  • The select function in Pages and other apps gets stuck and the cursor will not move. What do I do?

    The select function in Pages and other apps gets stuck when I touch a word and the cursor will not move. What is the answer for this problem?

    Try reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

Maybe you are looking for

  • Netbeans 6.0

    hello, i want to do some Ruby on Rails programming with the new netbeans 6.0 Milestone 9. To be able to test it directly and install a database i decided to do this on Archlinux. This is a fresh and up-to-date install of Archlinux. j2re and j2sdk are

  • Correlation Collect pattern in  SAP XI

    Hi,    Could some one please clearly and simply explain me about the correlation and collect pattern in BPM. Your help is really appreciate.

  • Setting the username & password for the plain http adapter.

    Hi, When i am passing in an HTTP request into the integration engine's plain_http adapter url, i am required to give a username and a password for authentication. Is it possible to set this username and password globally some where, to avoid this to

  • Approve Time Sheet data

    Hi friends, I am getting problem when trying to "Approve Time Sheet data " from MSS. I am not using Work flow but the link given in MSS Team. When i am clicking on the link  the first page is comming and i can see the requested working time for appro

  • Sharing a collection online

    I have adobe photoshop album starter ed. 3. I want to share a collection online for a group to access it. After attempting this, it seems like I need the collection in a file in order to bring it over to the program to create the online access. How d