Menuicons not possible within Mustang-Trayicon-implementation ?

The example on http://java.sun.com/developer/technicalArticles/J2SE/Desktop/mustang/systemtray/#moreinfo displays two menuitems with icons.
I think that screenshot was not taken from the current mustang-version because I do not find a way to place an icon into a menuitem.
The examples only show the general way to implement a trayicon which does not use the shown functionality.
The class java.awt.MenuItem does not know anything about icons.
Is there any way to create a trayicon with icons with current mustang-version ?

I am affraid that it is impossilbe :(.
I worked on this subject many days.
Screenshot are probably from JDIC (JDesktop Integration Components , +2MB to your project) or it is JPopupMenu with no keyboard focus (so it does not disappear when user click somewhere else).
You can show manually JPopupMenu, and make it above taskbar (!) ... but I could not find how to get keyboard input / focus.
Pleas see my other post for more informations http://forums.java.net/jive/thread.jspa?threadID=23466&tstart=0 .
There you can also get (and run) my simple example to check if your GUI hangs when you pop up tray icon menu.
Write to me, or here, if you find any interesting solutions.
Thanks!

Similar Messages

  • Sending of dynpro SAPLSPRI 0100 not possible: No window system type is spe

    Upon clicking dictionary search help PREM tagged to "Personnel Number" input field in Web Dynpro ABAP application, error message "Sending of dynpro SAPLSPRI 0100 not possible: No window system type is specified." is encountered. This error message is displayed within the message area and not a short dump. This error message is only occuring for some users.
    Does anyone knows how to resolve this error message?

    Hi,
    I thnk the search help exit is implemented in search help PREM in your system. If the code in exit in written in such a way that under some conditions it is calling any ABAP screen, it will throw error in webdynpro ABAP environment. Condition in the exit might be reaching for some users under certain cases.
    Open the PREM help in SE11 and check the function module mentioned in Search help exit section. It might also contain another call to F.M which might be calling a ABAP screen. If this is the case, this error cannot be fixed as WD ABAP dont support ABAP screen call.
    Regards
    Vishal kapoor

  • Portal Activityreport - Aggregation not possible at least partially done

    Hi out there,
    we are running EP 7 SP 10. I am trying to activate the Portal Activity Reporting and I have some problem with the aggregation. In the server.log I see an error message from com.sap.portal.activityreport.aggregator: "Aggregation not possible at least partailly done". Here some lines from the log file:
    "08/10/2007","13:19:48:165","Aggregation took 63 millis",
    "08/10/2007","13:19:48:165","Commit done",
    "08/10/2007","13:19:48:149","SQL DELETE: DELETE FROM WCR_AGGINFO WHERE AGGREGATIONLEVEL = h AND  TIMESTAMPHOUR <= 1184152788117",
    "08/10/2007","13:19:48:149","SQL DELETE: DELETE FROM WCR_WEBCONTENTSTAT WHERE AGGREGATIONLEVEL = h AND  TIMESTAMPHOUR <= 1184152788117",
    "08/10/2007","13:19:48:149","SQL DELETE: DELETE FROM WCR_USERSTAT WHERE AGGREGATIONLEVEL = h AND  TIMESTAMPHOUR <= 1184152788117",
    "08/10/2007","13:19:48:149","SQL DELETE: DELETE FROM WCR_USERNODELOGON WHERE TIMESTAMPHOUR <= 1186744788117",
    "08/10/2007","13:19:48:134","SQL DELETE: DELETE FROM WCR_WEBCNODESTAT WHERE TIMESTAMPHOUR <= 1186744788117",
    "08/10/2007","13:19:48:134","SQL DELETE: DELETE FROM WCR_USERNODESTAT WHERE TIMESTAMPHOUR <= 1186744788117",
    "08/10/2007","13:19:48:134","Aggregation not possible at least partailly done",
    "08/10/2007","13:19:48:134","First run at 10 Aug 2007 11:00:00 GMT",
    "08/10/2007","13:19:48:118","query = SELECT MAX(TIMESTAMPHOUR) FROM WCR_AGGINFO WHERE AGGREGATIONLEVEL = h",
    "08/10/2007","13:19:48:118","*********** Aggregating data from 1 Jan 2004 00:00:48 GMT to 10 Aug 2007 11:19:48 GMT ***********",
    "08/10/2007","13:19:48:118","",
    "08/10/2007","13:19:48:118","Current Database Time: 10 Aug 2007 11:19:48 GMT",
    "08/10/2007","13:19:48:102","Aggregator Started...",
    I have raised log and trace levels like mentioned in OSS 1054145 to get more information. But maybe anyone can already give me a hint how to hunt this down?!?
    Best Regards
    Juergen Kuechle.

    Hi Juergen
    From the error description,  I can see that the problem you have with activity report is due to 'DuplicateKeyException ' .
    The error message above indicates that the Aggregator is trying to
    insert to the database data which has already been aggregated.
    The data already exists in the WCR_* database tables due to a previous
    aggregation which has failed, stopped its work, and hasn't deleted the
    raw data yet. The next time an Aggregator will run, it will try to
    re-insert the already-inserted value.
    The failure could occur due to variety of reasons, starting improper
    functionality of the Aggregator and ending with a momentarily
    disconnection to the database.
    The common reason for this exception usually occurs on a clustered
    environment, where every server node runs an aggregator of its own.
    AN UPDATE:
    A fix was implemented starting from NW04-SP21 / NW04s-SP13.
    WORKAROUND :
      The suggested workaround for this matter would be to access the DB and
      delete the specific problematic duplicated record from the relevant
      table (WCR_WEBCNODESTAT in this case).
      If there are more than one problematic entries, you will notice it again
      within the next hour's trace file, and will need to perform the deletion
      process again.
      In case there are a lot of duplicated records  this might consume a lot
      of time. In this case we would recommend to either delete records per
      timestamp or to delete all the content from the DB tables and start
      over. This solution is applicable only if you do not need the data that
      was gathered up to now. (you do so by going over all the DB tables which
      start with WCR and delete the contained data).
    As mentioned in Note 1054145 to fix this problem
    Regards,
    Nitin Mehra

  • SSFCOMPOSER - 154 - No output request open. End not possible.

    Hi Experts,
    I'm trying to print multiple smartforms using FMs SSF_OPEN and SSF_CLOSE. Inside the main program RBDAPP01 (Inbound processing for IDOCS) there is a loop at the IDOCS to be processed. Deep within the processing, we have a custom FM being called which prints smartforms. Since there is a loop at the calling main program, I have organized the code in the custom FM such that the first IDOC calls SSF_OPEN and the last IDOC calls SSF_CLOSE, so that all IDOCS in between will be able to print their smartforms. Here is the call stack:
    8
    SAPLZCUSTOM                   
    ZCUSTOMPROGRAM                             
    113
    FUNCTION                     
    ZCUSTOMPROGRAM                                         
    7
    SAPLPPC1                               
    ZCUSTOMPROGRAM     
    136
    FUNCTION                     
    KK2A_GET_DATA_FROM_IDOC                                     
    7
    SAPLPPC1                               
    LPPC1U01                               
    1
    FUNCTION                     
    KK2A_GET_DATA_FROM_IDOC                                     
    6
    SAPLBD20                               
    LBD20F0A                               
    454
    FORM                         
    IDOCS_PASS_TO_APPLICATION                                   
    5
    SAPLBD20                               
    LBD20F0B                               
    69
    FORM                         
    IDOCS_PROCESS                                               
    4
    SAPLBD20                               
    LBD20U05                               
    260
    FUNCTION                     
    IDOC_INPUT                                                  
    3
    SAPLEDIR                               
    LEDIRU02                               
    182
    FUNCTION                     
    IDOC_START_INBOUND                                          
    2
    SAPLBD12                               
    LBD12U04                               
    37
    FUNCTION                     
    APPLICATION_IDOC_POST_IMMEDIAT                              
    1
    RBDAPP01                               
    RBDAPP01                               
    388
    EVENT                        
    START-OF-SELECTION                                          
    The problem is:
    1. When I only have 1 IDOC being processed, SSF_OPEN and SSF_CLOSE happens in the custom FM at the same time. This creates a successful spool.
    2. Whereas, when I have 2 or more IDOCS, SSF_OPEN happens in the first IDOC, but then it goes back to the calling program, and then when the last IDOC is encountered SSF_CLOSE is called. The FM SSF_CLOSE in this scenario calls the exception INTERNAL_ERROR (sy-subrc = 2).
    The system message is SSFCOMPOSER - 154 - No output request open. End not possible.
    Why is this happening? Is it because that other programs (calling programs) may have affected the status of SSF_OPEN? It seems that the SSF_OPEN is no longer open.
    Thanks in Advanced,
    Jack

    No, it will not hold the smartform open, but you don't need to hold it open in order for printout to be accumulated in one spool. Spool system does the accumulation automatically, provided the spool requests that are to be added to an existing spool request are:
    - generated in the same transaction and
    - have the same attributes (such as user, title, output device, client from which the request was issued, number of copies, priority, cover sheet setting, archive mode, and ABAP session number).
    Important is: where do OUTPUT_OPTIONS like printer come from currently? Is print parameters popup displayed on first Idoc for user to choose printer and options? Or do you use USER_SETTINGS = 'X' to simply take over defaults from user master? If the print options dialog is displayed, it needs to be controlled as well so it's displayed only once.
    Assuming print options come from the user in dialog, the logic without explicit open/close could look somewhat like this:
    On first idoc:
    - call SSF_OPEN  importing  JOB_OUTPUT_OPTIONS to display print options dialog; move-corresponding JOB_OUTPUT_OPTIONS to global OUTPUT_OPTIONS;
    - set OUTPUT_OPTIONS-TDNEWID = 'X' and clear  OUTPUT_OPTIONS-TDFINAL, to ensure new spool will be started (overriding user choices for these parameters!);
    - if the user has set OUTPUT_OPTIONS-TDIMMED = 'X' save it globally and clear it;
    - set CONTROL_PARAMETERS-NO_OPEN = 'X';
    On subsequent idoc:
    - clear OUTPUT_OPTIONS-TDNEWID;
    - clear CONTROL_PARAMETERS-NO_OPEN;
    On last idoc:
    - set OUTPUT_OPTIONS-TDFINAL = 'X' (this is not absolutely necessary, but prevents further appending to the spool);
    - restore OUTPUT_OPTIONS-TDIMMED from the value saved on first idoc;
    Calling Smartform:
    - set CONTROL_PARAMETERS-NO_DIALOG = 'X';
    - call smartform passing OUTPUT_OPTIONS and CONTROL_PARAMETERS;
    The logic is somewhat complicated; I'd wrap it in a class (singleton, which would be de-instantiated after last idoc) to avoid global data and code other than simple method call(s) in FM.
    Even if you decide to refactor the logic, it would still be important to understand, I think, why the current logic does not work (where and why smartform gets closed)... Maybe there are some nasty "surprises" somewhere, and your current algorithm should work.
    cheers
    Janis

  • Value does not fall within the expected range in my itemupdated eventreceiver while accessing a splist column on the root site collection

    hi,
     I am performing the below operations:
    1) Itemupdated event handler when a document is uploaded into the document library
    2) Now amreading another list which is in the root  site level so, i used spsite, spweb again and accessed that splist and trying to read single line of text column and user or group column.
    Now when i am reading this, i am getting the error "Value does not fall within the expected range".
    I went to resource throttling under central admin -->my current web appln and changed that value to 20  from 8
    even after performing the above, i am getting the same error.
    pls help anyone has faced this issue before.
    Accessing a splist which is under root site collection within the itemupdated eventreceiver is allowed in SP ?

    hello sir,
     as per my requirement i have to access a  splist which is residing in the ROOT SITE COLLECTION OF THIS WEB APPLICATION. the event receiver i have written is residing in one of the few document libraries within the sub site. there are hundreds
    of sub sites exist in this site collection. I need to access the root site collection within the itemevent receiver and access thatperson column from that splist. why i ahve kept this list at the root site collection level [
    http://server1:2020/ ] , because this  splist is the UI for customer's sp admin for performing  weekly tasks. like adding few items in the splist and my event receiver fires and check this column- person /group
    column ]  and apply permissions on the  document.
    so my doubt is it possible to access the root site collection from my event receiver code.
    spweb from properties web is just the subsite url and not the site collection. i want to get the root sitec ollection url's splist.
    also am already running this code under runwithelevatedprivileges.

  • Posting with trans.type 300 not possible (No acquisition posted)   Message

    Dear Gurus,
    When I execute the T-code ABUMN, i've got the following message:
    Posting with trans.type 300 not possible (No acquisition posted)
         Message no. AA324
    Diagnosis
         Transaction type 300 belongs to a transaction type group, which can only
         be used to post to assets to which posting has already been performed.
         However, no postings have been made to this asset.
    Procedure
         Use a transaction type from a transaction type group, which can be used
         for the first acquisition to an asset.
    I don't know why I've got this problem. I did those tries:
    Asset Accounting => transaction => inter-company asset transfers => define transfer variants => define transfer variant:
    I don't know which transaction type to use? (Of course, if the problem can be solve here, i juste suppose it ).
    And I tried also to use an other asset (they said that there isn't any acquisition in this asset so I tried with others, that has got acquisitions).
    Thanks for replying,
    With regards,
    Gül'

    Thanks for helping,
    But the problem occures again...
    After transfert variant, I choose the variant 4 'transfert within a company code", then I enter 100 like you said it to me in the 2 cases:
    -  Transaction type in selling company code
    -  Transaction type for receiving company code
    but i've got a new message:
    Transfer variant 4 02 *: Method 1 retmt TTY not allowed
         Message no. AC636
    Diagnosis
         Transfer method 1 is specified for depreciation area *. A retirement
         transaction type must therefore be assigned.
    Procedure
         Assign a retirement transaction type.
    Then I tried others tranfers methods but it doesn't work! And I tried others transaction type too (always the same error message)

  • Error: 'Transaction type not possible (no affiliated company specified)'

    Hello,
    I am trying to transfer an asset under construction to following asset class: 'low value assets' with ABUMN
    It get the error message: 'Transaction type not possible (no affiliated company specified)'.
    I could go to AO76 to mark the 'post to affiliated company'.
    How can I check which transaction type it uses? With the transactio type group? Or something else...?
    Regards,
    Pamela

    Hello,
    actually, the problem lies with the transfer of assets under construction to low value assets with are happening in the CURRENT year, and not the previous year. AuC to LVA transfers from previous years are allowed, but not the one in the current year. Because it uses a different transfer transaction type... The transfer variant 4 (= transfer within company code) is the correct one I assume.
    Regards,
    Pamela

  • Batch to batch transfer of same material is not possible

    We are doing batch to batch transfer of same material no. through MB1B in a plant which is depot. This is not happening and error message is coming "Batch to batch transfer of same material is not possible" msg no. 00398.
    We tried the same transaction in mfg. plant and it is allowing the batch to batch transfer of same material no.
    Full marks for earliest best solution.

    Choubey Ji
    Normally when you want to do stock transfer and change the  batch of a material  then we use M Type 309 via MB1B...in your case..you are doing this within a single plant...which i don't think is possible.
    Correct me if i am wrong.
    Regards,
    N

  • CRM70 Use of dynpro services is not possible in the current system status

    Hi all,
    i programmed in Webclient UI an own button which calls a Method of a zclass. Within this method i do a remote function call in ERP.
    I can test the method successfully but if i call it from CRM Webclient UI i have a BSP error:
    Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
    Use of dynpro services is not possible in the current system status
    Exception Class CX_SY_MESSAGE_IN_PLUGIN_MODE
    Could one of you experts please give me a hind?
    Thank you
    Kind regards
    Manfred

    Solved,
    there was a SAP GUI "MESSAGE" in the ERP function call which is not possible for CRM Webclient UI.
    Kind regards
    Manfred

  • Use of dynpro services is not possible...

    I created a webservice in our devcrm 7.0  to retrieve contact data (name, address...) to use in an adobe xml attachment within CRM
    I check data and all is successful, but when I acivate, I get the Business Server Page (BSP) error
    Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
    Use of dynpro services is not possible in the current system status
    Exception Class  CX_SY_SEND_DYNPRO_NO_RECEIVER
    Error Name           DYNPRO_SEND_IN_BACKGROUND
    Program          SAPLSKEY
    Include          LSKEYU03
    Line          33
    Long text     -
    Error type: Exception
    Any helpw would be greatly appreciated.
    Edited by: cshealy on Mar 7, 2011 5:43 PM

    Did you create this web service using the wizard in the Web UI?
    Looking at the error it's occuring in function module DEVELOPER_CHECK, maybe you could try registering your user as a developer in the system or using a developers account to create the service.
    Gregor

  • OER - Identical asset names in different asset types not possible

    We are creating a service repository in the OER. The repository contains a logical level and a physical level, with logical service entities and physical service entities. We first defined a metamodel and implemented the objects in the metamodel as asset types in the OER.
    Now we encounter the problem that it is not possible that assets in differet asset types have the same name and version. Why is that? Shouldn't it be possible to have a logical and physical service with the same name? Is there a way to make this possible, to adjust the constraints in the OER for example?
    Edited by: Walter Huberts on 6-okt-2010 0:01
    Edited by: Walter Huberts on 6-okt-2010 0:02

    hi
    as per my knowled u cant reverse document in he current fiscal year which was posted in the last year it's not sujjestable also
    because u already closed all the records related to last fiscal year
    Thanks & Regards
    phaneendra

  • Payment not possible because of reported error Message no. FZ311

    i am a fresher in FI module... kidly give the solution  how to solve the error in automatic payment program..f110...
    i have attached my log here....
    Job log overview for job:
    F110-20140315-A1    -X / 13365701
    Date
    Time
    Message text
    Message class
    Message no.
    Message type
    ABAP program
    Screen no.
    15.03.2014
    13:36:59
    Job started
         00
        516
         S
    15.03.2014
    13:36:59
    Step 001 started (program SAPF110S, variant &0000000002023, user ID RAGU)
         00
        550
         S
    15.03.2014
    13:37:00
    Log for proposal run for payment on 15.03.2014, identification A1
         FZ
        402
         S
    15.03.2014
    13:37:04
    >
         FZ
        693
         S
    15.03.2014
    13:37:04
    > Additional log for vendor 100263 company code ALRF
         FZ
        691
         S
    15.03.2014
    13:37:04
    >
         FZ
        693
         S
    15.03.2014
    13:37:04
    >
    Due date determination additional log
         FZ
        799
         S
    15.03.2014
    13:37:04
    >
    Document 6
    004 line item 001 via INR      200.000,00-
         FZ
        700
         S
    15.03.2014
    13:37:04
    > Terms of payment: 15.03.2014    0  0,000 % 0  0,000 %    0
         FZ
        701
         S
    15.03.2014
    13:37:04
    >  00 days grace period is being considered
         FZ
        726
         S
    15.03.2014
    13:37:04
    >   Payment must take place before 15.03.2014; next payment on 16.03.2014
         FZ
        728
         S
    15.03.2014
    13:37:04
    > Item is due with 0,000 % cash discount
         FZ
        721
         S
    15.03.2014
    13:37:04
    >
         FZ
        693
         S
    15.03.2014
    13:37:04
    >
    Payment method selection additional log
         FZ
        699
         S
    15.03.2014
    13:37:04
    >
    Payment me
    thod selection for items due now to the amount of INR      200.000,00-
         FZ
        601
         S
    15.03.2014
    13:37:04
    > Payment method "C" is being checked
         FZ
        603
         S
    15.03.2014
    13:37:04
    > Street or P.O. box entry is missing
         FZ
        617
         S
    15.03.2014
    13:37:04
    > No permitted payment method exists
         FZ
        608
         S
    15.03.2014
    13:37:04
    Information re. vendor 100263 / paying company code ALRF ...
         FZ
        305
         S
    15.03.2014
    13:37:04
    ... payment not possible because of reported error
         FZ
        311
         S
    15.03.2014
    13:37:05
    End of log
         FZ
        398
         S
    15.03.2014
    13:37:06
    Job finished
         00
        517
         S

    Hello Experts,
    I am blocked with a strange issue which is similar to FZ311 mentioned above.
    Enclosing the screenshot for your reference.
    I am bit confused whether anything needs to be configured within the FBZP or it is purely the vendor master data .
    Any help will be appreciated.
    Kind Regards,
    Sanjay

  • HRMS - Payslip / Is it not possible to print the 'Currency' on the payslip

    Hi, using HRMS within eBiz Suite, is it not possible to show/display/print the 'currency' field on the payslip ?
    I am asking because in a particular location, several currencies may be used.
    Thanks in advance.

    Hi,
    Actually the Excel format generated by XML Publisher is XHTML ... so the print process would need to convert XHTML to Postscript (similar to PDF being converted to Postscript by pdf2ps).
    But you question is still valid... unfortunately I haven't tried it ... anyone else?
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/

  • Not possible to determine a condition type for the price in ME49

    Hi,
    While saving the price in ME49 i.e. comparision of Quotation i am getting below error:
    Not possible to determine a condition type for the price
    Message no. 06657
    Diagnosis
    When it attempted to generate the time-dependent conditions for the price you entered, the system was unable to determine a condition type. Price determination is therefore not possible.
    Procedure
    Contact your system administrator.
    The latter can maintain the calculation schema assigned to the purchasing document using the Implementation Guide (IMG).
    Utsav

    Hi Utsav,
    You can refer to the following link. it might be useful to you
    RFQ price
    Thanks
    Nisha

  • Render a swf object(contains an image) in navigator not possible

    Hy, I have a swf object that is an image(a circle). I have tried to render it in firefox but it doesnt render anything but I have tried with other swf object(not an image, an application) and it renders it ok. So can I render a swf file that is an image or is not possible? should I extract the image in it first to render on the navigator?
    Thanks

    Take a look at
    http://developers.sun.com/jscreator/learning/tutorials
    /2/file_upload.html#07.Thanks jetsons. That particular code sample (#7 in SJSC, #8 in Netbeans) shows only how to serialize a file to a different location on the server, not how to reference a file (not stored within the app forlder) to be rendered as a result of hyperlink click for example. Reading a little further in that page, it says:
    Be careful when putting the uploaded files in the web application as anyone can access the files by URL, such as http://localhost:29080/MyWebApplication/faces/upload/images/myPicture.gif.
    So, I am thinking that for added security, may be it is meant to be that I can't make an imageComponent reference a file outside of the wep app folder, but I am just guessing. In which case, I will simply have to store all such files within the web app folder before attempting to access them, unless someone has a better answer.

Maybe you are looking for

  • Creation of Reservation for planned order

    Hi Team, Is it possible to create reservation for planned orders after MRP run? My opinion was the reservation can only be created with reference to production order after MRP. The reservation can not be created with reference to planne dorders after

  • Can't Launch Safari

    Tried deleting all preferences and caches and restarting Safari..but it didn't work. Says "The application Safri wuit unexpectedly. The problem may be caused by the TastyAppsAVPlugin plug-in. That plug-in does not exist on my computer. I've tried Spo

  • F110 Proposal Error

    Hi, I am getting the following Proposal Error in F110. Job started Step 001 started (program SAPF110S, variant &0000000167782, user ID INTCOPAYMENT) Log for proposal run for payment on 20.09.2011, identification ZR496 Due items with currency USD, pmn

  • Audio Interfaces & Fusion Drives?

    I am using the newest 27" iMac (3tb fusion drive) w/ an Mbox 3 interface.  Every audio related program I have used works fine accept Pro Tools, both 10 & 11. I was hoping 10.9.2 would fix this, but it didn't unfortunately. I get a crazy amount of err

  • Total of calculated fields

    In a page-detail table report, there are several numeric fields which must be totalled at the end of the report. Some of the fields are calculated ones, i.e. a dollar amount multiplied by a conversion rate. The total of the calculated fields are alwa