How to show icon  when draggin

HI m
my requirement is to show the icon of the dragging component's icon(currently jlabel with gif as icon )during drag and drop operations
how to achieve this objective, as DnD api donot suppurt this thing
[email protected]

I normally use a calculated attribute inside the table's data source node for this.
Add an attribute "Icon", type=string, calculated=true, read-only=true, under the data source node.
(If the data source node uses structure binding and does not allow to add an attribute, add a helper value node instead, cardinality=1:1, selection=1:1, and add the attribute to this node.)
In the get-method for the calculated attribute, you get the node element corresponding to the table row as parameter. Depending on other attributes in this node element, select an icon URL and return it.
If you put your icons inside the src/mimes/<component> folder, you can simply return the file name of the icon.
Don't use a Button as table cell editor but rather an Image or LinkToAction.
Armin

Similar Messages

  • How to "Show notifications when display is off"

    Hi,
    In Mavericks Beta the notifications from Mail, Messages, Facebook etc. were displayed even when the screen was turned off. It lit up the screen for a while showed the notification for few seconds and then the screen was turned off again. I really liked that feature cause I could see whats happening on my iMac even if I wasn't using it.
    In this Apple document this feature is still described http://support.apple.com/kb/PH14360?viewlocale=en_US&locale=en_US
    Show notifications when display is off or locked
    Get alerts when your display is off or your Mac is locked.
    But the option to enable it is no longer in the Notifications settings, instead there is "Show notifications on lock screen".
    So please let me ask, is there some possibility to show notifications on turned off display? Maybe by editing some preference file or something like that?
    Thank you very much for answers.
    Best Regards
    Milan

    I too would like to know a way around this problem. In the prior version of iCal, you could enable alarms only when iCal was running. I routinely sync three computers, sometimes hours to days apart. So unless I remember to turn alarms off prior to shutting down the machines, the alarms are not properly updated upon syncing when an idle machine is turned back on.
    Hope this makes sense. Either way, it would have been better if Apple had not gotten rid of this feature in the new iCal.
    Eddie

  • How to show icon image on Unix

    I the Button Icons are fine on NT machines. When I move the application to a Unix machine, the icons won't show up. How do I set up to let them show up? Any suggestion? Thanks.
    -- [email protected]

    Hello,
    This plugin Does Exactly What You Need.
    http://www.apex-plugin.com/oracle-apex-plugins/item-plugin/extension-warp11-gmaps-item_109.html
    Please read the comments on the plugin, in case you come across problem in running the plugin....
    Best Regards,
    Fateh
    If you believe that my answer was correct, then please mark the answer as correct. This is for the best of all

  • How to show icons in ALV grid ...

    Hi guyz ,
      A lill query ....
      In an ALV gird ,if i need to display icons in one of the columns , say i have
      a field called Status , where i need show some icons like green , yellow and
      red circles , depending on some other fileds say invoice reciept date .
      So can i get icons in ALV colums.
      Please advise .
    Thanks
    Jahan

    This is very easy.  IN your status field in your internal table, you simply write the icon to it.  Make sure that the status field is defined as a character field with a length of 4.  Then write the icon to it.
    Type-pools: icon.
        write icon_green_light as icon to itab-status.
    Then when filling the field catalog, set the ICON flag.  This puts the icon in the center of the cell in ALV.
      xfc-icon     = 'X'.
      append xfc to ifc.
    Regards,
    Rich Heilman

  • How to show icons on a new page or tab? like in chrome or IE 9?

    Im a new firefox user, and I would like to have icons of the webpages I visit often whenever I open a new tab. Is this possible in Firefox? and how to do so?

    Middle-click or {Ctrl + click} a link to have it open in a new tab.
    Or, right-click the link and select '''Open Link in a New Window''' (or New Tab).
    Window size isn't going to change when opening a link, if you want it Maximized, that is a separate click if the original window isn't already Maximized.
    Full Screen is window by window, and is toggled by '''F11'''.

  • How to show news when click on image in show form

    Hi,
    i have created layout of news item &in it i added one image.But i want to show the specific news or document related to that image stored in KM ,when i click on that image. please tell me how to do that step by step.

    Hi Vishal,
    Jus gothrough this Link step by step,
    <b><a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ee639033-0801-0010-0883-b2c76b18583a">XML Form Builder</a></b>
    Regards,
    Mythili

  • Program doesn't show icon when run from JAR

    Hello,
    I have a working program with menu and toolbar buttons with icons. When I compile and run the JAR it runs fine with all icons showing up. The icons are located in a folder named icons. They are referenced inside the Java code by "icons/iconName.png". However, after I make a JAR file of the program, it runs normally, but the icons do not show up.
    I use the command line command :
    jar cvfm Program.jar manifest.txt *.class"
    Then I open the JAR with WinRar and place the icons folder in the archive.
    My manifest.txt looks like this:
    {code}Manifest-Version: 1.0
    Class-Path: .
    Main-Class: MyMainClass
    SplashScreen-Image: splash.png{code}
    Any ideas what I did wrong?
    Thanks.

    I was having similar problems. If you use an IDE, such as NetBeans BE SURE to copy that image/ folder into the build/classes in the right place in the hierarchy. In any event, not having resource files such as textfiles and images over in the classes will prevent the IDE from executing a java run. That is obvious and easy to remedy.
    And then the discovery: what works in .class files won't work in .jar. I found this link and tried the following code in a synchronized thread (you want the images loaded before going further with any inits such as frame.setLocation(), or panel.setSize(), etc.):
    ClassLoader cldr = this.getClass().getClassLoader();
    URL imageURL   = cldr.getResource("images/usa_small.png");
    icons[x] = new ImageIcons(imageURL);Where I found it:
    [Class Loaders|http://bits.netbeans.org/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/classpath.html]
    That will help you on the implementation of proper technique. Not sure about adding files to .jar "after the fact".

  • How to show icon in a column of a table?

    How to display an icon in a column of a table UI element and this icon is to be displayed based on values in the table row?

    I normally use a calculated attribute inside the table's data source node for this.
    Add an attribute "Icon", type=string, calculated=true, read-only=true, under the data source node.
    (If the data source node uses structure binding and does not allow to add an attribute, add a helper value node instead, cardinality=1:1, selection=1:1, and add the attribute to this node.)
    In the get-method for the calculated attribute, you get the node element corresponding to the table row as parameter. Depending on other attributes in this node element, select an icon URL and return it.
    If you put your icons inside the src/mimes/<component> folder, you can simply return the file name of the icon.
    Don't use a Button as table cell editor but rather an Image or LinkToAction.
    Armin

  • How to show icons startup manager

    Hi !
    I'm gooing to try a multi boot hard drive. There is a Mac OS X 10.5 boot, a Mac OS X 10.6 boot, a Mac OS X 10.7 boot and an OS X 10.8 boot.
    For 10.5 and 10.6 Boot the volumes icons are showed, but not for 10.7 and 10.8.
    I have just do apple-c / apple-v to the information window volume.
    Have you a solution for this issue ?
    Thanks

    When you start the computer holding down the 'option' key you should see all bootable drives, but I'm not sure about having so many different OSs on the same system. Might confuse the startup manager.
    Remember that there will be at least two partitions for each of 10.7 and 10.8 (if they both have their own recovery partition), plus possibly one or more efi partition. The maximum number of partitions is 7, so its possible that you've exceeded this. To find out, open Terminal and type
    diskutil list
    which will list all mounted and unmounted partitions.
    If that's not it, Try using rEFIt - that works well with incompatible EFI boot files (like mixing windows, linux and OS X).

  • How to show speed, when only using maps

    Hi
    I have a 5230, I will like to see the speed I am driving, only using map, but no destianation, is that posible and how.
    Br/ 

    Ah, depending on how new the car model is, the speedometer is more accurate.
    Anyway, as of the moment Ovi Maps is incapable of doing what you're asking. However you can however simply put the navigation volume at 0, set a random destination and drive around. Just ignore the blue line in the navigation.
    You do know where you are going, so why dont you just set that as the destination when you drive? I mean, that's what the Nav system is for right?
    If you find my post helpful please click the green star on the left under the avatar. Thanks.

  • Anyone know how to show icon of a button in webforms?

    My form have several buttons with an icon.
    I create a item named 'UI_ICON' and set the value the directory of icon path. But when I deplop the form on the webserver or run the from IE 5.0. There are are no image shown.
    BTW: I have converted the image format from .icon to .gif.
    Anyone can help me?
    Thanks a ton.

    To specify directory path and image format for iconic button image files:
    1.Open the Registry.dat file in a text editor.
    2.Add the following lines to Registry.dat:
    <app_class>.icons.iconpath=<path>
    <app_class>.icons.iconextension=<format>
    Replace <app_class> with a valid application class referenced by your Web
    application.
    Replace <path> with one of the following:
    a fully-qualified URL that points to any directory on any server:
    inv_form.icons.iconpath=http://abc_dev.com/html/icons/
    a virtual directory on the same server from which the HTML page
    downloaded:
    inv_form.icons.iconpath=/icons/
    a directory relative to the directory from which the HTML page was
    downloaded
    (non-cartridge implementations only):
    inv_form.icons.iconpath=icons/
    Replace <format> with gif (for GIF files) or jpg (for JPEG files). For
    example:
    inv_form.icons.iconextension=gif
    Default Settings:
    If you do not specify a directory path or image format for an application
    class, Forms uses the default settings in the Registry.dat file:
    default.icons.iconpath=
    default.icons.iconextension=gif
    Solution Explanation:
    =====================
    Application classes enable you to specify the directory path and image format
    (GIF or JPEG) of image files for iconic buttons.
    Using application classes is optional, since Forms supplies default settings
    for the icon path. Use application classes if you wish to create a number of
    different settings that you can alternate between by switching a single
    reference in your application's cartridge settings, cartridge HTML file, or
    static HTML file.
    At runtime, Forms first looks for settings that correspond to the specified
    application class (if any). If no application class settings exist, Forms uses
    default settings. By default, Forms will search for iconic button image files
    in the directory from which the application's HTML file was downloaded, and
    will append ".gif" to the filename provided in your form. By default Forms
    will only search for .GIF images, but you can switch to using .JPEG images in
    the Registry.dat file.
    To create settings for an application class, you must add the appropriate
    settings to the Registry.dat file.
    Regards
    Grant Ronald
    Forms Product Management

  • How to show playbar when exported to flash?

    When published as .swf(TEST_1.swf) and run it, the playbar appear. but when i load it inside loader (jumpeye loader component) and run it(base.swf), i can't see the playbar. How to include playbar so that i can combine all swf in one, easy for navigation and loading specific file?

    Kglad, you are my HERO!
    Thanks so much for your reply, I did not know about the embed options within flash...
    Mike

  • How to show alignment when manually adding an artboard

    Hello, working on illustrator cs5 i used to add multiple artboards. When i was doing so when holding an artboard when dragging it around  it showed a guide that indicated if the artboard i was about to place was aligned with the above one or the side one. Now it suddenly doesn't do that and its very hard to add an artboard exactly aligned to the rest of the artboards i have
    Can anyone please help!

    Hi, no they weren't. I might have accidentally turned them off. Now it works ! thank you so much !

  • How to show icons in Kanban Board User-exit1 field ?

    Hello everybody !
    I need to fill the field "User-exit1" of Kanban Board with an icon (green, yellow or a red light), but I noticed that this field accepts only text..... How can I do that ??
    Thanks a lot !
    Mauro.
    Edited by: Mauro Ivo Nass on Oct 14, 2011 1:16 PM

    The reason it's not converting it to an icon is because the data element is using TEXT data type which is preserves the case (lower/upper case) of the string entered and is seen only as text and no conversion can happen (please double click on TEXT60 to investigate further).  It's like the difference between MAKTX and MAKTG  in the table MAKT
    Since you cannot change SAP standard data elements because they may be used in other programs also. You need to add a field to the structure with data element that uses CHAR data type which can use conversion exits to display the icons.
    Edited by: Jeevan Sagar on Oct 18, 2011 12:13 PM
    EDIT: I just tested by changing the material description of a material as @5B@ and in display mode (MM03) and in table MAKT (SE16N) it's display the green LED. So data type should not be the problem.
    Are you trying to display it on the SAP screen or on browser/ third party software?
    Edited by: Jeevan Sagar on Oct 18, 2011 12:21 PM

  • New tab page only shows icons when I open a new window, not when I open additional tabs within existing window. Help!

    When I click the + sign to open a new blank tab, I don't see any of my favorite / pinned websites. I can only see this when I start a new browser window, and only for the "landing page". Once I go to any other page, I can not get my new tab page with tabs to display.

    I fixed it. I went into about:config and had to change browser.newtab.url to about:newtab
    Thanks though! Marking as solved, have a great day

Maybe you are looking for