How can I change the Jframe Java help Icon

How can I change then Jframe Java help Icon?.
I am using then HelpSet class and HelpBroker.
I want to change the java help icon
Any Idea? thanks. ...

It can be done, but it's ugly...
Add in a listener to your topmost JFrame to sense when the focus is lost, since this happens when a help window comes up. When the focus leaves the main window, check all the windows that are up to see if one is a help window. If so, this will give you a reference to the help window and you can drill down to change what you want.
Here's an example that changes the icon and removes the borders from the javahelp buttons.
WindowListener wndCloser = new WindowAdapter() {
          //A necessarily roundabout method to affect
          //look and feel aspects of the javahelp viewer.
          //(there is no way to get at these components directly.)
          //When the main frame loses focus, it may be because
          //the help viewer was brought up. Look through all
          //the current frames to see if one is a help viewer.
          //If it is, change the look of the help viewer
          //to what we want.
          Frame m_helpFrame = null;
          public void windowDeactivated(WindowEvent e) {
          if (m_helpFrame != null)
               return;
          Frame[] frames = getFrames();
          for (int k = 0; k < frames.length; k++) {
               if (!(frames[k] instanceof JFrame))
               continue;
               JFrame jf = (JFrame)frames[k];
               if (jf.getContentPane().getComponentCount()==0)
               continue;
               Component c = jf.getContentPane().
               getComponent(0);
               if (c == null || !(c instanceof JHelp))
               continue;
               m_helpFrame = jf;
               //now that we know the Frame, we can change the title icon
               final Image image2 = <your icon here>
               m_helpFrame.setIconImage(image2);
               JHelp jh = (JHelp)c;
               for (int s=0; s<jh.getComponentCount(); s++) {
               c = jh.getComponent(s);
               if (c == null || !(c instanceof JToolBar))
                    continue;
               JToolBar jtb = (JToolBar)c;
               //now that we've accessed the toolbar, we can
               //modify the look of the buttons.
               for(int i=0; i<jtb.getComponentCount(); i++) {
                    Component comp = jtb.getComponentAtIndex(i);
                    if(comp instanceof JButton) {
                    JButton button = (JButton)comp;
                    button.setBorder(null);

Similar Messages

  • How can I change the look of URL Icons?

    I have created several web site URL shortcuts and put them in my Dock (actually I just drug the web site URL's to my Dock, Apple crated the ability for me to do so).  I have a iMac desktop, with OS X Mavericks 10.9.1.
    My question is:  Is there any way to change the look of the icons for the URLs that I have in my dock? (so far I have 5).  They all look the same, an @ sign on top of a pedestal with a spring.  I would like to at least change the face of the icon, the @ sign, to a picture of my choosing that would enable me to tell the difference of each one at a glance rather than having to slide my mouse pointer over each one to get the name of the web site to pop up. 
    Below is a picture of three of the icons on my dock.  As you can see they all look the same, almost like the "Contacts" icon which is an @ sign on a book cover.
    Best regards and still looking for clues  and answers,
    Peohguy

    Your post helped me a lot.  After all of the dust cleared and after sorting through all of the answers, the post(s) that solved my problem were from Kenichi Watanabe.  However, I did have to go through all of Kenichi's posts to get the complete method that worked.  Some of the other posts were difficult for me to comprehend and did not seem to work for me.  I probably didn't do them like the writer's intended?   Again thanks for taking the time to read my question and dig through your memory bank to come up with the thread that helped.
    Best regards,
    Peohguy

  • How can I change the name of an icon/app like iBooks?

    I've looked online but cant figure it out.. Thanks for any help you can give me!

    That's too bad. But I appreciate your answering me so quickly. I've spent too much time trying to add "PDFs " to the iBooks icon to help me remember where the PDFs are.  Thanks!

  • How can I change  the language spanish to english

    I want to change spanish language to english, but I can´t.  I opened the ATM Languege and tried to create a new TXT in english and ereased other two en spanish. However when I re opened premiere (in english) and put a video in te time line, i couldn´t use the keyboard
    So, how can I change the language?
    Help me please

    How to change language in adobe Premiere Pro CS6 (Any language to English) - YouTube

  • How can I change the password in the iBook donated to our nonprofit.  No password was given with the iBook?  We need to put in printer and other software.  Help, we can use the laptop without changing the password.

      How can we change the password in the iBook donated to our nonprofit?  No password was given with the iBook and every time we try to install items, the password window pops up.  We need to put in printer and other software.  Help! We can use the laptop without changing the password.

    If you did not get an OS X install-restore DVD with the computer you may need
    to buy one from somewhere, and you may be lucky to get a retail OS X 10.5.x
    version. The original grey-label install set of software and OS X it shipped with
    likely would be an older system than Leopard 10.5. Last versions of G4 Mac, &
    G5, shipped with a Tiger 10.4 system; so did early Intel-based Mac. Grey discs
    which accompanied other computer build models generally do not interchange.
    The last OS X version a PowerPC architecture can use, if supported, is 10.5.8.
    A PPC processor at 867MHz & faster should be able to run OS X 10.5 Leopard.
    {With the correct disc installer, you can use it to change a password and other
    things including re-install, and perform disk utility functions, etc.}
    There is a chance you may be able to get a white-label Replacement 10.4 DVD
    or Replacement 10.5 DVD from AppleCare or the online Apple Store (800myapple)
    from a Mac OS X system specialist; these have been available yet hard to get
    as not all persons involved with them seem to know if they still exist until someone
    is asking. These aren't retail stock, are special discs for computers who could use
    a system later than original old discs; these are complete install discs not for one
    specific series of Mac. Generally they'd work in supported PowerPC G4/G5; but
    do not replace specialized original install DVD, such as an early Intel mac requires.
    You'd need to have a serial number of the computer, and a method of payment
    when seeking some replacement system media from Applecare or Apple sales
    and these discs are not available in a retail store. The original Retail discs are
    labeled differently and shipped in a retail box with a big X on the front. Other
    sources for retail 10.4 Tiger or 10.5 Leopard may be online via amazon sellers
    or computer resellers who handle repaired Macs. Avoid mystery grey label ones
    that were intended to be sold and kept with their original computer kits.
    Good luck!

  • How can i change the setting on my ipad 2? Whenever i read stories in the net after awhile it goeson standby and i have to keep on entering the passcode. Please help.

    How can i change the setting on my ipad 2? Whenever i read stories in the net after awhile it goeson standby and i have to keep on entering the passcode. Please help.

    Settings>General>AutoLock>Never. Now it will not sleep at all so change it back when you are done reading.

  • I have updated my iphone 5s to iOS8 but it has my old icloud account, how can i change the icloud email address as i can not get passed this page?? please help :-(

    i have updated my iphone 5s to iOS8 but it has my old icloud account, how can i change the icloud email address as i can not get passed this page??
    I do not know the log in details and no longer have that icloud email address !!
    please help :-(

    That's Activation Lock. You will need to remember the Apple ID and password you used to set up the phone.
    If you can't remember them, you can go to iforgot.apple.com to try to recover the information.
    If you are the original owner of the phone & have proof of purchase, you can try calling Apple to see if they can assist also.
    ~Lyssa

  • How can i change the OS input language though java

    hi,
    i am working on Windowx XP and for multiple language input support i am using the windows language bar.
    How can i change the input language through the java itself.

    hi,
    for a solution:
    logText.getInputContext().selectInputMethod(Locale.FRANCE)

  • HT1918 Hello , I will like to change my payment information but my new credit card is not American , Is Canadian .How can i change the country on my billing info? I cant seam to be able to do it . Thanks a lot for your help ,

    Hello ,
    I will like to change my payment information but my new credit card is not American , Is Canadian .How can i change the country on my billing info? I cant seam to be able to do it .
    Thanks a lot for your help ,

    What country are you in ? If you are in the US then you can only use the US iTune store, and you can't use a Canadian credit card with the US store - a credit card needs to have been issued by a bank in the country where you are.
    If you are in Canada then remove your old credit card from your account and then update your country/region and billing address on your account e.g. by tapping on your id in Settings > iTunes & App Store on your phone and 'view Apple id' on the popup, or via the Store > View Account menu option on your computer's iTunes

  • How can I change the text in F1 Help?

    I made a General Text  in T-code SE61, the name is 'ZTEST'.
    And at the SE80, in the local program,
    I used functions like these:
    HELP_OBJECT_SHOW
    HELP_OBJECT_SHOW_FOR_FIELD
    DSYS_SHOW_FOR_F1HELP
    These functions can display F1 HELP.
    But I want to send a text using functions,
    and display F1 HELP.
    Example)
    'Hello! This is your program.'
    Sending this to F1 HELP by functions, and display.
    If you know, please help me.
    Thank you.
    Edited by: Jaime White 999 on Apr 19, 2011 9:20 AM

    My source is like this:
    REPORT  z_test008.
    DATA: lt_links TYPE TABLE OF tline.
    SELECTION-SCREEN: PUSHBUTTON 2(6) s_button USER-COMMAND click.
    INITIALIZATION.
      s_button = 'uB3C4uC6C0uB9D0'.
    AT SELECTION-SCREEN.
      CASE sy-ucomm.
        WHEN 'CLICK'.
          CALL FUNCTION 'HELP_OBJECT_SHOW'
            EXPORTING
              dokclass                            = 'TX'
              doklangu                            = sy-langu
              dokname                             = 'Z_TEST'
              doktitle                            = 'Description'
    *          CALLED_BY_PROGRAM                   = ' '
    *          CALLED_BY_DYNP                      = ' '
    *          CALLED_FOR_TAB                      = ' '
    *          CALLED_FOR_FIELD                    = ' '
    *          CALLED_FOR_TAB_FLD_BTCH_INPUT       = ' '
    *          msg_var_1                           = ' '
    *          MSG_VAR_2                           = ' '
    *          MSG_VAR_3                           = ' '
    *          MSG_VAR_4                           = ' '
    *          CALLED_BY_CUAPROG                   = ' '
    *          CALLED_BY_CUASTAT                   =
    *          SHORT_TEXT                          = 'X'
    *          CLASSIC_SAPSCRIPT                   = ' '
            TABLES
              links                               = lt_links
           EXCEPTIONS
             object_not_found                    = 1
             sapscript_error                     = 2
             OTHERS                              = 3.
          IF sy-subrc NE 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
      ENDCASE.
    I just want to know that how can I change the text in F1 HELP, do not use SE61.
    In the source, I want to send the text by functions, and display that.
    Thank you.

  • Please help!! How can I change the version from Chinese to English?? Many thank!!!

    Please help!!
    I have download the photoshop, but its Chinese version, I need English one...
    How can I change the version from Chinese to English??
    Many thank!!!

    Read http://forums.adobe.com/message/5713507#5713507 for instructions.

  • HT1918 How do I reset my account I have 0.91 $ I can not change the Store please help

    How do I reset my account I have 0.91 $
    I can not change the Store please help
    plz help

    Change your password
    iTunes Store: Retrieving and changing passwords (Apple ID)
    Alert itunes support
    https://www.apple.com/support/contact/

  • Hey i have a iphone 4s 64gb but and using the internet share .. how can i change the nat type from strict to open please help me :)

    hey i have a iphone 4s 64gb but and using the internet share .. how can i change the nat type from strict to open please help me

    You will have to configure that with your router. Type your router's IP address in the search/domain bar and allow port forwarding.
    What is requiring you to have an open NAT? That issue is usually for gaming consoles, etc.

  • How can i change the particular node color in Jtree?

    I have constructed the tree.i dont know how to set the color for the particular node then how can i change the particular node icon depends on some conditions like if we will give the input whether it is available in jtree that node icon only changed.Anyone please help me as soon as possible.

    hi,
    i saw that tutorial.from that book i dont get the particular node cell renderer.i got a cell renderer for tree only.i attached my code in this mail.pls see and help me if u will do
    mport pack.Prop;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Container;
    import java.awt.Font;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.util.Properties;
    import java.util.Set;
    import java.util.StringTokenizer;
    import java.util.Vector;
    import javax.swing.Icon;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JScrollPane;
    import javax.swing.JTree;
    import javax.swing.UIManager;
    import javax.swing.text.Position;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeCellRenderer;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.MutableTreeNode;
    import javax.swing.tree.TreeCellRenderer;
    import javax.swing.tree.TreePath;
    public class ReadProperty3 extends JFrame{
    String str,key;
    static JTree tree;
    static Vector v;
    StringTokenizer st;
    static DefaultMutableTreeNode root;
    DefaultMutableTreeNode t;     
    public Object[] o;
    public static void main(String[] args) throws IOException {
    ReadProperty3 r = new ReadProperty3();
    Prop p=new Prop();
    JFrame f=new JFrame();
    p.show();
    Object[] o=v.toArray();
    int startRow = 0;
    String prefix =p.s;
    TreePath path = tree.getNextMatch(prefix, startRow, Position.Bias.Forward);
    //if(prefix.equals(root.getChildAt(0).toString()))
    if(prefix.equals("2000"))
         System.out.println("Node 2000 found");
         else if(prefix.equals("3000"))
              System.out.println("Node 3000 found");
         else if(prefix.equals("4000"))
              System.out.println("Node 4000 found");
         else
              System.out.println("Node not found");
         for(int i=0;i<v.size();i++)
              //((DefaultTreeModel)tree.getModel()).reload();
              DefaultTreeCellRenderer ren=(DefaultTreeCellRenderer)tree.getCellRenderer();
              Icon openIcon = new ImageIcon("C:/apache-tomcat-5.5.12/webapps/jsp-examples/images/execute.gif");
              Icon closedIcon = new ImageIcon("C:/apache-tomcat-5.5.12/webapps/jsp-examples/images/execute.gif");
              Icon leafIcon = new ImageIcon("C:/apache-tomcat-5.5.12/webapps/jsp-examples/images/read.gif");
              if(o[0].equals(p.s))
                   ren.setBackgroundSelectionColor(Color.MAGENTA);
                   ren.setBackgroundNonSelectionColor(Color.YELLOW);
                   //ren.setTextSelectionColor(Color.YELLOW);
                   //ren.setTextNonSelectionColor(Color.BLUE);
                   ren.setClosedIcon(closedIcon);
                   ren.setFont(new Font("Impact",Font.ITALIC,14));
              else if(o[1].equals(p.s))
                   ren.setLeafIcon(leafIcon);
                   ren.setFont(new Font("Impact",Font.ITALIC,10));
                   UIManager.put("Tree.leafIcon", leafIcon);
              else if(o[2].equals(p.s))
                   ren.setOpenIcon(openIcon);
                   ren.setFont(new Font("Dialog",Font.BOLD,9));
    public ReadProperty3(){
         super("JTree With Properties");
         try{
    int c = 0;
    while(c == 0){
    c = 1;
    BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
    System.out.print("Enter file name which has properties extension :");
    str = bf.readLine();
    File f = new File(str + ".properties");
    if(f.exists()){
    Properties pro = new Properties();
    FileInputStream in = new FileInputStream(f);
    pro.load(in);
    System.out.println("Key: " + pro.keySet());
    System.out.print("Enter Key : ");
    key = bf.readLine();
    String p = pro.getProperty(key);
    st = new StringTokenizer(p,"=,");
    root=new DefaultMutableTreeNode(key);
    v=new Vector();
    while(st.hasMoreTokens())
         String val=st.nextToken();
         v.add(val);
         o=v.toArray();
         System.out.println(val);
         t=new DefaultMutableTreeNode(val);
         root.add(t);
         tree=new JTree(root);
         tree.setEditable(true);
         JScrollPane jp=new JScrollPane(tree);
         // tree.setCellRenderer(new CellRenderer());
         Container content=getContentPane();
         content.add(jp,BorderLayout.CENTER);
    setSize(250,275);
    setVisible(true);
    addWindowListener(new ExitListener());
    else{
    c = 0;
    System.out.println("File not found!");
    catch(IOException e){
    System.out.println(e.getMessage());
    }

  • How can we change the  color of the image for product display for different

    Hi All,
    How can we change the  color of the image for product display for different colors, to be displayed on site.
    jeff

    Hi priya,
    The requirement that you have stated is not a standard feature in ISA CRM. In order to do the same, you will need to modify the standard ISA code in Java. A common path for the solution would be as follows:
    1. Colours
        a. Maintain a text type for Color under the object - PCAT_ITM in Customizing.
        b. Modify the standard search of ISA to search within your new text type as well. (In standard it only searches in Description.
       c. Maintain all shirts colour data in the new type created in step a.
       d. Your requirement will be done!
    2. Price
      a. Use list prices for your shop and assign the appropriate condition type, acces in your catalog.
      b. Modify the standard search of ISA to search on the list prices as well.
      c. This too will be done!
    3. Accessories - This is very tricky, and will require some exploration. However, here's my opinion,
    a. Search for the standard function module, which will return the accessories when provided the product as an input.
    b. Modify this function module according to your requirement and ensure that it can be accessed remotely.
    c. Modify the JSP as in steps 1b and 2b above to call this new remote-enabled function module.
    d. Now you're done!!
    The ISA modification part is not so simple, you need a really good guy like "Sateesh Chandra" who'll be able to handle your requirements. This is all I could manage, hope it is some help to you!
    Thanks & Regards,
    Nelson.

Maybe you are looking for

  • JTable DND requires two clicks (fixed but broken in 1.6)

    I'm using a JTable as a source of a drag and drop operation. I can easily get it to work, however, when I want to start a drag from an unselected row I have to first click on the row to select it and then mouse-down on the row and then I can drag it.

  • HRABAP about pn-begda in logicdatabase

    When using the logic database to retrive the data in HR, do the pn-begda and pn-endda have any effects on GET PERNR? I have no experience in HR ABAP programmming. When I set the pn-begps, it did affect the data which was selected in GET EVENT, but it

  • Field in KNA1 not mantained

    Hi gurus, I have a strange problem. By using trx. XD02 to fill up field ANRED (Tittle or also known as form of address) in some customer...when I go to check that field in table KNA1. The value in the field is not mantained. Any idea??? what happen??

  • Aperture 3 selected folders sync

    Syncing my I phone with aperture 3 selected folders gives me an error -50 as the size of he library is too big and the option "selected folders' id greyed out...

  • Lines across output video

    Hey guys, I made a video for my youth group, but there are lines across my video when I output it using compressor. Im thinking i have the settings wrong or something. You can download my video here: http://www.mediafire.com/?jyizywhzyzj to see what