Setting icon for MII version 12.1.x custom action

Hi,
i tryed to set icon image for custom action for MII version 12.1.x but i did not achieve.
How can it be done?
Thanks.

Hello,
I have done it in 11.5. This is how I did it in 11.5. (I am hoping that it has not changed in 12.1)
//funciton for specifying icon
public String GetIconPath() {
        return "com/path/to/icons/imagename.png";
Store your image file in the following way
com/path/to/icons and name that as imagename.png
There is also a blog on it
/people/rupesh.bajaj/blog/2007/12/04/beginners-guide-to-create-custom-action-block
I hope it helps.
Regards,
Musarrat
Edited by: Musarrat Husain on May 17, 2011 12:18 PM

Similar Messages

  • Setting icon for buttons in labview 6i

    Hi All,
    Currently i am working on Labview 6i. i created two buttons in my vi one button is used to perform the test, another will be used to exit from the test. i would like to add icons for those buttons. can anyone tell me how to add icons for buttons.
    Thanks,
    kalpana

    You realize that LabVIEW 6.0 is at least 15 years old? That would be almost equivalent to working with a Windows 98 machine nowadays!
    Yes your picture can't be imported in LabVIEW 6.0 on my machine either. I haven't checked about all the details, but the LabVIEW import in 6.0 doesn't seem to work for png and gif images but only for bmp. Newer versions do work for your png file including honoring the transparency at least since version 7.1.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Setting icon for the JMenuItem

    I am trying to set the Icon for the JMenuItem and not able to do so.
    I have the Images directory in the classes which has all the images. Is this the way to give the dir path. When do I give '\' and when do I give '/' or'//' or'\\'? Thanks.
    I gave
    JMenuItem mnuitmFileNew = new JMenuItem(new ImageIcon("Images//new.jpg"));
    and later in Jbinit() method I have this.
    mnuitmFileNew.setMnemonic('N');
    mnuitmFileNew.setText("New");
    mnuitmFileNew.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    mnuitmFileNew_actionPerformed(e);
    });

    Hi,
    I'm not sure if you've seen this yet:
    http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html
    If you still have any questions please post again.
    Regards,
    Matt
    Java Developer Technical Support
    Sun Microsystems

  • How do I disable the tray icon for firefox (version 5)

    I want to get rid of the tray icon for firefox 5.

    I should also add this info for all to see clear as part of my question (can be seen in More system details too):
    I liked that version, was the first ever FireFox browser I tried and because of it made it my number 1 browser. There have been a heck of a lot from 3.6 to 18 though I think we’d all agree. Progress can and often is messy, but worth it.
    Which is fine except mine, a different version, up-to-date plugins – and I’ve still same problem as these guys. It’s exactly the same even for me who has updated: How do we get rid of the Plugin Check Screen every time we start FireFox? I know I am up-to-date – as it tells me every single time!
    I agree everyone should be up-to-date with the software and this may very well be the case that solves a lot of people with lower versions – yet I can say I updated from version 12 to the latest 18, spent the time getting half a dozen different updates as it wanted (all of which are supported according to the link you provided) plugins and yet I am still having the same problem as users with 3.6 and older plugins! Went back to version 12.0 and I am getting the problem since installing version 18.
    Therefore from the fact I’m still getting the popup every time telling me everything is updated and safe, which is lovely to know, still doesn’t change the fact it won’t go away! Not a major problem but it is getting tedious now every single time.
    Like I say I am willing to wait and see if this gets fixed anyway which to be fair, FireFox seem to do a lot better than the competition. If it doesn’t though I’d still rather go back to an older version just to be rid of it! But not even that is now working to be gone of it! It’s gotten that ridiculous for me now too!
    :)

  • Globally setting icon for a file type

    I've been using LilyPond a lot recently. The .ly files it saves don't have their own icon, though, they just get the generic document icon. I know that I can manually set an icon for a single file using 'Get Info', but it's not practical now because I have so many .ly files. Is there a way I can tell OS X to use my own icon every time it sees a .ly file?
    Thanks,
    (- Steve -)

    Hi, Stephen.
    If by LilyPond you mean this application, it's the application's responsibility to assign the custom icon for files it creates, e.g. .ly files you edit and save in LilyPond. You might want to send feedback concerning this to the developers. However, as I understand the application based on a quick review of its manual, it can work with any plain-text (ASCII) file.
    You can change the default application in which all .ly files open by using the instructions in "Mac OS X 10.4 Help: Changing the application that opens a document." That may result in those files bearing the same icon as the LilyPond application. That is also the mechanism by which a given icon is assigned to all files of a given type.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • How do I remove the icon for file version 4.42.0.0 since it will not even download?

    For quite awhile I have successfully used file version 34.0.5 with no issues. Recently, I had an icon the popped up on my desktop for file version 4.42.0.0. I tried to download it, just so it would move to my control panel, so I that I could uninstall it, It will not download. So, then I uninstalled, and reinstalled 34.0.5 to see if that would solve the issue of installing 4.42.0.0, no still nothing. I really don't want or need 4.42.0.0, so how do I get rid of it ?

    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/viruses/disinfection/5350 Anti-Rootkit Utility - TDSSKiller]
    * [http://general-changelog-team.fr/en/downloads/viewdownload/20-outils-de-xplode/2-adwcleaner AdwCleaner] (for more info, see this [http://www.bleepingcomputer.com/download/adwcleaner/ alternate AdwCleaner download page])
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • [SOLVED] Set icons for applications in XFCE

    Hi,
    I was wondering if I can specify the icons for applications. Currently my gVim is using a "general" icon when in the panel but has the right icon when I create a launcher. This is how it looks like. Any suggestions?
    Thanks!
    Last edited by dsdeiz (2011-01-10 00:50:57)

    Hi,
    Yep, I have a gvim.desktop in /usr/share/applications. What it contains is:
    Type=Application
    TryExec=gvim
    Exec=gvim
    Icon=gvim
    Terminal=false
    Type=Application
    TryExec=gvim
    Exec=gvim
    Icon=gvim
    Terminal=false
    There is also gvim.png in /usr/share/pixmaps.

  • Setting icon for the attachment

    Anyone know how to set the icon of the attachment?
    I have no problem sending attachment (in this particular case of *.xls files), but the email I received using NOTES shows a default grey box with the correct file. Tried using NOTES to send Excel attachment, and it showed up with a nice icon indicating Excel file. How can I do the same? Thanks in advance.

    I have had a similar problem and have not been able to determine whether the problem is related to Windows XP Pro, Lotus Notes 5.0.11, or Microsoft Office/OpenOffice. A search of the Internet turned up a number of related issues (attachment icon is missing/invisible, etc).
    The Java program I use to email attached files used to work without any problems, but sometime after I moved to an XP workstation, installed Open Office, and applied XP Service Pack 1, the attachment icons (at least for some file types) became invisible. I can't help suspect that the problem lies in XP or Office, but I have not been able to determine that for sure.
    FWIW: A suggested workaround (from the Lotus Notes forum) is to change your screen display from 32 colors to 16 colors. This has helped make the attachment icons visible when sending mail from Notes, but it has not helped the Java Mail attachments become any less invisible. Maybe the next step would be to go to a monochrome display?

  • Set Icon for toggle button

    I created Icon with Borderpane, image and text which I want to set as button icon.
    @Override
        public void start(Stage primaryStage)
            final VBox vbox = new VBox();
            // create 3 toggle buttons and a toogle group for them
            ToggleButton tb1 = new ToggleButton();
            tb1.setGraphic(newConnectionIcon());
            ToggleButton tb2 = new ToggleButton();
            ToggleButton tb3 = new ToggleButton();
            final ToggleGroup group = new ToggleGroup();
            tb1.setToggleGroup(group);
            tb2.setToggleGroup(group);
            tb3.setToggleGroup(group);
            // select the first button to start with
            group.selectToggle(tb1);
            final Rectangle rect1 = new Rectangle(300, 300);
            rect1.setFill(Color.DARKOLIVEGREEN);
            final Rectangle rect2 = new Rectangle(300, 300);
            rect2.setFill(Color.LAVENDER);
            final Rectangle rect3 = new Rectangle(300, 300);
            rect3.setFill(Color.LIGHTSLATEGREY);
            tb1.setUserData(rect1);
            tb2.setUserData(rect2);
            tb3.setUserData(rect3);
            group.selectedToggleProperty().addListener(new ChangeListener<Toggle>()
                @Override
                public void changed(ObservableValue<? extends Toggle> ov, Toggle toggle, Toggle new_toggle)
                    if (new_toggle == null)
                    else
                        vbox.getChildren().set(1, (Node) group.getSelectedToggle().getUserData());
            HBox hBox = new HBox();
            hBox.getChildren().addAll(tb1, tb2, tb3);
            hBox.setPadding(new Insets(10, 10, 10, 10));
            vbox.getChildren().addAll(hBox, (Node) group.getSelectedToggle().getUserData());
            StackPane root = new StackPane();
            root.getChildren().add(vbox);
            Scene scene = new Scene(root, 800, 850);
            primaryStage.setScene(scene);
            primaryStage.show();
        private static BorderPane newConnectionIcon() {
            // Add background effect
            DropShadow ds = new DropShadow();
            ds.setOffsetY(2.0);
            ds.setOffsetX(2.0);
            ds.setColor(Color.GRAY);
            // New BorderPane which will hold the components
            bpi = new BorderPane();
            bpi.setEffect(ds);  // Add the effect
            bpi.setCache(true);
            // Set the size of the BorderPane
            bpi.setPrefSize(30, 30);
            bpi.setMaxSize(30, 30);
            // Add style       
            bpi.setStyle("-fx-background-color: linear-gradient(#f2f2f2, #d4d4d4);"
                    + "  -fx-background-insets: 0 0 -1 0, 0, 1, 2;"
                    + "  -fx-background-radius: 3px, 3px, 2px, 1px;");
            // Add Label to the Icon
            Text inftx = new Text("New Connection");
            inftx.setFont(Font.font ("Verdana", 5));   // Set font and font size
            inftx.setFill(Color.WHITE); // Set font color
            ncpic.setFitHeight(25);    // Set size of the Icon picture
            ncpic.setFitWidth(25);
            // Internal StackPane which will hold the picture and the Icon Label
            StackPane stack = new StackPane();
            stack.getChildren().addAll(ncpic, inftx);   // Add the picture and the Label
            // Add the StackPane to the main BorderPane       
            bpi.setCenter(stack);
            // Change the border of the Icon when the mouse is over the Icon
            bpi = mouseOver(bpi);
            // Navigate to new Panel when the user clicks on the Icon
            bpi.setOnMouseClicked(new EventHandler<MouseEvent>() {
                @Override
                public void handle(MouseEvent t) {
            return bpi;
    How I can remove the default togglebutton and use the my custom icon as a button?

    Yes, they are icons and they are called "handles". The easiest way to change then is to use UIManager.
    If you haven't done so before, look through the hash table UIManager.getLookAndFeelDefaults().
    import java.awt.*;
    import java.net.*;
    import javax.swing.*;
    public class TreeIcons {
         public static void main(String[] args) throws MalformedURLException {
              String prefix = "http://forum.java.sun.com/images/";
              UIManager.put("Tree.openIcon", new ImageIcon(new URL(prefix + "dont_save.gif")));
              UIManager.put("Tree.closedIcon", new ImageIcon(new URL(prefix + "save.gif")));
              UIManager.put("Tree.leafIcon", new ImageIcon(new URL(prefix + "forum_new.gif")));
              UIManager.put("Tree.expandedIcon", new ImageIcon(new URL(prefix + "email_faded.gif")));
              UIManager.put("Tree.collapsedIcon", new ImageIcon(new URL(prefix + "email.gif")));
              JFrame f = new JFrame("TreeIcons");
              f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              f.getContentPane().add(new JTree());
              f.setSize(new Dimension(300,400));
              f.setLocationRelativeTo(null);
              f.setVisible(true);
    }

  • How to set icon for .lnk on PPC

    I'm using the Mysaifu JVM and I would like to know how to set an icon of my choice for the shortcut file to my application (.lnk). Currently, the Mysaifu character shows up as the icon.
    On a previous post, I found out how to run my java application using the following text in my .lnk file:
    255#"\Program Files\Mysaifu JVM\jre\bin\jvm.exe" -Xhidevmwindow -Xmx5M -jar "\My Documents\DeliveryOrganizer.jar" DeliveryOrganizer
    Please help!!!
    Your help would be much appreciated!
    Thanks!

    I don't think you're going to have much luck modifying the original link, since the jvm.exe is what the link is pointing to. Windows Mobile is getting its icon from the jvm.exe, and not the DeliveryOrganizer jar file.
    However, you might look into creating a separate .lnk file, that then calls your original .lnk file that executes the jvm.exe. See if Windows Mobile allows you to modify the new .lnk file's properties...

  • How to set icon for JTree

    hi,
    I have a JTree. For this JTree i have a DefaultJTreeCellRenderer.
    i have done like this
    JTree tree = new JTree();
    DefaultJTreeCellRenderer renderer = new DefaultJTreeCellRenderer();
    renderer.setOpenIcon(....);
    renderer.serCloseIcon(...);
    tree.setCellRenderer(renderer);but this is not working.
    how to change the icons of the node when i click
    thank you

    public class Test extends JFrame implements ActionListener {
         private static final long serialVersionUID = 1L;
         private JButton buttonCreate;
         private JTree tree;
         private DefaultMutableTreeNode defaultMutableTreeNode;
         private DefaultTreeModel defaultTreeModel;
         private int i;
         public Test() {
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              layoutComponents();
              setSize(400, 400);
              setLocationRelativeTo(null);
              setVisible(true);
         private void layoutComponents() {
              defaultMutableTreeNode = new DefaultMutableTreeNode("Root");
              defaultTreeModel = new DefaultTreeModel(defaultMutableTreeNode);
              tree = new JTree(defaultTreeModel);
              tree.setRootVisible(false);
              buttonCreate = new JButton("Create");
              getContentPane().setLayout(new BorderLayout());
              getContentPane().add(tree, BorderLayout.CENTER);
              getContentPane().add(buttonCreate, BorderLayout.SOUTH);
              DefaultTreeCellRenderer renderer = new DefaultTreeCellRenderer();
              ImageIcon icon_close = new ImageIcon("./images/project_closed.gif");
              ImageIcon icon_open = new ImageIcon("./images/project_opened.gif");
              renderer.setOpenIcon(icon_open);
              renderer.setClosedIcon(icon_close);
              tree.setCellRenderer(renderer);
              buttonCreate.addActionListener(this);
         public static void main(String[] args) {
              new Test();
         public void actionPerformed(ActionEvent e) {
              addElementToParent("Child" + i++);
         private DefaultMutableTreeNode addElementToParent(Object theChild) {
              return addElementToParent(defaultMutableTreeNode, theChild, true);
         private DefaultMutableTreeNode addElementToParent(DefaultMutableTreeNode theParent, Object theChild, boolean shouldBeVisible) {
              DefaultMutableTreeNode childNode = new DefaultMutableTreeNode(theChild);
              if (theParent == null) {
                   theParent = defaultMutableTreeNode;
              defaultTreeModel.insertNodeInto(childNode, theParent, theParent.getChildCount());
              TreePath childTreePath = new TreePath(childNode.getPath());
              //          Make sure the user can see the lovely new node.
              if (shouldBeVisible) {
                   tree.scrollPathToVisible(childTreePath);
              tree.requestFocusInWindow();
              return childNode;
    }this is the code which i was trying to execute.
    here i want to explain you is
    when i click the node the icon should change to open_icon
    when i click the other node the previous node icon should change to close_icon
    how is this possible
    null

  • Setting Icon for MenuItem

    I wanted to set an icon image along with a label in MenuItem(AWT). I am not using swing component (JMenuItem). Could any one advice me how to do this.
    Thanks in advance.

    As far as I know you can't set an icon in a MenuItem object. MenuItem extends MenuComponent, which extends Object. None of which have a paint or paintComponent method which you can modify. Maybe you can extend MenuItem and create a class with a paintComponent method?
    Sorry

  • Set icon for toggle control of JTree node.

    hi.
    Just a question.
    I am looking towards setting the icons of the JTree by this i mean the icon that you click on
    to open say a node .
    I know you can set the icons of the nodes by setIcon inside your TreeCellRenderer but i doubt that
    that will set the icon that is to the left ot your label.
    Has anyone gone down this path recently.
    The class BasicTreeUI has a method
    called paintExpandControl( Graphics g,
    Rectangle clipBounds,
    . Insets insets,
    Rectangle bounds,
    TreePath path,
    int row,boolean isExpanded,
    boolean hasBeenExpanded,
    boolean isLeaf)
    Hopefull this is a method that can paint the toggle node so has anyone subclassed BasicTreeUI and done something like this recently.
    Any advise on the topic is really appreciated.
    Thank you.

    Yes, they are icons and they are called "handles". The easiest way to change then is to use UIManager.
    If you haven't done so before, look through the hash table UIManager.getLookAndFeelDefaults().
    import java.awt.*;
    import java.net.*;
    import javax.swing.*;
    public class TreeIcons {
         public static void main(String[] args) throws MalformedURLException {
              String prefix = "http://forum.java.sun.com/images/";
              UIManager.put("Tree.openIcon", new ImageIcon(new URL(prefix + "dont_save.gif")));
              UIManager.put("Tree.closedIcon", new ImageIcon(new URL(prefix + "save.gif")));
              UIManager.put("Tree.leafIcon", new ImageIcon(new URL(prefix + "forum_new.gif")));
              UIManager.put("Tree.expandedIcon", new ImageIcon(new URL(prefix + "email_faded.gif")));
              UIManager.put("Tree.collapsedIcon", new ImageIcon(new URL(prefix + "email.gif")));
              JFrame f = new JFrame("TreeIcons");
              f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              f.getContentPane().add(new JTree());
              f.setSize(new Dimension(300,400));
              f.setLocationRelativeTo(null);
              f.setVisible(true);
    }

  • Problem when setting icon for Jframe.....

    Hi.....
    Iam trying to change the icon of jframe.Iam using the following code.
    Toolkit tk = frame.getToolkit();
    Image ic = tk.getImage("icons/abc.ico");
    frame.setIconImage(ic);
    But iam unable to see the icon.In the place of icon empty box is coming.
    Any help regarding this will be highly appreciated.
    Thanks and Regards,
    Kumar.

    dunno if you can use an ico format, try gif, tif et al
    thomas

  • Jdeveloper set up for MSCA(Mobile supply chain application) custom page

    Hi Everyone,
    Can anyone provide me with the jdeveloper setup instructions to write class files for MSCA Application. I was trying to redo the helloworld tutorial from anil passi.com(http://oracle.anilpassi.com/hello-world-mobile-supply-chain-application-framework-6.html). But when i write import statements as below, jdeveloper does't recognize these import statements and throws error when i try to compile.
    import oracle.apps.inv.utilities.server.UtilFns;
    import oracle.apps.mwa.beans.FieldBean;
    import oracle.apps.mwa.container.Session;
    import oracle.apps.mwa.eventmodel.AbortHandlerException;
    import oracle.apps.mwa.eventmodel.DefaultOnlyHandlerException;
    import oracle.apps.mwa.eventmodel.InterruptedHandlerException;
    import oracle.apps.mwa.eventmodel.MWAEvent;
    import oracle.apps.mwa.eventmodel.MWAFieldListener;
    The steps I did in jdeveloper are:
    1) Created OA Workspace
    2) Create project under it with a package structure xxx.oracle.apps.inv.customfunction.server
    3) Right click on project and selected New Java Class file
    4) Wrote code in the java class file.
    So what exactly i should do so that i can compile my code in jdeveloper without errors. ( I know that we have to deploy these files to apps instance inorder to execute. I just want to compile it in jdeveloper).
    Thanks
    Sunny
    Edited by: user13369509 on Mar 16, 2011 8:49 AM

    my issue is resolved. i'm getting this problem when i add just java class file to the project. but when i also add the business componets and page component and generate controller class to the project , i can see that import is recognized by the java class file. So i guess i have to delete all the unwanted business components that i have created at the end.
    Thanks
    Sunny
    Edited by: user13369509 on Mar 16, 2011 12:44 PM

Maybe you are looking for

  • How can I speak to a customer care representative ...

    In summary; I have 2 phone lines and 2 broadband providers and decided to cancel one of the phone lines and one of the broadband providers..............I am now regretting the decision to remain with BT as my broadband provider, as despite being told

  • Why can't I get my phone to sync to 2 different pc's

    I have a work pc & a home pc (which I can't access) and I want to sync my phone to the work pc but it won't do it. Is there a reason for this? thanks

  • MacBook Air, can I partition my Mac external drive to have an ISO image file location for Windows downloads?

    Hi, in preparation for installing bootcamp and windows 7, and in the absence of a DVD drive on my MacBook Air, can I partition my Mac external drive to have an ISO image file location for Windows downloads?

  • Click Tracks!

    Like a lot of people here I've used just about every Multi-track Recording Software under the sun. I've always sworn by Adobe, but lately there is something that is bugging me. I have started to work on some very complex projects that requires lots o

  • Action gets executed multiple times

    Hi, i have a strange problem in my jsf application. I have an action in my bean, let's say public String testThis(){ //my business is logic here if(blahblah){ return null; }else return "oke"; Now, the problem is, when the action is fired, and it retu