In ME29n (PO appr), error "Cannot Find Screen Element shell in Replay Mode"

In ME29n (PO approval), in the header I pressed on the release button, the recording went well. and while executing the script  it worked well.  Problem is When there is any change in the ME29n HEADER screen (e.g. expanding header and collapsing header: specially if header is in Collapsed mode) , ecatt is giving error "Cannot Find Screen Element shell in Replay Mode" "Error in eCATT command SAPGUI".
Please help me how to avoid this error either in recording phase or in SAP settings.
Also discuss how to make ecatt script independent of the system settings like HEADER is in collapsed mode or expanded mode.
Thanks in advance.

Hello Srinivas,
Once the value is retrieved into the variable , based on whether you need collapse or not you can put ur SAPGUI recording inside the loop and continue ur operation.
eg:
say currently its collapse and u need collapse to carryout ur process
IF ( RC = "COLLAPSE HEADER CTRL+F5" ).
your process (SAPGUI recording)
ELSE (if its expanded and u need collapse)
call the script to collapse or you can record to collapse and the continue your process
ENDIF.
Hope this answers your question , let me know if not.
Thanks & Best regards,
Ajay

Similar Messages

  • Cannot Find Screen Element LIKP-WADAT_IST in Replay Mode

    Dear Sir/Madam,
    I am getting "Cannot Find Screen Element LIKP-WADAT_IST in Replay Mode" while executing VL01N in chaning.It is running fine in the individual script. I have checked through the following:
    1.ResetGUI = 'X' are set in all the scripts.
    2.All the session id & connection id in all the scripts are same.
    *******************Create Return Sales Order********************************
    REF ( SCRIPT1, SCRIPT1_1 ).
    *Pass the local variable to Import variable
    Z_IC_LIKP_VSTEL = Z_VC_SHIPPING_POINT.
    Z_IC_LV50C_DATBI_1 = Z_VC_SCHEDULE_DATE_1.
    Z_IC_LV50C_VBELN = Z_VC_VBAK_VBELN.
    ****************Create Inbound Delivery Order******************************
    REF ( SCRIPT2, SCRIPT2_1 ).
    ************Change RETURN status to OWN stock***********************
    REF ( SCRIPT3, SCRIPT3_1 ).
    *Pass the local variable to Import variable
    Z_IC_VBAK_VBELN = Z_VC_VBAK_VBELN.
    *********Indicate "Customer Replacement" in reject reason***************
    REF ( SCRIPT4, SCRIPT4_1 ).
    *Pass the local variable to Import variable
    Z_IC_LV45C_VBELN = Z_VC_VBAK_VBELN.
    **********Indicate "Customer Replacement" in reject reason******************
    REF ( SCRIPT5, SCRIPT5_1 ).
    *Pass the local variable to Import variable
    Z_IC_LIKP_VSTEL = Z_VC_SHIPPING_POINT.
    Z_IC_LV50C_DATBI = Z_VC_SCHEDULE_DATE_1.
    Z_IC_LV50C_VBELN = Z_VC_VBAK_VBELN.
    <b>
    <u><b>Encounter error at the last screen here</b></u>
    ***********Indicate "Customer Replacement" in reject reason******************
    REF ( Z_CREATE_DELIVERY_NOTE , Z_CREATE_DELIVERY_NOTE_1 ).

    Hello Srinivas,
    Once the value is retrieved into the variable , based on whether you need collapse or not you can put ur SAPGUI recording inside the loop and continue ur operation.
    eg:
    say currently its collapse and u need collapse to carryout ur process
    IF ( RC = "COLLAPSE HEADER CTRL+F5" ).
    your process (SAPGUI recording)
    ELSE (if its expanded and u need collapse)
    call the script to collapse or you can record to collapse and the continue your process
    ENDIF.
    Hope this answers your question , let me know if not.
    Thanks & Best regards,
    Ajay

  • ECATT - Cannot Find Screen Element RMMG1-MBRSH in Replay Mode

    I have an eCATT script that works fine on one PC but on another PC i get the following error messages. Cannot Find Screen Element RMMG1-MBRSH in Replay Mode. I have the following options: Reset Gui = X and i have added the rescon command after every 2 ref commands.
    Any Help will be appreciated

    Hi,
    >Reset Gui = X and i have added the rescon command after every 2 ref commands.
    Be aware that these 2 methods of reseting sapgui sessions will only help when handled with care.
    Reset Gui = X means "Restart transaction like a user does using /ntcode".
    RESCON does close the RFC session and automated SAP GUI sessions.
    Both executed in the middle of some sequential processing will brake your sequence by shutting your automated session.
    On the other hand, disappearance of screen fields can have multiple reasons:
    - screen field is disabled by customizing / for certain users / authority based
    - screen field is disabled for a particular business object key due to some special state of the business object
    - screen size/resolution differs between your 2 users/pcs
    You can execute the relevant script with some special start options on the pc where it fails:
    - "Error behavior  = X (Stop at error)"
    - "Close SAPGUI session = E (Do not close in case of errors)"
    Then the target system gui will stay for your further examination, e.g. whether there is some field RMMG1-MBRSH or in which state the whole transaction it is left.
    Best regards
    Jens

  • ECATT GETGUI Cannot Find Screen Element in Replay Mode

    Hi,
    During HCM BP install, received the following error.
    eCATT script /HRBPUS1/SCPR20_I001_KO2
    Error in eCATT command GETGUI
    Cannot Find Screen Element  in Replay Mode
    Error Occurred in Previous SAPGUI, GETGUI, or CHEGUI Command. Due to the Start Option Settings of the Error Behaviour, Processing Was Cancelled and the Current Command Not Processed.
    Any help would be greatly appreciated.  Regards!

    >
    David Haddock wrote:
    > Hi,
    > During HCM BP install, received the following error.
    >
    > eCATT script /HRBPUS1/SCPR20_I001_KO2
    >
    >
    Error in eCATT command GETGUI
    > Cannot Find Screen Element  in Replay Mode
    >
    > Error Occurred in Previous SAPGUI, GETGUI, or CHEGUI Command. Due to the Start Option Settings of the Error Behaviour, Processing Was Cancelled and the Current Command Not Processed.
    >
    > Any help would be greatly appreciated.  Regards!
    Hi David,
    Are you installing builing blocks for HCM BP?
    Please describe the background on where you are getting the error.
    Probable reason for error : The GETGUI command is used inside the eCATT script to take/retrieve some values from a field in a screen.While you are executing the script for installation,this field is missing/not able to be identified by the GETGUI command and hence the error.In simple terms,there is a mismatch in the screen/field it seems.
    Hope this info helps.
    Regards,
    SSN.

  • When I filter the dataset, though column name exists I got an error Cannot find column

    In the following lines of the code
    foreach (DataRow row in meterDs.Tables[0].Rows)
                    meterChannels = string.Format("{0} = {1}", Global.MeterIdColumnName, row[Global.MeterIdColumnName].ToString());
                    DataRow[] channelRows = ChannelsDs.Tables[0].Select(meterChannels);
    In the following line
     DataRow[] channelRows = ChannelsDs.Tables[0].Select(meterChannels);
    I got an error Cannot find column [Mtr_T1]
    In the debug mode run time values are:
    ? row[Global.MeterIdColumnName].ToString()
    "Mtr_T1"
    ? meterChannels
    "MeterId = Mtr_T1"
    ? Global.MeterIdColumnName
    "MeterId"
    Any clue?
    Thanks

    Hello, 
    The line 
    DataRow[] channelRows = ChannelsDs.Tables[0].Select(meterChannels);
    is trying to filter the data table where the Column value of MeterID equals the values in Column MTR_T1, if you do not have the MTR_T1 column in the ChannelDS.Tables[0] you will get the error.
    Regards, Dinesh

  • Xmlreader schema validation error: Cannot find the declaration of element

    I have multiple schemas with namespaces but I would like to validate an xml document without namespaces. The schemas all have elementFormDefault="unqualified" in the root element.
    I am encountering error below in my validation using xmlreader:
    ERROR:
    Cannot find the declaration of element 'NewTradenetDeclaration'.
    my code is:
    xmlReader = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
    xmlReader.setFeature(VALIDATION_FEATURE_ID, true);
    xmlReader.setFeature(SCHEMA_VALIDATION_FEATURE_ID, true);
    xmlReader.setFeature(SCHEMA_FULL_CHECKING_FEATURE_ID, true);
    xmlReader.setFeature(SCHEMA_NAMESPACE_FEATURE_ID, true);
    xmlReader.setProperty(JAXP_SCHEMA_LANGUAGE, XMLConstants.W3C_XML_SCHEMA_NS_URI);
    String schemaURI = "NewTradenetDeclaration.xsd";
    // ive tried all of the ff but throws the same error
    //xmlReader.setProperty(EXTERNAL_SCHEMA_LOCATION, "urn:crimsonlogic:tn:schema:xsd:NewTradenetDeclaration NewTradenetDeclaration.xsd");
    //xmlReader.setProperty(EXTERNAL_SCHEMA_LOCATION, schemaURI);
    xmlReader.setProperty(JAXP_SCHEMA_SOURCE, schemaURI);
    // set entity resolver to resolve xsd locations
    MyResolver resolver = new MyResolver();
    xmlReader.setEntityResolver(resolver);the entity resolver has:
    public InputSource resolveEntity (String publicId, String systemId) {
      String filename =  "c:/workspace/TXParser/schema/"+ systemId.substring(systemId.lastIndexOf("/")+1);
      File f = new File(filename);
      InputSource source = null;
      try {
        source = new InputSource(new FileReader(f));
      } catch(Exception e) {
      System.out.println("InputSource exception: " + e.getMessage());                 
      return source;
    }Help please. Thanks.

    I fight with the same error, it is curious that the schema from schemaLocation can not be validated. If i set the schema manually through an attribute it works. What i try to do is overwriting the resolveEntity in the handler to get the schema from another location and validate the xml against the schema specified in the attribute schemaLocation rather than setting it manually :-(

  • Installation error:  Cannot find a J2SE SDK installed at path C:\Program Fi

    I am installing latest version of SQL Developer, Release 1.2. I have Sun Java 2 Standard Edition Version 1.5.0 (build 1.5.0_10-b03). When I browse and select the java.exe found it comes up with error: Cannot find a J2SE SDK installed at patch
    C:\Program Files\Java\jre1.5.0_10
    I am installing the version I downloaded for Windows systems with JDK1.5.
    I have tried on two different machines.
    Any ideas?

    This is going to seem loooong, but comprehensive.
    I'd initially always suggest using the bundled
    package, since that's supposed to be a tested and
    proven combination.You know what, I'm gonna be mighty surprised if you're implying that Oracle hasn't 'tested and proven' the releases at http://www.oracle.com./technology/software/products/sql/index.html other than the first 77 MB download labeled Oracle SQL Developer for Windows... :)
    After having problems with a graphics card for
    example, installing the latest JDK might be
    indicated.Huh?!? Not a clue what you're talkin' 'bout! :S
    It's also easy for users who don't know which Java
    version to download, or even where to find it! You
    guys have proven that: although it's stated you need
    .First of all, it says right there on the download page (http://www.oracle.com./technology/software/products/sql/index.html) that:
    "JDK 1.5 (JDK 5.0) is required. This is the minimum JDK version required"
    And we've "proven that [..] although it's stated you need the JDK, [we]'ve tried running with the JRE" and have NOT been able to run the application. It just presents the user a dialog box to locate the 'SDK' manually and exits gracefully if you try to dismiss it. So, conclusively proven, the JDK (or as SQL Developer puts it, Java SDK) is required- QED.
    And given users might have several versions running
    on the same machine (I have half a dozen), sqldev
    could easily pick up a wrong version.And every JRE installation (atleast all of Sun's) make sure they update the default (via PATH and other required system variables) JRE point to the latest one installed. So if you have anything 1.5+ you're good to go; if not, you've got an incompatile JRE. Doesn't sound that hard to me!
    As for being bulky, even without the bundled JDK, it
    still is.Ya missed the point. Developers are making Java applications bulkier by including the JRE/JDK with their distributions. A SQL Developer release sans JDK is about 46 MB; with JDK that climbs to 77 MB (sizes quoted from download page linked above).
    Imagine what happens when you have, besides SQL Developer (JDK 1.5 included), some-cool-java-app that also includes the JRE/JDK it was built on; and then another-java-app that also includes a JRE/JDK... I bet JDeveloper also comes with a JDK bundled in. So, now you have FOUR copies of JRE/JDK (aside from the "have half a dozen" that probably installed themselves via Java Update Checker)!
    Here's the big picture, the savings in disk space would only be the beginning of your benefits. Here's a few others:
    - Class Data Sharing (http://java.sun.com/javase/6/docs/technotes/guides/vm/class-data-sharing.html) introduced in Java SE 5.0 provides for storing definitions of commonly used classes in a representation closer to machine code, even closer than bytecode, this reducing load and startup time. Plus all VM's launced using that particular distribution get to share the cache- Performace+ !!
    Running each app offa' it's own VM just causes multiple caches to be loaded. You just multiplied your losses! :(
    - Sun is currently working on a way to have applications simply inject into a running JVM. That way, there is no load and startup time for the JVM, just the time to load you app classes. Using different distros would completely defeat this!
    (The reason why this feature isn't out yet is because they're still trying to make it possible to specify hitherto VM configurations like security and logging as application configurations. Then there's also the issue of setting up class loading boundaries between applications.
    You say you don't have to bring over the VB runtime
    for each app? I remember in the 90's doing it all the
    time. Of course, being MS, now that's not necessary
    anymore, since it's "magical" Windows. I don't have
    any machine from Sun, but for sure they've got Java
    bundled with it, right?I don't believe you had to do that since VB 5; and that's because MS realized that they messed up on this very point upto then! Sun worked the simple solution to that into their deployment strategy- install only ONE runtime and run all apps off that. As for you're half-a-dozen, I think you can safely uninstall the five older versions; because, even today, people are running apps developed using JDK1.1 on Java SE 6.0!
    Again, I find the most logical difference between JRE
    and JDK being the debugger. As you say it yourself:
    JRE for end-users, who don't need to do any
    debugging.
    Now, sqldev is not just a table browser, but also for
    debugging PL/SQL. 1 + 1 = 2.I think it's a little naive to differentiate between the JRE and JDK on just the debugger! Aside from the obvious inclusion of a compiler, the JDK has several other tools for monitoring/managing the heap, threads and logging on the fly. There's also the Doclet API and Sun's javadoc implementation, dev interfaces for instrumenting the VM, native interfaces, ...
    And I reiterate, we're talkin' PL/SQL developers here. Why would I want to give a PL/SQL developer a Java Development Kit?!? ;|
    Nevertheless, as said in the other thread, if the
    team discloses how to circumvent the SDK check at
    startup, you can go ahead and use the JRE. In any
    case, you'd have to agree that won't work as
    out-of-the-box solution...You're right, it won't work like a standard Windows OOTB app. But, it WILL work as a Java OOTB that only mandates that there be a JRE available; just like the scores of Java apps out there- from tiny little Pong clones to large IDE's like NetBeans.
    BTW, don't even think about quoting Websphere/Rational/Eclipse as counter-arguments. They are the biggest offenders as far as this issue goes. And jikes is an abomination, a curse Sun must carry as a result to opening the VM Spec. But, I digress...

  • Configure: error: Cannot find php-config

    After security update 2008-002 for Leopard, the PHP module builder stops, because the PHP version running on the machine doesn't match the header files from the PHP-developer part. More info see: http://www.naquah.net/blog/dennis/2008/03/20/how-to-get-eaccelerator-working-aga in-after-installing-security-update-2008-0#comment-50
    After editing /usr/bin/php-config
    Change
    version="5.2.4" to version="5.2.5" and
    vernum="50204" to vernum="50205"
    and /usr/include/php/main/php_version.h
    Change
    #define PHPRELEASEVERSION 4 to #define PHPRELEASEVERSION 5
    #define PHP_VERSION "5.2.4" to #define PHP_VERSION "5.2.5" and
    #define PHPVERSIONID 50204 to #define PHPVERSIONID 50205
    the ./configure command stops with a:
    configure: error: Cannot find php-config. Please use --with-php-config=PATH
    even when explicitly specifying the php-config location, the ./configure --with-php-config=/usr/bin/php-config command still throws an identical error.
    The file is there, accessible and not empty:
    $ ls -l /usr/bin/php-config
    -r-xr-xr-x 1 root wheel 3031 22 mrt 21:44 /usr/bin/php-config
    $ head /usr/bin/php-config
    #! /bin/sh
    SED="/usr/bin/sed"
    prefix="/usr"
    exec_prefix="${prefix}"
    version="5.2.5"
    vernum="50205"
    include_dir="${prefix}/include/php"
    includes="-I$include_dir -I$include_dir/main -I$include_dir/TSRM -I$include_dir/Zend -I$include_dir/ext -I$include_dir/ext/date/lib"
    ldflags=" -L/usr/lib/mysql"
    Re installing Xcode 3.0 didn't solve the problem.
    What could be done to repair the (php) configure command, to allow me to build php modules again?

    On my installation I have both NVidia and mesa drivers installed, thus two sets of GL headers/libraries.
    For Mesa: SUNWxorg-mesa
    Nvidia: NVDAgraphics
    If you want to develop on your system you may want to install much more than just GL headers.
    Its a pity that Solaris packaging is not really flexible, so you better do a full install indeed...
    regards,
    __Fedor.

  • Runtime Error "Cannot find system in table file"

    I need assistance!
    I have a Blackberry Curve 8310 and have recently installed Version 4.5
    I am trying to setup my synchronization.  I have followed the steps to setup my calendar to Outlook 2007.  It tells me Congratulations! You have successfully configured the product. However, when I press Finish, I get a Runtime Error "Cannot find system in table file"
    I have uninstalled the program and reinstalled it - the same error appears. 
    Any help would be appreciated!
    Solved!
    Go to Solution.

    FIGURED IT OUT!!!  
    The following steps, which are posted on the RIM Support will work; however, I had to do it a different way.  In Step 1, it states that the ilxolkCompanion.fil is located in C:\Program Files\Research In Motion\BlackBerry\Connectors\MS Outlook Connector path...however, when I searched for this file, it was actually located in C:\Program Files\Blackberry\Connectors\MS Outlook Connector.  (This could be because I upgraded from 4.2.2 to 4.5 w/o completing a clean uninstall...not too sure why)
    Once I located the file through the command prompt, I unregistered as per the instructions in Step 1.  I then followed step 2 exactly word for word...and VOILA!!!  I now have Version 4.5 working with MS Outlook 2007
     ResolutionIf the Connectors folder is still present in C\Program Files\Research In Motion\BlackBerry\Connectors\MS Outlook Connector, follow these steps:
    Unregister the old Microsoft Outlook connector ilxolkCompanion.fil.
    Open the command prompt.
    Navigate to C:\Program Files\Research In Motion\BlackBerry\Connectors\MS Outlook Connector.
    Type in the command regsvr32 -u ilxolkCompanion.fil.
    In Desktop Manager, Microsoft Outlook will no longer be listed as an available desktop application.
    Register the most current Microsoft Outlook connector.
    Navigate to C:\Program Files\Research In Motion\BlackBerry\IS71 Connectors\MS Outlook Connector.
    Type in the command regsvr32 msoutlookconnector.fil.
    In Desktop Manager, Microsoft Outlook will now be registered as an available desktop application.
    Once these steps have been completed, configure synchronization again.

  • Logging Error Message in Console  [Servlet Error]-[Cannot find FacesContex]

    Hi,
    I am using Web Application with JSF . but when i log in into the web appl everthing is fine but in back end i mean the console of RAD Tool having some logging Error message:
    SRVE0026E: [Servlet Error]-[Cannot find FacesContext]: javax.servlet.jsp.JspException: Cannot find FacesContext
    at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java(Compiled Code))
    at com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java(Compiled Code))
    at org.apache.jsp._index._jspService(_index.java:86)
    at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code))
    at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
    at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java(Compiled Code))
    at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java(Compiled Code))
    at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java(Compiled Code))
    So could you please help me find out the solution for this :
    While i am using the code in jsp page:
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <META http-equiv="Content-Style-Type" content="text/css">
    <TITLE>Web App
         <f:view>
              <h:outputText value="#{dataInfo.info}"/>
         </f:view>
    </TITLE>
    Suggest me the solution:
    Regards,
    Prabhat

    This usually means that you call the JSF page the wrong way. Try something like http://hostname:port/servletcontextroot/faces/page.jspx
    --olaf                                                                                                                                                                                                                                                                                                   

  • Azure mobile services error cannot find module 'azure-storage'

    this is driving me nuts for past five days now and still no solution. After asking the questing at StackOverflow and azure-storage npm, I thought of now posting the same question here so that it reaches to more targeted 'microsoft azure' experts. 
    in my AzureMobileService, I am using azure-storage npm module in one of my custom API. I have been using this for past couple of months and it was all working great, I was very happy. Until last moday it started throwing the error - 'cannot find module
    'azure-storage'. It was strange, the code that was working till morning , started failing when I came back from work, with no change of a bit in the code. I get this error where I call 'require' for 'azure-module':
    var azure = require('azure-storage');
    var retryOperationFilter = new azure.ExponentialRetryPolicyFilter();
    var tableService= azure.createTableService().withFilter(retryOperationFilter);
    and in package.json, I have
    "dependencies": {"tracer": "0.7.3", "colors" : "1.0.3", "lodash" :"2.4.1", "azure-storage": "0.4.1"},
    Today, I also tried creating a new Mobile service from scratch in my azure account. Then I created the custom API and wrote the code again from scratch. Updated package.json to include azure-storage, updated my client code(HTML/JS) to use this new service
    URL etc. and tested again, everything worked fine till it reached the same line (require('azure-storage') ) and failed again there with
    same error.
    I am at my wits end. please help. 

    ok, got it working.
    I did an npm install 'azure-storage'  to my mobile service's service directory and then it started working. 
    As I remember reading, if I just include the npm module I want to use in my mobile service's package.json, it gets taken care, installed and I don't to install myself manually.
    And thats what has been happening when my code was working till last week. 
    Also, its feels odd because the other node modules I use - like tracer or lodash - work with no manual npm install. 
    anyways, its working for now, but now I am thinking about the azure mobile's reliability

  • Oracle 11gR1 on Windows Xp Error Cannot find J2SE SDK installed at path

    When I type in path for java.exe in SQL Dev. , I get error 'Cannot find J2SE SDK installed at path: C:\Program Files\Java\jre6.' when I entered the path C:\Program Files\Java\jre6\bin\java. What is the reason for this error? How can I correct it? Database installation said it was successful

    SQL Developer needs the Java JDK not the JRE to operate successfully. Your path looks like a path to the JRE. There is a windows download that comes complete with a Java Developer kit.
    regards
    Niall

  • Configure: error: Cannot find GLX header

    I install gtkglext from its source code and get an error after the 'configure' command.
    bash-3.00$ ./configure
    checking GL/glx.h usability... no
    checking GL/glx.h presence... no
    checking for GL/glx.h... no
    configure: error: Cannot find GLX header
    I guess the OpenGL files are not installed during Solaris 10 installation. Could someone tell me where can I get opengl files? Are they in the Solaris 10 installation disks? How to install opengl files?

    On my installation I have both NVidia and mesa drivers installed, thus two sets of GL headers/libraries.
    For Mesa: SUNWxorg-mesa
    Nvidia: NVDAgraphics
    If you want to develop on your system you may want to install much more than just GL headers.
    Its a pity that Solaris packaging is not really flexible, so you better do a full install indeed...
    regards,
    __Fedor.

  • Compiler error: "cannot find symbol" - constructor

    Dear all,
    I keep getting the compiler error "cannot find symbol" - constructor AWTEvent() for the following class. It's supposed to extend AWTEvent to give me my own event to be fired. What could be wrong?
    import java.awt.*;
    import java.awt.event.*;
    public class MyButtonEvent extends AWTEvent
         public MyButtonEvent()
    }Thanks a lot!
    N

    When you do this
    public MyButtonEvent()
    }you are implicitly calling the super class constructor with no parameters
    That is:
    AWTEvent();
    you can think of it as
    public MyButtonEvent()
         AWTEvent(); // <-- automatically generated for you
         //the rest of your stuff
    }the problem is that AWTEvent has no such constructor, so you need to explicitly put another constructor in your constructor as the first statement. This other constructor has to be one that exists in AWTEvent.

  • Error : 'cannot find symbol getText()'

    please check my java coding. when I compile it, the error: 'cannot find symbol
    getText() ' is appear. What wrong with this coding.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class buatAction
    public static void main(String[] args)
    JFrame f= new JFrame("Contoh Action");
    f.setSize(150,200);
    f.setLocation(200,200);
    f.addWindowListener(new WindowAdapter()
    public void windowClosing(WindowEvent we)
    System.exit(0);
    //setkan button
    final JPanel OK = new JPanel();
    JButton buttonOK = new JButton("OK");
    OK.add(buttonOK);
    final JPanel txt = new JPanel();
    JTextField inputText = new JTextField(15);
    inputText.setFont(new Font("Serif", Font.PLAIN, 12));
    txt.add(inputText);
    Container content = f.getContentPane( );
    content.setLayout(new GridLayout(1,1));
    content.add(txt);
    content.add(OK);
    buttonOK.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    String ayat = txt.getText().getActionCommand();
    System.out.println(ayat);
    f.setVisible(true);
    }

    please check my java coding. when I compile it, the error: 'cannot find symbol
    getText() ' is appear. What wrong with this coding.
    final JPanel txt = new JPanel();...
    buttonOK.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    String ayat = txt.getText().getActionCommand();
    System.out.println(ayat);
    });Final variable 'txt' is a JPanel. JPanels don't have a 'getText()' method; hence
    the compiler diagnostics message.
    kind regards,
    Jos
    ps. better stick your code between [code] ... [/code] tags for readability reasons.

Maybe you are looking for

  • Insane XML Import, Huge Project, Duplicate file names work around...

    I planned on kicking off my journey attempting to edit a massive multi year documentary on FCPX with a nice introduction of the blog I'm going to keep about the experience, but I've run into a bit of a roadblock, or maybe major speed bump at least be

  • Facebook and YouTube app connection

    How do I reconnect the Facebook and YouTube apps to my internet, which is working fine, on my iPad air. The apps work fine on my 5c, but only recently started having network and connection issues.

  • Family share and automatic downloads

    I recently upgraded all my family to iOS 8 and wanted to try and set each one an iCloud account, there are several things that doesn't work with family share and I wanted to make sure that it's not cause I dont k ow how to activate them. 1. iTunes ma

  • Turn off "snap to grid" in Adobe Acrobat Pro XI

    Whenever I create a text box in a PDF or a form field in form editing; the text box/form field 'snaps' to an unseen grid and I cannot place the box/field where I want it. Any thoughts on how to turn this off?

  • How do I change color on visited sites without causing websites to not view properly?

    I go to Content/Colors, change color of visited sites, uncheck "allow pages to choose own colors instead of my selections above". The visited sites change colors, but the websites that I go to do not view properly. They do not have names or headings