Thread: Client Icon in task bar when running.

Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1 Client Icon in task bar when running. 
    Registered Member
    Warlock 999's Avatar
    Join Date
    Jul 2008
    Age
    28
    Posts
    1,407
    Thanks given
    7
    Thanks received
    29
    Discord
    View profile
    Rep Power
    927
    Add this in your

    main(String args[]) void

    Code:
                if (SystemTray.isSupported()) {//checks if your os supports 
                    SystemTray tray = SystemTray.getSystemTray();//getting trayicon
                    Image image = Toolkit.getDefaultToolkit().getImage(
                            signlink.findcachedir() + "duke.gif"); //icon
                    trayIcon = new TrayIcon(image,"Relapse Client Is Currently Running.");//tooltip
                    try {//always chance of error
                        tray.add(trayIcon);
                    } catch (AWTException e) {//catches error
                        System.err.println(e);//prints error
                    }
                }


    post what u think

    Update: debug this to see if your os supports trayIcon System.out.println(SystemTray.isSupported());
    Reply With Quote  
     

  2. #2  
    Member

    Join Date
    Aug 2009
    Age
    25
    Posts
    513
    Thanks given
    8
    Thanks received
    2
    Rep Power
    0
    can barely see
    Reply With Quote  
     

  3. #3  
    Derp.
    BenjaR's Avatar
    Join Date
    May 2008
    Age
    26
    Posts
    2,086
    Thanks given
    167
    Thanks received
    125
    Rep Power
    915
    Haha cool!
    Reply With Quote  
     

  4. #4  
    Registered Member Crash's Avatar
    Join Date
    Feb 2009
    Posts
    383
    Thanks given
    6
    Thanks received
    1
    Rep Power
    49
    oh very nice, will use.


    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Jul 2009
    Posts
    597
    Thanks given
    158
    Thanks received
    95
    Rep Power
    632
    Haha that's cool good job ;D
    Reply With Quote  
     

  6. #6  
    Jon
    Jon is offline
    Registered Member
    Jon's Avatar
    Join Date
    Mar 2009
    Posts
    353
    Thanks given
    60
    Thanks received
    17
    Rep Power
    566
    Naice, i did this a while ago by leeching off java tuts

    Reply With Quote  
     

  7. #7  
    Registered Member
    Warlock 999's Avatar
    Join Date
    Jul 2008
    Age
    28
    Posts
    1,407
    Thanks given
    7
    Thanks received
    29
    Discord
    View profile
    Rep Power
    927
    Quote Originally Posted by Free Town View Post
    Naice, i did this a while ago by leeching off java tuts
    java tuts isnt leeching they are made to teach you. I use them all the time. I sun java docs
    Reply With Quote  
     

  8. #8  
    Registered Member
    Jammy780's Avatar
    Join Date
    May 2008
    Posts
    1,320
    Thanks given
    13
    Thanks received
    47
    Rep Power
    619
    Great work Warlock. Could you maybe expand it so you could add options;

    eg.
    Lists
    About
    Credits
    ------------
    Quit

    Something like that?
    Reply With Quote  
     

  9. #9  
    Jon
    Jon is offline
    Registered Member
    Jon's Avatar
    Join Date
    Mar 2009
    Posts
    353
    Thanks given
    60
    Thanks received
    17
    Rep Power
    566
    Quote Originally Posted by Jammy780 View Post
    Great work Warlock. Could you maybe expand it so you could add options;

    eg.
    Lists
    About
    Credits
    ------------
    Quit

    Something like that?
    Just read up on the java doc

    This is the one i used.

    [Only registered and activated users can see links. ]

    Reply With Quote  
     

  10. #10  
    Registered Member
    Jammy780's Avatar
    Join Date
    May 2008
    Posts
    1,320
    Thanks given
    13
    Thanks received
    47
    Rep Power
    619
    Quote Originally Posted by Free Town View Post
    Just read up on the java doc

    This is the one i used.

    [Only registered and activated users can see links. ]
    Thanks
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •