Get the Jbutton status

Hi
Can any one suggest me a method to check the status of the button (i.e) button pressed

Sometimes you need this. For instance, I've been implementing a custom look and feel for swing lately. To implement painting of a button, you must check if the button is pressed.
To do this, you must access the AbstractButton's model, like this:
  AbstractButton b = new JButton("Press me.");
  b.getModel().isPressed();

Similar Messages

  • How to get the Shipping status of a Invoice items in SAP?

    Hi All,
    Is there any way to get the Shipping status of a Invoiced Item ?
    While i extracting Sales Invoice lines,i can get the shipping method and the shipping date,how can i confirm whether the item is shipped or not?.
    Is there any table which contains the shipping status or any column in Invoice lines(INV1) which contains the shipping status?
    Please help me to come out from that problem
    Thanks
    JanakiRaman

    Hello Gilbert,
    The column what you specified INV1.TRNSCODE is to know how the shipping was done. My question, Is there any field to specify the material was shipped or not?
    Thanks
    Janakiraman

  • To get the User status of the Production Order

    Dear all,
    I have a  requiement to get the user status of the production order, This is just below the Status of the Production Order,
    I was able to get the Status of the Production order using the Function Module ( REL MSPT PRC ) etc
    Can any body please help me in fetching this data.
    with rgds
    Ranjith Singh

    Dear,
    Please try with,
    FM 'STATUS_TEXT_EDIT'
    Or See function module PM_ORDER_DATA_READ
    The status maintenace is done by SAPLBSVA
    Use the Tables are :
    JEST - Pass OBJNR of the Production ORDER (AUFK, AFKO tables)
    or from
    TJ02
    TJ02T
    Please take help from technical consultant.
    Hope it will help you.
    Regards,
    R.Brahmankar

  • FM for getting the SYSTEM STATUS in pp order.

    hi,
    i wnat to know what is the FM used to get the SYSTEM STATUS in pp order.
    and the parametes needed t be passed.

    HI,
    1. go to tcode BS22 (Maintain: System Status) 
    2. look for the system status TECO. 
    3. Double click the field "TECO". 
    4. in the transaction control tab look for the business transaction "RMWA" or goods movement (you can type it in the lower left corner buttom box). 
    5. select the radio button from "Allowed" to Disallowed". 
    6. save your changes. 
    Here are the function moduels:
    SYSTEM_STATUS
    UPGI22_GET_SYSTEM_STATUS
    UPG_GET_SYSTEM_STATUS
    TMS_CFG_GET_SYSTEM_STATE
    Regards
    Sudheer

  • Get the current status of IDOC

    Hi,
    I want the current status of IDOC.
    Is there any function module through which i can get the current status of IDOC?

    Hi,
    Use function module "FTR_IDOC_READ", Output structure "PE_IDOC_STATUS" holds the current status of IDOC number
    Regards
    Vinod

  • Query to get the Deployment Status of an application - SCCM 2012

    Hi,
    Do we have any query/report to get the detailed status report & machine name, user name of a deployment in sccm 2012 as in sccm 2007, instead of clicking on each deployment status to find the machine names and status details?
    Regards,
    Mike.

    Hi,
    You could have a look the report -"All system resources for a specified package and program deployment in a specified state".
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Getting the Latest status with respect to DATE entered

    Hi guyz, kindly help me in this scenario:
    I have a DSO and a CUBE....
    DSO:
    cust
    status code
    status date
    RAW DATA
    cust               status code               status date
    payer1                    1                      12/31/2013
    payer1                    3                       1/3/2014
    payer2                    4                       12/15/2013
    payer2                    2                        1/10/2014
    CUBE:
    cust
    0calday
    qty (KF)
    RAW DATA
    cust                    0calday                    qty
    payer1                1/1/2014                    10
    payer1                1/2/2014                    20
    payer1                1/3/2014                    30
    payer1                1/4/2014                    40
    payer1                1/5/2014                    50
    payer2                1/1/2014                    60
    payer2                1/2/2014                    70
    payer2                1/3/2014                    80
    payer2                1/4/2014                    90
    payer2                1/5/2014                    100
    I need to have this report: (for example I entered 1/1/2014 - 1/5/2014)
    cust               status code               0calday              qty
    payer1                   1                       1/1/2014              10
    payer1                   1                       1/2/2014              20
    payer1                   3                       1/3/2014              30
    payer1                   3                       1/4/2014              40
    payer1                   3                       1/5/2014              50
    payer2                   4                       1/1/2014              60
    payer2                   4                       1/2/2014              70
    payer2                   4                       1/3/2014              80
    payer2                   4                       1/4/2014              90
    payer2                   4                       1/5/2014              100
    Is this possible in query? Or do I need to do this in start routine?
    By the way, I can already show the QTY figures, I used CONSTANT SELECTION..My problem now is how to the STATUS CODE..How will I do this?
    Thank you!
    Loed

    Loed,If you are flexible with modeling level changes then i would suggest to stamp the values of status and status date against payer in cube.
    Add the two objects ion cube.Do a lookup on the DSO from cube in End routine and based on payer fetch the value of status and status date against each payer.
    Now once you have the complete data in the cube then at reporting level to get the correct status based on the validity dates you can refer my blog.
    Status of Tickets based on their Dates
    PS:If you need assistance in the coding part then let me know.
    Regards,
    AL

  • Get the inherited status of attributes

    Hi All,,
    I have a requirement as below:
    o     Every time the program reaches a line where the attribute ID and/or position ID is different from the previous line or for the first line, all attribute values for the dedicated position and attribute ID that are not marked as Inherited need to be deleted.
    For this i want to get the inherited status of the attributes(Whihc is present in my input file)
    can anyone help me in this?
    Moderator Message: Specs-dumping is not allowed.
    Edited by: kishan P on Apr 12, 2011 2:12 PM

    Hi,
    Use function module "FTR_IDOC_READ", Output structure "PE_IDOC_STATUS" holds the current status of IDOC number
    Regards
    Vinod

  • How can I get the report status?

    I am using web service to connect to BI Publisher and run the report by java code. And I have questions still unclear, anyone who knows about it please help me.
    1. Is there any method to get the report status, such as whether the report runs successfully or not.
    2. If I have a huge table that binds with the template (maybe RTF template), how about the performance of the BI publisher?
    3. I use the sample codes in the web service tutorial to run the report, but the out pdf report doesn't change when i add or remove the table data, how can I resolve it?
    Thanks very much.

    Use the web services and use this function
    getScheduledReportStatus
    you will get the status of the report ran.
    Possible values are: "Completed", "Error" "Running", "Scheduled","Suspended", "Unknown"
    It is in the table XMLP_SCHED_OUTPUT status column :)

  • To get the Workflow status using the Object Key

    Hi Experts,
    Do we have any transaction code or a Standard table where I can see the status of the Workflow using the Object Key.
    For example I have an Invoice Document number for which a Workflow has been triggered and now I want to see the which workflow has been triggered and what is the status for the same. I have only the Invoice Document Number.
    I think I can use the SWI1, SWEL etc but I don't have Object key as Input field.
    Thanks in advance.
    Regards,
    SRinivas

    Hi,
    You can find the workitem id in table SWW_WI2OBJ.
    Here you need to pass the invoice number in "Instacne ID" with leading zeros, business object in Object type.
    This may take little bit longer time.
    After getting the workitem number then look into table SWWWIHEAD for the workitem status.
    Thanks and regards,
    SNJY

  • Can I get the GP status using GP API.

    Hi all,
    Can I use the GP API to get one process status present,for example,"reject" or "approve" according to the process instance ID?
    If there's a way,how can i archive this?
    Best regards,
    delma

    Hi,
    Using GP API it is possible to achieve the process status of any particular process.
    In the package com.sap.caf.eu.gp.process.api, we have several classes that can give the process such as IGP Process and the status can be achieved by the method getStatus.
    For more information refer to this link:
    http://help.sap.com/javadocs/nwce/current/gp/index.html
    Award points if helpful.
    Regards,
    Sujana

  • Database Control always gets "The database status is currently unavailable"

    I have two 10.1.0 databases installed on a Windows XP machine. Instance orcl always gets this message. Instance orcltwo does not. If I shut down orcl and then start the web database control page I can select the startup button and it starts up the database and then goes back to the pages that says that the database is not available. The console for that database is running with no errors that I can find. The DBSNMP account is not locked. The SYSMAN account is not locked. There are no errors in any log file that I can find. What am I doing wrong here. The orcltwo instance has no problems at all.

    Just to share this experience with everyone. This happened with Grid Control (not sure if it applies to Database Control).
    All the targets in EM (except the Agent) showed Down or Unavailable for two weeks. This is how I checked it.
    Note that if the Agent is not able to upload Metrics to the repository due to one reason or the other, you will not be able to see the current status.
    Assuming your ORACLE_HOME is different from your AGENT_HOME. Check the emagent trace file in the Agent home.
    e.g with AGENT home as D:\oracle\agent\
    check D:\oracle\agent\sysman\log\emagent.trc to see the latest error message.
    Then check the upload directory to see if there are xml files waiting to be uploaded
    e.g D:\oracle\agent\sysman\emd\upload
    This directory should be clear of .xml file if your metrics loading is working.
    From the Agents Monitoring screen in Enterprice Manager (Management System -> Agent), under the Upload session where there is Upload Metric Data button, check for "Last Successful Upload" and "Data Pending Upload " and any error messages. If the Metric upload is not working, the Data Pending uplaod will be more than 0.00MB and the error message link will show you the xml file it is unable to load. Which you will find in my example D:\oracle\agent\sysman\emd\upload
    I my example upload file B0002332.xml is the one I found on the error url and when I viewed it in the directory, the structure is different from others. This inability to load it caused all other upload files to be queuing. There was a line in it as
         <METRIC_GUID><![CDATA[€=3F6739EE03C21CE7CA5E32FD9185]]></METRIC_GUID>
    Looking at the structure of other files, I took a guess (not the best , this is a test EM) and changed it to
         <METRIC_GUID>80C23F6739EE03C21CE7CA5E32FD9185</METRIC_GUID>
    Then all the two weeks 32MB of xml files loaded automatically within seconds. Logoff EM and Login, everything showed the correct status.
    Hope this helps.

  • BADI for CJ20N to get the WBS status when changed

    Hi all,
    Here's the requirement:
    I have to capture the previous status and currently changed status of the WBS element in CJ20N T-CODE and save this in the ZTABLE.
    Every time the STATUS of WBS element changes..the ZTABLE has to get updated.
    Will you please help me out to do this.
    I have tried with BADI - WORKBREAKDOWN_UPDATE, could find that the status part is updated after the call to WORKBREAKDOWN_UPDATE.
    Thanks and Regards,
    Krishna Chaitanya G
    Edited by: Krishna Chaitanya  G on Apr 27, 2009 6:30 PM

    Use BADI WORKBREAKDOWN_UPDATE method AT_SAVE.  The WBS elements are in internal table IT_WBS_ELEMENT which has structure PRPS.  Use OBJNR to find status with function module
    CALL FUNCTION 'STATUS_READ'
      EXPORTING
      CLIENT                 = SY-MANDT
        objnr                  = gs_wbs_element-objnr
        ONLY_ACTIVE            = ' '
      TABLES
        STATUS                 = et_status
      EXCEPTIONS
        OBJECT_NOT_FOUND       = 1
        OTHERS                 = 2
    The statuses are buffered in a separate memory area so be careful if you call any function modules that affect statuses e.g one to create Sales Orders as this initializes the buffered statuses and they are not changed when you save the WBS element.  To get round this problem put the current status in a separate memory area carry out the processing that initializes the statuses and then recall the status from memory.
      CALL FUNCTION 'STATUS_BUFFER_EXPORT_TO_MEMORY'
        EXPORTING
          i_memory_id = 'ZPSS_STATUS'.
      LOOP AT gt_pss_01 ASSIGNING <ls_pss_01>.
        AT NEW sold_to_party.
          CLEAR: ls_order_header,
                 lt_order_items,
                 ls_order_partners,
                 lt_order_partners.
          "Header
          ls_order_header-doc_type = c_rsbill_order_type.
          CALL METHOD <ls_pss_01>-o_pss01->get_sales_area
            IMPORTING
              e_sales_org  = ls_order_header-sales_org
              e_division   = ls_order_header-division
              e_distr_chan = ls_order_header-distr_chan
            EXCEPTIONS
              not_found    = 1.
          IF sy-subrc NE 0.
            CONTINUE.
          ENDIF.
          "Partner
          IF <ls_pss_01>-sold_to_party IS INITIAL.
            CONTINUE.
          ENDIF.
          ls_order_partners-partn_role = 'AG'.
          ls_order_partners-partn_numb = <ls_pss_01>-sold_to_party.
          APPEND ls_order_partners TO lt_order_partners.
        ENDAT.
        "Items
        CLEAR ls_order_items.
        ls_order_items-itm_number = <ls_pss_01>-posnr.
        ls_order_items-material = c_rsbill_material.
        ls_order_items-wbs_elem = <ls_pss_01>-posid.
        APPEND ls_order_items TO lt_order_items.
        AT END OF sold_to_party.
          CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
            EXPORTING
              order_header_in   = ls_order_header
              behave_when_error = space "'P' "Save when error occurs
              testrun           = space
            IMPORTING
              salesdocument     = <ls_pss_01>-sales_order
            TABLES
              return            = <ls_pss_01>-bapireturn
              order_items_in    = lt_order_items
              order_partners    = lt_order_partners.
        ENDAT.
      ENDLOOP.
    *--Re-fill status from memory
      CALL FUNCTION 'STATUS_BUFFER_IMPORT_FROM_MEMO'
        EXPORTING
          i_memory_id = 'ZPSS_STATUS'.
    Hope this is of some use

  • How to get the PO status?

    Hi experts,
    I want to know the status of a purchase order  by PO# when  all items are delieved or not .
    I try to call  'BAPI_PO_GETITEMS' ,but I can't get the staus value from BAPIEKKOL-HOLD
    who will help me?  thanks.

    Hi Mikeni,
    Against each PO Item, you will get the "Delivery Completion Indicator" (ELIKZ) in the item table from this BAPI. Refer to the field NO_MORE_GR field in the table parameter PO_ITEMS from this BAPI_PO_GETITEMS.
    Cheers
    Suresh

  • How  to  get the print  status

    Hi  all
    After  the  output  is  displayed  with  ALV ,I  have  the  following   requirement
    A status field will be found at the end of the row and will reflect the current status of the print documents.  After printing occurs, the screen should refresh and processing status reflected to show post-print status.  The user will then be able to see what documents printed immediately.  Any documents that did not successfully print will need to be reprinted through the .PDF files stored in the shared directory.
    I  am  unable  to   proceed  further
    Pointers  would  be  helpful
    Thanks  in  advance
    Regards
    Nikhil

    Nikhil,
    Try going through this table TSP02L.It may give you some lead.
    As well as go to  DD02T table and  give  as spool in DDTEXT field so that you will be able to see all the spool related tables.
    K.Kiran.

Maybe you are looking for

  • Error in  Sql plus Logging

    [oracle@localhost ~]$ set oracle_sid=oraclee [oracle@localhost ~]$ sqlplus /nolog SQL*Plus: Release 10.2.0.1.0 - Production on Thu Nov 5 09:35:30 2009 Copyright (c) 1982, 2005, Oracle. All rights reserved. Error 1: SQL> connect sys as sysdba Enter pa

  • Teststand open database step type modification using DotNet

    Dear all, I am currently looking at ways to change the default means by which TestStand manages database connections and operations to a SQL database. By default, TestStand uses Oledb to connect to any database. However, I would like to use .Net clas

  • Import metadata file for FDM

    When I import the metadata file (including mapping) for FDM, I find that the mapping are not replacing the existing ones, but merging instead. Is there a way to clear all the mapping tables before importing the new metadata xml file ? Thanks.

  • SmartView - Manage Process - 11.1.2

    Hi, I set up my process workflow hierarchy. i have e.g. user 'bvo' as owner and user 'jhb' as reviewer. In planning as user bvo i normally promte my entity part to bvo and then he can take ownership. However in smartview this is not possible as i get

  • Lenovo G580 the key "{/[" in the keyboard is not working.Pls help.

    Hi, I recently bought this laptop less than a month ago.  few day earlier this paranthesis key is not working any more.  Laptop keyboard is without any dust or blemish. I am running ubuntu and when I checked there is no press/release event being regi