Trouble forwarding event( s)

Hello,
I'm having some problem with forwarding the ActionEvent to calling class...
For example consider following Pad class
import java.awt.*;
import java.awt.event.*;
public class Pad extends Panel implements ActionListener
     private Button btn1 = new Button(" 1 ");
     private Button btn2 = new Button(" 2 ");
     public Pad()
          add(btn1);add(btn2);
          btn1.addActionListener(this);
          btn2.addActionListener(this);
     public void actionPerformed(ActionEvent v)
          Object parent = getParent();
          if(parent instanceof ActionListener)
          ((ActionListener)parent).actionPerformed(v);
}Now the following PadUser class works correctly...
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class PadUser extends Applet implements ActionListener
     private Pad mypad = new Pad();
     public PadUser()
          add(mypad);
     public void actionPerformed(ActionEvent e)
          System.out.println("User pressed :"+ e.getActionCommand());
BUT if I made the following changes in the PadUser class then it fails...
public PadUser()
   Panel p = new Panel();
   p.add(mypad);
   add(p);
}Any thoughts....
Edited by: playwin2 on Jul 28, 2008 4:27 PM
Edited by: playwin2 on Jul 28, 2008 4:29 PM

Hello,
I think I found a solution.
Thanks.

Similar Messages

  • Essential event viewer bugs with "Forwarded Events" log in Windows Server 2008 R2 and Windows 7

    To my general experience, Windows event viewer is one of the most problematic, faulty management tools in the case of extensive use of its more sophisticated capabilities. The sole description as well as reproduction of some entangled failures would require
    remarkable effort.
    With the "Forwarded Events" log however, the situation becomes particularly worse in that even simple functionality fails and workarounds are difficult to find. That’s what I’ll describe here in order to share my experience with interested users.
    For precision: I’ve extensively used event viewer on a German Windows Server 2008 R2 SP1 (Windows SBS 2011 Standard SP1). The bugs I found on that system, I could reproduce on a German Windows 7 Professional 64-Bit SP1, too.
    Problem 1: Failure of even simple event filtering
    To reproduce this problem, execute these steps on a test machine with any of the two OS mentioned above:
    (i) To prepare log contents, do either of the following:
    (a) populate some events to your local "Forwarded Events" log (most simply by subscribing events from other logs of the same machine; stop subscription if you have collected some events)
    Or
    (b) copy a non-empty log file "ForwardedEvents.evtx" from another machine (with any of the two OS mentioned above) to your test machine and open the file in event viewer.
    (ii) Navigate to your "Forwarded Events" test log and open the filtering dialog. In the "Includes/Excludes Event IDs" field, type: 1-9000. Click OK.
    (iii) Look at the results pane: Surprise, 0 Events! Do you really have no event IDs between 1 and 9000 in your test log?
    (iv) Another example, if you have forwarded security events in your test log: Clear filter, if any previous filter is in place. Open the filtering dialog. In "Keywords" sub-dialog, choose "Audit Success". Click OK.
    (v) Look at the results pane: Surprise, 0 Events! Do you really have no successful security monitoring events in your test log?
    I’ll finish here. If you have a rich variety of events in your test log available, let your imagination run wild to test around. Finally include some simple manually created or modified XPath filters on the XML tab of the filtering dialog. I promise, you’ll
    find a lot of additional strange results.
    Problem 2: Cannot save manually selected events to .evtx file
    Navigate to your "Forwarded Events" test log. In the results pane, select one or more events by highlighting them by mouse clicks. In context menu, choose "Save selected events". In the "save as" dialog, choose file type *.evtx
    and save your file. Open the newly created file in event viewer. Result: Surprise, no events inside the new file!
    Have more fun with forwarded events
    Helmut

    Did you mean that right click Forwarded Event and select "Filter Current Log..."? Since I can filter correct event vai the "Filter Current Log..." in my Lab environment.
    Hi Justin,
    yes, I mean "Filter Current Log ... " (in my German systems: "Aktuelles Protokoll filtern ... ").
    What do you mean with "my Lab environment" exactly?
    In the meantime, I performed additional tests. I copied the "ForwardedEvents.evtx" test file from Server 2008 R2 resp. Windows 7 to
    (i) German Windows 8 Pro 64-Bit RTM
    (ii) German Windows 8.1 Pro 64-Bit, up-to-date
    in order to view and filter the file there.
    Results: Same event viewer problem on Windows 8 RTM, but correct behavior on Windows 8.1!
    Best regards, Helmut

  • Forwarded events log empty

    Hi all,
    I have a frustrating issue with forwarded events log which still empty when I change the location of this one to the D partition rather than the defaut setting C: (it works fine in C:)
    once I change the location in the proerties of forwarded events to D: a new log is created but still empty.
    Any ideas, please, Thanks

    Hi Justin, 
    I checked the file key in the registry and I have well the new location set as value (D:\forwardedEvts.evtx)
    In the event viewer, on the forwarded events I have this message "event
    viewer cannot open the event log or custom view. verify that event log service is running or query is too long. access is denied (5)"
    Thanks,

  • Forwarding events and clarifying events format information

    Hello.
    I've set up source initiated subscription for auditing file system usage. I need to know what files are added or deleted to the file share resource and by whom. So, subscription is working, and I get such kind of event on
    source server:
    Log Name: Security
    Source: Microsoft-Windows-Security-Auditing
    Date: 08.07.2014 11:23:01
    Event ID: 4663
    Task Category: File System
    Level: Information
    Keywords: Audit Success
    User: N/A
    Computer: fileserver.example.com
    Description:
    An attempt was made to access an object.
    Subject:
    Security ID: EXAMPLE\username
    Account Name: username
    Account Domain: EXAMPLE
    Logon ID:
    Object:
    Object Server: Security
    Object Type: File
    Object Name: *path_to_file_or_folder_here*
    Handle ID:
    Process Information:
    Process ID: 0x4
    Process Name:
    Access Request Information:
    Accesses: DELETE
    Access Mask: 0x10000
    The main thing I need from such event are username, path to file or folder and access information (delete here).
    After transferring such event by event subscription the resulting event on the
    collector server differs:
    Log Name: Security
    Source: Microsoft-Windows-Security-Auditing
    Date: 08.07.2014 9:54:42
    Event ID: 4663
    Task Category: File System
    Level: Information
    Keywords: Audit Success
    User: N/A
    Computer: fileserver.example.com
    Description:
    An attempt was made to access an object.
    Subject:
    Security ID:
    Account Name: username
    Account Domain: EXAMPLE
    Logon ID:
    Object:
    Object Server: Security
    Object Type: File
    Object Name: *path_to_file_or_folder_here*
    Handle ID:
    Process Information:
    Process ID: 0x4
    Process Name: %12
    Access Request Information:
    Accesses: %9
    Access Mask: %10
    So, I have username and path here, but I don't have Process Name, Accesses and Access Mask information -
    Access I need most of all, without it such event is useless.
    Subscription format is Events (RenderedText doesn't bring normal description and writes The description for Event ID 4663 from source Microsoft-Windows-Security-Auditing cannot be found. Either the component that raises this event is not installed on
    your local computer or...). Dll-s and registry paths are the same, only adtschema.dll.mui creation date differs, but there is no registry link to this file anyway. Windows version on collecting and sending systems are 2008 R2. Locales are the same (US). So,
    it there any solution? Thanks in advance.
    Update. Parsing XML view of the event shows, that <Data Name="AccessList">%%1537</Data>
    corresponding to "DELETE" note in General view presents here, but it's not shown. It is shown on the source server. Also, events with Process Name field displayed correctly on the collecting server, but not all of the events has Process Name
    field. Any ideas?

    Hi Queequack,
    To forward Events, please follow this article and feedback:
    Quick and Dirty Large Scale Eventing for Windows
    Best Regards,
    Anna Wang

  • Cisco Context Directory Agent - Windows logs - Forwarded events

    Hello,
    I have a setup testing with Cisco ASA, Cisco CDA and MS 2012 R2. All this works fine. Only problem I encountered is that I want to read the forwarded events on the AD LDS server instead of the security events.
    So in small words is it possible to connect CDA agent with wmi to forwarded events instead of security logs?
    Is this possible?
    Thanks,
    Mark Post

    Hi,
    I applied the solutions mentioned above, but now i get the below error. Domain still shows as down.
    wmi-property
    exception-stack
    org.jinterop.dcom.core.JIRemUnknownServer.call(JIRemUnknownServer.java:158)
    org.jinterop.dcom.core.JIRemUnknownServer.addRef_ReleaseRef(JIRemUnknownServer.java:181)
    org.jinterop.dcom.core.JISession.releaseRef(JISession.java:805)
    org.jinterop.dcom.core.JIComServer.createInstance(JIComServer.java:777)
    com.cisco.cda.rt.adobserver.adobserver.jinteropUtil.getWmiLocator(jinteropUtil.java:40)
    com.cisco.cda.rt.adobserver.adobserver.EventsThread.QueryWMIProperty(EventsThread.java:83)
    com.cisco.cda.rt.adobserver.adobserver.EventsThread.getNetBIOS(EventsThread.java:171)
    com.cisco.cda.rt.adobserver.adobserver.EventsThread.extractDCData(EventsThread.java:203)
    com.cisco.cda.rt.adobserver.adobserver.EventsThread.run(EventsThread.java:599)
    dc-hostname
    dc-name
    exception-cause
    java.net.ConnectException:       Connection timed out
    wmi-class
    Win32_NTDomain
    exception-message
    An internal   error     occurred. [0x8001FFFF]
    wmi-property
    DomainName
    dc-username
    Any Idea on the error?
    Thanks.

  • Trouble Renaming Events in iPhoto 08

    Anyone else having trouble? Basically, I click on the event name, get an empty text box, and can't type a new name into it.

    Guys
    http://docs.info.apple.com/article.html?artnum=306305
    Regards
    TD

  • Interface Builder doesn't let me forward events to QC compositions???

    The problem is:
    Since this morning IB doesn't let me make standalone QC compositions with mouse input. The "forward all events" check box doesn't do anything:/. Its strange, everything was working just fine yesterday. I tried reinstalling developer tools, reseting IBs preferences and nothing helped. What's even stranger is that if i open the MouseTracking.nib from the QC examples folder and simulate, the mouse works fine. but if i uncheck and check "forward all events" then simulate again the mouse doesn't work anymore.
    I don't get it:(.

    Hi Yusuf,
    first u have to get the PRODH from MARA for a give table then  u have to get the text of PRODH frm T179T.
    sample logic :
    SELECT MARA~MATNR
           MARA~PRDHA
           FROM MARA
           INTO CORRESPONDING FIELDS OF TABLE I_MARA
           WHERE MARA~MATNR IN S_MATNR1.
    SELECT PRODH
           VTEXT
           INTO CORRESPONDING FIELDS OF TABLE I_VTEXT
           FROM T179T
           FOR ALL ENTRIES IN I_MARA
           WHERE PRODH =  I_MARA-PRDHA.
    dont use Nested Select Stmts.
    Regards
    Prabhu

  • Forwarding events from my menubar class to main class

    I'm brand new to swing. I'm trying write an app, and wanted to encapsulate my JToolBar and JMenuBar items, so I made classes to handle each of them. Then from my "main" class I could just call a function and voila.
    However the one obvious problem is that my "main" class doesn't know when JToolBar or JMenuBar items have actions. Those classes each handle their own event listening. I was hoping (probably through magic) that I could then forward that action to the main class somehow.
    The obvious solution would be to expose the individual toolbar JButtons and JMenuItems and call addActionListener(this) on those items from the "main" class. However I'm hoping to avoid having to expose those items, probably just because I'm anal.
    One idea that I've seen but seems kind of not-very-elegant was to create an item to track the state of all things, and pass that item around. Then in my individual actionPerformed() functions I could manipulate that item so that the main class could see those changes.
    I imagine I'll have this same issue when I get into more complicated parts of my would-be application than just the menubar. Any help would be appreciated.

    OK so I can define the new actions in my main class and then in my toolbar/menubar items I just tell them to use those main class Actions? Hopefully I have as somewhat firm a grasp on this as I think I have. I'll try that out now.

  • Forwarding Events

    Hello,
    I have implemented a JTree in with custom renderers. Each node is a complex widget. It has a label, a button and a table. Events are intercepted by the JTree, so if I click on the button nothing happens, and when I click on a table's cell I cannot edit the contents. So the cuestion is how I forward these events to the components.
    Thak you
    Joaquin Morcate

    it's better to implement TreeCellEditor with the same component.
    regards,
    Stas

  • Forwarding Events to a central syslog server.

    I need to find an easier way to forward all IDS events to a central Syslog server. I am doing it a cheesy way now by running a macro against the IEV database and extracting the results from the exported file. I used to be able to do this with the Unix Director. Is there an easy way to do this? Is there a raw event file that I could directly transfer from the IDS Sensor?

    The following document should give you a better idea,
    http://www.cisco.com/univercd/cc/td/doc/product/iaabu/csids/csids10/idmiev/swchap4.htm#wp860304

  • Forward events to my iCalendar on mac from subscribed Gmail calendar

    On my iPhone, I subscribe to my husband's gmail calendar. I see the events he invites me to. However, I do not see them on my macbook's iCalendar (I use iCloud). How do I forward those events on my iPhone to my iCalendar? (There is no edit button in the top right corner)

    What version of Mac OS X are you running? If it's 10.7 or later, it's because your Calendars (and Contacts for that matter) are stored in "the cloud" (Apple's iCloud). In order to have the Calendars actually stored on your local hard drive, you need to head to System Preferences -> iCloud and turn off Calendars.
    Then resync your iPod after verifying that it is configured to sync your Calendars from under its Info configuration tab in iTunes.
    B-rock

  • Trouble transferring events in upgrade to iphoto 11

    Hi:
    Please may I ask for some help with iphoto 11? I upgraded a couple of weeks ago and am generally happy with it (the project app is brilliant). Unfortunately I have noticed a problem with upgrading from a previous version of iphoto (I think 09): an event (my daughter's birth) is not showing in the events menu.
    She was born in June, and I had created an event just after her birth.
    So this morning I was concerned when I couldn't find those photos. After a little panic was able to find all the 136 photos in the 'last 12 months' folder. In fact if I clicked on the arrow in the bottom right hand corner of one of the photos, and selected 'show event', it brought up all the photos with the proper event name.
    So both the photos and their association into an event still exist. But I am left with three questions:
    1. Why doesn't the event show up in the main events pane, when so many of my other events have come through?
    2. How do I get it to show?
    3. Might this problem have affected other events, including those from more than a year ago? I was able to find the pictures and event in the 'last 12 months' folder; but I have a lot of photos and events and can't remember if they have all transferred. Am I going to need to go through all of the photos, create new events and move them in one by one?
    I have not rebuilt the iphoto library, so could try that as a first fix if that might be a good idea.
    -Will

    You don't. That was a test, as it says above. We'll try fix the main library:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • Trouble viewing events generated by AIM-SSM-10 on SDEE Server

    Hi,
    Is there a tip that can help me view the xml file produced by the sdee-server in a more convenient fashion. See attached file for more details.
    The events are interlaced with html tags.
    thanks,
    Julie

    Julie -
    If you don't want to read XML, then you would need a script that will parse it into something that is readable.
    I would suggest installing the free IPS Manager Express and pulling events from the sensor you want to see into it.
    Then you can browse events in IME or export them in HTML or CSV format.
    Each sensor can send events traffic to up to 5 event collectors (although it will cost some processing power on the sensor to maintain additional sessions).
    - Bob

  • Trouble forwarding request from a servlet to a JSP in OAS 4.0.8.1 on NT

    The OJSP release notes state that:
    "Servlets and JSP cannot coexist as the same application" and "Requests cannot be passed between two separate applications."
    Does this mean that my attempts to use the
    the servlet RequestDispatcher to forward a request to a JSP are futile? If so, is this a problem that will be fixed in the future? I would like to use this feature!
    This is the code (based on a sample from Sun's JSWDK 1.0.1) that doesn't work:
    servletToJsp.java
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class servletToJsp extends HttpServlet {
    public void doGet (HttpServletRequest request,
    HttpServletResponse response) {
    try {
    getServletConfig().getServletContext().getRequestDispatcher("/jsp/jsptoserv/hello.jsp").forward(request, response);
    } catch (Exception ex) {
    ex.printStackTrace ();
    I am able to use the <jsp:forward page="/servlets/servletToJsp" /> directive to go from a JSP page to a servlet (across two OAS Applications) and I also can forward a request via the dispatcher from one servlet to another in the same OAS application.
    Any help in this area would be appreciated. Thanks.

    I'm using OAS 4.0.8.1
    You mean servlet to JSP does not work and JSP to servlet works for you????Yes - but I've only tried very simply examples.
    That's different from my understanding. If you are using OAS 4081, both cases should not work.
    The problem you mentioned will be fixed in future release of OAS.That's good to know - thanks!
    null

  • Trouble Forwarding HTML Messages with Entourage

    I use Entourage for email at home. Occasionally, I would like to be able to forward an email message to someone and keep the original HTML format intact. I have my preferences set to reply to messages in whatever format they were sent. For some reason, when I try to forward a message with lots of pictures in it, the forward messages just turns into text. Any suggestions?

    Oh wow! I thought it was me. Same issue here; Exchange 2007, and all I get is Plain Text. Yet I can go to another account, and write HTML mail, no problems...

Maybe you are looking for

  • Trigger and rollback on oracle 9i

    hi, i work on oracle 9i. in my database i import csv file in en temporary table and make a trigger to update 2 table after insert. i want to make a csv file wich contain each not good row. i search a way to cancel the first update if the second updat

  • Can't Understand This NullPointerException

    Hey All! I'm working on a program for my church to allow me to maintain the congregational phonebook database and have run into a little snag. I'm using java.util.Logger, in a wrapper class of my own creation called Logging. My wrapper class contains

  • Item category redetermination

    Hi friends I have a requiremnet in VA01 transaction. Requirement :      when iam entering line item in sales order       ie :      material no     quantity       40                 10    after entering the value and press enter it will determine item

  • How does one recover from Downloader:OSX/Flashback.C?

    Hi All, I am pretty sure I dowloaded and installed it on one or more of my machines... It seems that a re-install of Lion is the only way to bring back Lion's XProtectUpdater functions... Is there a thread for fixing this dumb mistake? Cheers, Adam

  • Help a newbie plz

    Can u help answer a few questions plz. Which adobe flash player do u download on the IPhone? Gives me 2 options...option 1 Intel-based macs or Option 2 PowerPC-based Macs. And how can I sent multi messages. Or u can only send one at a time? Why do I