Minimizing and running applications in the background

I'm writing an app that I want to run in the background, executing a job every time period. My question is how do I minimize the JFrame so that is goes into the System tray(Y'know where you find the Volume control, PPP modem connection icon, etc...)
I know it can be done because LimeWire does it, but I don't see anything obvious in the docs how it was done. Help is much appreciated, and thanks in advance.

You can use the JTray API (Java System Tray API For
Windows) that can be found at http://www.JavaAPIs.com.
It supports several image types, animation, and
display of AWT and Swing Components as pop-ups. I always find it rather annoying when people scour past posts to promote a product that they have a vested interest in.
Especially when they don't point out that that they have such an interest.
Especially when they don't point out that the interest is monetary.
Especially when they do nothing but post ads - never actually answering a single question.
Just me I suppose.

Similar Messages

  • Trying to run application in the background

    Hello there,
    I have written a small app using Apple Script. From the editor I have saved it as application and would like to run it as a background process. That is, I don't want it to show in the list of active applications I can switch to when I press command-tab. It does not matter if it is displayed in the dock or not. What I want to avoid is that every time that I switch to a different application that windowless application is also listed. By the way, I'm launching the application as a start up application and I have selected to hide the application, but it does not help, so I'm not sure if I'm missing anything. Any advise will be appreciated.
    MV

    01. Save the AppleScript code as an 'Application Bundle', via 'Script Editor's 'File, Save As...' menu items' 'File Format:' popup buttons' 'Application Bundle' menu item.
    02. In 'Finder' - '<control>' click (or right click, if using a multiple button mouse) on your just saved 'Application Bundle' application, and select the 'Show Package Contents' menu item. A window containing a folder 'Contents' will appear.
    03. Double click on the 'Contents' folder. A Window, titled 'Contents' will appear.
    04. Using 'Property List Editor' (installed when installing 'Xcode') open the file 'Info.plist'. A window titled 'Info.plist' will appear.
    05. Click on the disclosure triangle (which is pointing to the right) to the left of 'Root'. The disclosure triangle will point down, and the contents of 'Root' displayed.
    06. Click on 'Root'; the 'New Sibling' button will be renamed 'New Child' and will become enabled ... or ... Click on any item below 'Root'; the 'New Sibling' will become enabled.
    07. Click on the 'New Child' or 'New Sibling' button.
    08. Enter 'LSUIElement' (without the single quote marks), and then press either the '<tab>' or '<return>' key. The entry may jump to a new position.
    09. Locate the 'LSUIElement' entry row (listing), and under the 'Value' column click twice, enter '1' (without the single quote marks), and finally press the '<return>' key.
    You should now see (under 'Property' 'Class' 'Value' respectively) ...
    LSUIElement String 1
    10. Close the 'Info.plist' window. A drop down sheet will appear. Click on the 'Save' button.
    11. Quit 'Property List Editor'.

  • [Desktop][Running] Running Spotify Application in the Background...

    Think it would be very convenient if we could run the Spotify application in the background. I remember it used to be an option under "Edit>Preferences..." before a certain update removed it... O.o

    Updated: 2015-06-21Hello!
    With "running in the background" do you mean minimize to system tray?
    If so, version 1.0.7 added that option again.
    Please check under Menu => Edit => Preferences => Startup and Window Behaviour => Close button should...
    Or did you mean something else?

  • After closing large documents (drawings) the window closes but the process runs still in the background. I open the next document, the same procedure and after dowing this several times the RAM is full the system becoms very slow. what can i do???

    after closing large documents (drawings) the window closes but the process runs still in the background. I open the next document, the same procedure and after dowing this several times the RAM is full the system becoms very slow. what can i do???

    You can always shut it down manually via the Task Manager
    (CtrlShiftEsc)...
    On Mon, Sep 1, 2014 at 3:05 PM, frank koethen <[email protected]>

  • Script to open RSS feed url's and post those in the background to a webpage

    Dear everyone,
    Im trying to work on a script that should do:
    - Read My Apple mail RSS feeds every 120 seconds
    - extract a NUMBER from the links from those RSS feeds
    - then post them to a website url site.com/rss.php?id=<extracted id>
    - It should run totally in the background of my apple
    - The links should be posted in the background also without opening any browser or safari
    Is this possible?
    I have my apple now 4 months and this is my first applescript project, so its a bit too much for me, ive spend several hours investigating on how to do this can someone help me out a bit please?
    on idle
    if application "Mail" is running then
    -- read RSS feeds from apple mail
    -- Extract link ID www.site.com/?id=12345
    -- Post Id 12345 to http://site.com/rss.php?id=<the id>
    end if
    return 120
    end idle

    Read My Apple mail RSS feeds every 120 seconds
    Start by using a different RSS application.
    Mail.app doesn't provide any access to RSS feeds via AppleScript, so there is no chance of doing this with Mail.app (or, at least, no easy way to do so).
    Try something like NetNewsWire instead.
    Once you have a viable app, the first part is pretty straightfoward:
    on idle
     if application "NetNewsWire" is running then
      --extract a NUMBER from the links from those RSS feeds
      tell application "NetNewsWire" to set numLinks to total unread count
     end if
     return 120
    end if=idle
    From here, though, I don't know what you're trying to do. You say:
    then post them to a website url site.com/rss.php?id=<extracted id>
    Do you mean you want to post the number of RSS messages (since that's what you asked for earlier), or do you mean you want to re-post the RSS articles? Or do you mean you want to download the links and re-post the entire linked article?
    That's three options (and there are probably more), each of which require a different approach.

  • Running AppleScript in the background

    Okay, yet another problem I'm having that I'm going to bug the community here with.
    Is it at all possible to run AppleScript while doing other things? For example, if I wanted my AppleScript to hop online every hour and send me back information from my site could I have it do this while I do other things? Or will I have to wait until it's completed?
    Say I wanted to create a script that hopped on my site and sent me the post number of the last post, could I have it do this while I do other things?
    Something like
    tell application "Safari" to activate
    tell application "System events"
    tell process "Safari"
    (enter code here to get post number and send it to me)
    end tell
    end tell
    I've tried doing it like this and it definitely doesn't work at all if I don't have the Safari window selected at all times, so is there any way in which I can run script in the background while I work on other things or does AppleScript require full control of my computer while it's working?

    Save this script just like the others I posted. The script will do exactly as you asked.
    <pre style="width:630px;height:auto;overflow-x:auto;overflow-y:hidden;"
    title="Copy this code and paste it into your Script Editor application.">property helloWorld : "Hello World "
    global numChars, charNum, x
    on run
    tell application "System Events" to set isRunning to exists process "TextEdit"
    if not isRunning then tell application "TextEdit" to launch
    tell application "TextEdit"
    if isRunning then make new document
    set name of window 1 to "Hello World"
    set numChars to number of characters in helloWorld
    set charNum to 0
    set x to 0
    end tell
    end run
    on idle
    try
    tell application "TextEdit"
    if x = numChars then
    set x to 1
    else
    set x to x + 1
    end if
    set charNum to charNum + 1
    set theChar to character x of helloWorld
    set character charNum of document 1 to theChar
    end tell
    on error
    quit
    end try
    return 0.1
    end idle
    on quit
    continue quit
    end quit</pre>

  • How to run long running report in the background

    Oracle Application server 10g
    I need to run the long running reports in the background because while the report is running the cursor is loading and the control doesn't return to the user
    this feature exist in oracle 6i by set the following parameter
    RUN_PRODUCT( REPORTS, 'r_1', ASYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL);
    How can I accomplish the same in OAS 10g?

    Hi,
    I've done this in 11g. I think it will be the same in 10g as well
    Following are the steps in 11g using run_report_object.
    1. Read metalink note: Using the Reports Server Queue PL/SQL Table and API - RW_SERVER_JOB_QUEUE [ID 72531.1]
    2. Implement RW_SERVER_JOB_QUEUE table as per above notes.
    3. When submitting report run it as background
    a. SET_REPORT_OBJECT_PROPERTY(lo_report_object, REPORT_EXECUTION_MODE, ASYNCHRONOUS); -
    SET_REPORT_OBJECT_PROPERTY(lo_report_object, REPORT_COMM_MODE , BATCH);
    4. Display the job_id to user (notification).
    5. Create a new form to view reports base on on RW_SERVER_JOB_QUEUE which provides you the status, etc.... (you may have to create a way to identify the username who submitted the job. This way not all users will see the jobs in RW_SERVER_JOB_QUEUE )
    6. Optionally you can use NOTIFYSUCCESS=email to notify user when the report is finished.
    Cheers
    LS

  • Run Automator in the background without status bar icon

    Hello,
    I hope this is the right place and thank you in advance for the help.
    I am trying to run an Automator App in the background without running in the status bar as it takes the focus from the current application that I am working in.  Is there a way to do this?  Some Google Fu stats that I can make some changes to the info.plist of the package contents of the application by changing the LSUIElement.  However when I follow those instructions, I am still unable to run the application in the background completely.
    For what it is worth, I am running a brand new Mac Mini with Yosemite.  Any help is greatly appreciated.  Please let me know if I need to provide any more detail.
    Cheers!

    Items from various actions such as Ask for Finder Items or Get Selected Finder Items can be passed to the Run Shell Script action. Saving the workflow as an application will run it without launching Automator.
    A file with a .php extension would be associated with whatever application created it (or a default application that can handle HTML files). A Unix Executable File isn't seen as an "application" by the system, so you will need to call it directly with your parameters.

  • Run OC4J in the background

    Is there anyway I can run OC4J in the background as an NT service?
    Thanks in advance.

    I took the approach above, and my experience was only partially successful. With some scrounging around newsgroups, orionsupport.com, and Sun's website, I came up with the following solution:
    Creating an NT Service for OC4J
    OC4J by default runs as a command shell application, so it is bound to a user's login session and will die if the user who called the start command logs off of the system. Oracle has not provided a version of OC4J that runs as a service on Windows-based servers, so here is a process to create a service using the freeware utility, RunExeSvc (http://www.winwinsoft.com/goodies/RunExeSvc/index.html). This utility is more user-friendly and flexible than tools such as srvany.exe and instsrv.exe in the NT Resource Kit.
    Dependencies
    1. RunExeSvc is installed
    (Unzip the runexesvc.zip file to a directory)
    2. Sun's JDK 1.3.1 is installed.
    (JDK 1.3.1 is required because a bug in prior versions of Sun's JVM for Windows killed any JVMs initiated by a user in that login session.)
    Installation Procedure
    1. Run the RunExeSvcAdmin.exe application
    2. Create a new service by copying the example script below into the Script window of RunExeSvcAdmin.exe. Some changes to drives and/or paths may of course be needed.
    3. Save the new entry and exit the application.
    4. The service should now appear in the services control panel. Changes may be required for its startup options.
    Example Script#########################
    # This script runs OC4J
    # RunExeSvc variables
    # if true, RunExeSvc will show internal status
    debug=false
    # the starting dir of the service
    home=e:\oc4j\j2ee\home
    # Running as an http server.
    cmdline=e:\jdk1.3.1\bin\javaw.exe -Xrs -jar orion.jar -out e:\oc4j_out.log -err e:\oc4j_err.log
    null

  • My location service is not working from the day one the response is that (cannot able to determine the location) .What can i need to do to see my location in maps and other application even the location services is enabled in the settings?

    From the day one the response is that (cannot able to determine the location) while using ios5.1 .What can i need to do to see my location in maps and other application even the location services is enabled in the settings?.Which means that is there is any problem in my ipad ? currently running on IOS 6.

    Your location is determined from a location database which contains the MAC addresses of routers and their physical location. A MAC address is a unique number which is built-in to all network devices when manufactured. The database is built and updated by actually driving around and mapping router locations.
    Since you just moved the location of your router has not been updated in the database and when you use Maps you will see your old location.
    If you go outside your house you can be correctly located because your iPod sees other routers which are in the location database. Note that you do not need to be connected to a router for your iPod to see it and obtain its MAC address.

  • Running program in the background

    Hi everybody!
    I need to run  program in the background.
    So I need only to change the sy-batch status to 'X'?

    HI,
    if your program is runninn in the Background then the System field SY-BATCH will become 'X' otherwise it will have space ......
    it will not execute the job in the background if you put SY-BATCH = 'X'
    you need to use: Job_open , Job_submit and job_close function modules
    example:
    *Submit report as job(i.e. in background) 
    data: jobname like tbtcjob-jobname value
                                 ' TRANSFER TRANSLATION'.
    data: jobcount like tbtcjob-jobcount,
          host like msxxlist-host.
    data: begin of starttime.
            include structure tbtcstrt.
    data: end of starttime.
    data: starttimeimmediate like btch0000-char1.
    Job open
      call function 'JOB_OPEN'
           exporting
                delanfrep        = ' '
                jobgroup         = ' '
                jobname          = jobname
                sdlstrtdt        = sy-datum
                sdlstrttm        = sy-uzeit
           importing
                jobcount         = jobcount
           exceptions
                cant_create_job  = 01
                invalid_job_data = 02
                jobname_missing  = 03.
      if sy-subrc ne 0.
                                           "error processing
      endif.
    Insert process into job
    SUBMIT zreport and return
                    with p_param1 = 'value'
                    with p_param2 = 'value'
                    user sy-uname
                    via job jobname
                    number jobcount.
      if sy-subrc > 0.
                                           "error processing
      endif.
    Close job
      starttime-sdlstrtdt = sy-datum + 1.
      starttime-sdlstrttm = '220000'.
      call function 'JOB_CLOSE'
           exporting
                event_id             = starttime-eventid
                event_param          = starttime-eventparm
                event_periodic       = starttime-periodic
                jobcount             = jobcount
                jobname              = jobname
                laststrtdt           = starttime-laststrtdt
                laststrttm           = starttime-laststrttm
                prddays              = 1
                prdhours             = 0
                prdmins              = 0
                prdmonths            = 0
                prdweeks             = 0
                sdlstrtdt            = starttime-sdlstrtdt
                sdlstrttm            = starttime-sdlstrttm
                strtimmed            = starttimeimmediate
                targetsystem         = host
           exceptions
                cant_start_immediate = 01
                invalid_startdate    = 02
                jobname_missing      = 03
                job_close_failed     = 04
                job_nosteps          = 05
                job_notex            = 06
                lock_failed          = 07
                others               = 99.
      if sy-subrc eq 0.
                                           "error processing
      endif.
    Thanks
    Sudheer

  • How to deploy and run application in user created OC4J instance

    Hello friends,
    I have created my own OC4J instance in Application Server Control.Now,how can I deploy and run application in this newly created OC4J instance.I need your help,it's
    urgent.
    Regards
    Prasenjit

    Hi Andreas,
    Thanx for your prompt reply.Yes,I had deployed the '.ear'in that.But I am not able to run the program in
    browser.Could you please elaborate more precisely.I wouuld be obliged.
    Regards
    Prasenjit

  • Run Servlet in the background (Daemon)

    Hi all ,
    I am using Apache Tomcat/5.0.25 container.
    Need some advice regarding running servlet at the background or as daemon . Below is the scope of the program :
    The servlet will do a updating in the database in the background every 5 minute.
    Any ideas how to implement such behaviour using servlet ?
    Thanks.
    Wee Tat

    hi..
    Make a thread and initialize in the init method of ur servlet.
    And make another thread so that it wakes up every five minutes and does the database processing..
    so ur servlet always has a thread which invokes the other thread(database accesing thread)..
    here is the code sample ..
    Thread t = new Thread( new Runnable() {
    public void run() {
    Thread dbHandler = new DBHAndler(..);
    dbHandler .start();
    try {
    t.start();
    catch(IllegalThreadStateException e) { }
    hopefully it works..
    regards
    Kovi

  • How run OC4J in the background

    Hello!
    How can I run oc4j in the background(without a window open) on a solaris box?
    I have tried 'nohup java -jar oc4j.jar &' but the startup seems to hang when I do this.
    Any ideas?

    Make sure you can write to nohup.out in the current directory.
    Also, I typically start my OC4J in /etc/init.d from my solaris machine and that seems to work nicely.
    Also try putting the 2>&1 at the end instead of in the middle.
    Of you could try using CSH vs. SH, some google hits mention that makes life easier.
    Rob

  • Can someone pls. Tell me how long it would take to have the iPad up and running from removing the plastic on the box?

    Can someone pls. Tell me how long it would take to have the iPad up and running from removing the plastic on the box?

    Upon applying for Telstra contract, salesman filled out all details &amp; I was approved immed.  He grabbed a new iPad 2 from the store's stock, all plastic wrapped, a white 32 gb.  He then asked me if I needed to go and do some shopping as he had mucked something up and had to redo application.  Everything had been completed and approved on screen, so I wasn't sure why he had asked me to come back in half an hour.  I did so, and upon arriving back he was standing at the desk, iPad in hand together with receipt and box, no evidence of shrink wrap.  As I already had bought a red cover, he basically grabbed that and slipped the iPad straight into it, without really asking me, and said, all ready to go.  Was a bit surprised but accepted that.  Did not see it being unwrapped, sim inserted or anything.  Thought it to be odd, and without any further advice, was handed bag, box and receipt.  Got home, thought it looked a bit fingerprinty, then wondered why it was basically set up ready to go.  He knew I was a gadget freak, owning 25 wifi related devices, but had never bought apple products so he said I'd have no problems.  There was virtually no set up to go through except for asking if I had an apple ID which I didn't so I created that and away I went.  I was looking through the settings a bit later and noticed the ITunes said to sync back with WILLS-MSI when it was available.  WILLS is the name of the store.  There was a 32 gb white iPad 2 as a display model and now I am seriously wondering if he has taken that off the shelf and given to me.  I have never in my life bought a display model and never would.  From my description do you think I may be right? ( even the silver back looked 'not quite new').
    OPINIONS appreciated, is there anyway of checking to see if a reset has been done as I am not at all happy &amp; will be going straight to store manager on opening of store.

Maybe you are looking for

  • Change of Material Valuation Class - What Approach to Consider?

    Dear SAP Expert ... In OSS notes # 160970, it mentions that starting from release 4.6B we can use Customizing Transaction OMT4 (Change System Message) to change corresponding check from error to warning.  With this function, the system won't check if

  • Geotagging with iPhoto and Flickr

    Question in a quick and detailed version: (quick version: ) What do you all think is the best way to geotag photos that are already stored in your iPhoto library? If you have a workflow involving iPhoto, geotagging, and possibly uploading to flickr o

  • Topics Randomly Appear as Missing Files

    I've been using RoboHelp 6 with RoboSource Control for 2 months now. There are two of us that edit one project typically without any problems however recently a red X has appeared through a few topics indicating (I believe) that the topic is missing.

  • How to Install microsoft lync 2010 client on 9800

    How to Install microsoft lync 2010 client on 9800? I have tried all possible links to download the files. but how can i integrate it??? Consultant

  • Beginner's Tutorial: J2ME

    I want to learn J2ME. And there are a lot of tutorials out there, so I'm kinda confuse which to pick first. Can you guys recommend a good tutorial for beginners? Thanks!