Keyboard events not raised (firing) in JDK1.4

Key events stopped working in my GUI app after I loaded JDK1.4. When I reloaded 1.3, they started working again with no change to code???!!!
I feel pretty confident that the code is correct, not only because ot works in 1.3, but because Forte4J generated it:
addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
formKeyPressed(evt);
private void formKeyPressed(java.awt.event.KeyEvent evt) {
int kee = evt.getKeyCode();
System.out.println("key: "+kee);
Anybody else run into this yet? Suggestions?
Thanks.

How do I make it work in 1.4? Here is the code:
---------- BEGIN SOURCE ----------
public class TestGui extends javax.swing.JFrame {
public TestGui() {
initComponents();
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
jTextArea1 = new javax.swing.JTextArea();
jClrBtn = new javax.swing.JButton();
jTestBtn = new javax.swing.JButton();
getContentPane().setLayout(new javax.swing.BoxLayout(getContentPane(),
javax.swing.BoxLayout.Y_AXIS));
addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
formKeyPressed(evt);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
exitForm(evt);
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel1.setText("Key presses:");
getContentPane().add(jLabel1);
jTextArea1.setEditable(false);
jTextArea1.setRows(15);
jTextArea1.setPreferredSize(new java.awt.Dimension(320, 240));
getContentPane().add(jTextArea1);
jClrBtn.setText("clear");
jClrBtn.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jClrBtnActionPerformed(evt);
getContentPane().add(jClrBtn);
jTestBtn.setText("test");
jTestBtn.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jTestBtnActionPerformed(evt);
getContentPane().add(jTestBtn);
pack();
private void jTestBtnActionPerformed(java.awt.event.ActionEvent evt) {
jTextArea1.setText("test line\n"+jTextArea1.getText() );
private void jClrBtnActionPerformed(java.awt.event.ActionEvent evt) {
jTextArea1.setText("");
private void formKeyPressed(java.awt.event.KeyEvent evt) {
int kee = evt.getKeyCode();
jTextArea1.setText(kee+"\n"+jTextArea1.getText() );
System.out.print("key: "+kee);
private void exitForm(java.awt.event.WindowEvent evt) {
System.exit(0);
public static void main(String args[]) {
new TestGui().show();
private javax.swing.JButton jClrBtn;
private javax.swing.JButton jTestBtn;
private javax.swing.JTextArea jTextArea1;
private javax.swing.JLabel jLabel1;
---------- END SOURCE ----------
Thanks

Similar Messages

  • The apexafterrefresh event not being fired in Chart IR's

    Hi all,
    I am adding additional functionality to IR reports using the plug-in architecture in Apex 4.1.1. A Dynamic action has been added to the "After Refresh" event for the #apexir_WORKSHEET_REGION jQuery selector.
    This works fine in all cases except when no data is found in the report. This has been fixed in 4.2 so I can live with this until the upgrade. However, it also does not work when a chart is created in the report, the apexafterrefresh event does not get raised. Therefore my dynamic action will not fire. Looking at the apex_interactive_reports_4_1.js this event gets raised for the table element with an ID stored in apexir_WORKSHEET_ID ie:
    apex.jQuery('#' + $v("apexir_WORKSHEET_ID")).trigger('apexafterrefresh', that.report_id);However this table element does not get rendered when a Chart is displayed and therefore the apexafterrefresh will not get raised.
    In apex 4.2 the widget.interactiveReport.js has been modified to handle the no data found but not charts:
    var lTriggeringElement$, lWorksheetId;
                            lWorksheetId = $v( "apexir_WORKSHEET_ID" );
                            if ( $x( lWorksheetId ) ) {
                                // If the table element containing data exists (ie when the report returns rows),
                                // use that to trigger the event.
                                lTriggeringElement$ = apex.jQuery( '#' + lWorksheetId );
                            } else {
                                // Otherwise, use the span holding the no data found message.
                                lTriggeringElement$ = apex.jQuery( '#apexir_NO_DATA_FOUND_MSG' );
                            lTriggeringElement$.trigger( 'apexafterrefresh', that.report_id );I have created a test case on apex.oracle.com - http://apex.oracle.com/pls/apex/f?p=41357:1 In this example I simply display an alert from a Dynamic action with the following attributes:
    Event - After Refresh
    Selection Type - Region
    Region - Interactive Report
    As can be seen when the user navigates to the report the alert displays, however when you navigate to the Chart the alert does not display.
    In my mind this is a bug and the IR reports JavaScript should be modified to raise the event apexir_WORKSHEET DIV Element instead. This would fix both issues.
    Any ideas on how to overcome this issue?
    Thanks
    Chris.

    For everyone's information Bug 16029272 - ALERT (APEXAFTERREFRESH EVENT) NOT BEING FIRED IN CHART OF INTERACTIVE REPORTS has been raised regarding this issue.

  • Events not getting fired for templated controls.

    Hi,
    I have an asp.net custom server control, in which I have given template support. The template controls render fine. But, the events of template controls are not getting fired. For example, If I added an asp dropdownlist as a template in my custom control
    and select any item from dropdownlist and raised the postback, the selected item did not get updated in dropdownlist ( i.e selectedIndex, selectedText of the control remains the same as like initial rendering.), also I am not able to trigger the SelectedIndexChanged
    server side event of dropdownlist.
    I have used NamingContainer for rendering the template controls. The codes are as follows,
    <code>
    This is my source:
         private
    ITemplate fileTemplate =
    null;
     [TemplateContainer(typeof(ContentContainer)),
    PersistenceMode(PersistenceMode.InnerProperty),
    DesignerSerializationVisibility(DesignerSerializationVisibility.Content),
    TemplateInstance(TemplateInstance.Single)]
    public ITemplate FileTemplate
    get
       return fileTemplate;
    set
    fileTemplate = value;
    public class
    ContentContainer :
    WebControl, INamingContainer
    internal ContentContainer()
    protected override
    void CreateChildControls()
    this.Controls.Clear();
    ContentContainer container =
    new ContentContainer();
    this.FileTemplate.InstantiateIn(container);
    this.Controls.Add(container);
    base.CreateChildControls();
          public
    override ControlCollection Controls
    get
    this.EnsureChildControls();
           return
    base.Controls;
    Whereas in my application, I have rendered the custom control with template as below,
    [ASPX]
    <mycustom control>
    <FileTemplate>
    <asp:DropDownList
    ID="ddc1"
    runat="server"
    AutoPostBack="true"
    OnSelectedIndexChanged="ddc1_SelectedIndexChanged"
    >
    <asp:ListItem
    Text="Item1"
    Value="one"></asp:ListItem>
    <asp:ListItem
    Text="Item2"
    Value="two"></asp:ListItem>
    <asp:ListItem
    Text="Item3"
    Value="three"></asp:ListItem>
    <asp:ListItem
    Text="Item4"
    Value="four"></asp:ListItem>
    </asp:DropDownList>
    </FileTemplate>
    </mycustom control>
    [Code Behind]
    This event is not getting raised.
    protected
    void ddc1_SelectedIndexChanged(object sender,
    EventArgs e)
     I can get the template control's details here using "FindControl("templateID")". But not able to get the updated details.
    protected void btn_Click1(object sender,
    EventArgs e)
    var template= this.CustomControl.Controls[0].FindControl("ddc1");
    </code>
    Where I am going wrong? Kindly help me on this.
    Thanks in advance.
    Regards,
    Meena

    This is a Windows Phone forum, not a web development forum. Please ask this question at the forums at
    http://asp.net.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Contextual Event - "Currency Change Event" not raised?

    Hey,
    I am trying to raise contextual event on a table when I click on a row. The event type for a table is eventType="Currency Change Event" But is not working.
    Here is the event in the PageDef file.
    <events xmlns="http://xmlns.oracle.com/adfm/contextualEvent">
    <event name="paramValueChangedEvent"
    customPayLoad="${bindings.PolicyId.inputValue}"
    eventType="Currency Change Event"/>
    </events>
    After that I want to raise custom method:
    <methodAction id="testEvent" InstanceName="myBean.dataProvider"
    DataControl="myBean" RequiresUpdateModel="true"
    Action="invokeMethod" MethodName="testEvent"
    IsViewObjectMethod="false"/>
    Here is the event map:
    <eventMap xmlns="http://xmlns.oracle.com/adfm/contextualEvent">
    <event name="paramValueChangedEvent">
    <producer region="*">
    <consumer region="" handler="testEvent" handleCondition=""/>
    </producer>
    </event>
    </eventMap>
    When I raise the event programmatically, then the event is raised and my function is called.
    Here is the code. I call this function on a custom selection listener of the table.
    public void riseCurrencyChangeEvent(String treeID, String nodeID,
    String attributeValuedPassedName) {
    DCBindingContainer bc = ADFFacesUtils.getDCBindingContainer();
    FacesCtrlHierBinding tbl =
    (FacesCtrlHierBinding)bc.findCtrlBinding(treeID);
    FacesCtrlHierNodeBinding node =
    (FacesCtrlHierNodeBinding)bc.findCtrlBinding(nodeID);
    EventDispatcher dispatcher = bc.getEventDispatcher();
    node = (FacesCtrlHierNodeBinding)tbl.getRootNodeBinding();
    dispatcher.queueEvent(node.getEventProducer(),
    node.getCurrentRow().getAttribute(attributeValuedPassedName));
    bc.getEventDispatcher().processContextualEvents();
    My idea is not to call custom method after clicking on a table row, but I want to raise declaratively the event because I will need so generics.

    Hi,
    there is a bug 10045872 filed for this. The bug is scheduled for fixing in PS4 (11.1.1.5) I'll work on a manual - though code centric - alternative for the time being and publish it on ADF Code Corner when done.
    Frank

  • Start automatically CPS job waiting event when event not raised

    Hi,
    how to automatically start at a defined time a CPS job waiting an event, , if the event is not raised ?
    Clement

    Hi,
    You can have another event associated with such job chains(say Event_Force_Start) and define an OR condition in the event expression of the job chain. You can trigger the Event_Force_Start by anothe dummy script that excutes based on scheduled time or a submit frame. Thus yu can start the job at required time irrespective of the event under consideration being raised or not
    Regards
    Raj

  • Buisness Event not raised from People/Assignment screen?

    I found a seeded Business Event for People/Assignment screen : oracle.apps.per.api.assignment.update_emp_asg.
    So, i went and added subsription to it and then tested it. It works fine from Business Event Test page(html framework). However, when i did an Update to Assignment record, I don't see that event fired.
    Q: Doesn't People/Assignment screen raise this event out of the box? Is there any set up we need to do for raising this, without writing code? How can i have Assignment screen raise this event whenever an update is performed?
    I didn't find any documentation for this. is there one?
    Thanks for any help,

    Hi
    Which SRM version are you using ? what's the need to add to add a custom field to the table control ? Any specific buisness requirement ?
    I guess, there is some problem in the code. Please paste the code details.
    Do let me know.
    Regards
    - Atul

  • FM9 FA_Note_FileOpen event not raised?

    Hello,
    we are evaluating FM9 and FDK9 and run into incompatibilities. There are more minor changes
    than the release notes say and probably even more we are not aware of. For now the most
    urgent change is:
    in our plugin we register for notifications/events:
    F_ApiNotification(FA_Note_FileOpen, True);
    F_ApiNotification(FA_Note_PreOpenDoc, True);
    open a book in FM9, double click a document to open and no event raised!
    Any idea how to handle/catch events in the new GUI? Is it a bug or we need to make changes?
    Thank you.
    Regards,
    Viktor

    Hi Viktor,
    While I have had other problems with FDK9 notifications, I could not reproduce this issue. When I open a file from a book, both notifications are received. In fact, the FA_Note_FileOpen gets called twice, where it seems to be called only once in previous versions. I tried with the book docked and undocked, binary FM and non-FM files, and in all cases I get the notifications. I get FileOpen when the book itself is open as well.
    Is there something unusual that you are doing? Have you positively verified that it is the notification that is failing, instead of some other area in the code? There are other issues with document properties such as FP_IsInFront, which doesn't seem to work with FDK 9. Could the problem be somewhere else in your code, perhaps related to one of these other properties?
    Russ

  • Keyboard events not functioning

    I have recorded a piece using Captivate 5 that include slides that should advance with only using the keyboard shortcut of Ctrl. + X....the keyboard shortcut does not seem to work.
    I'm running all pieces in IE, and am wondering if the browser is killing the command to the piece?
    Please advise as to how I can create this function and have it work in IE....much appreciated!!!
    -cgoebelx

    Hi there
    Certain events will always be intercepted by the browser and cannot be overcome. Not sure if Ctrl+X is one but I wouldn't be surprised if it were.
    If you want to be certain, try clicking first on the Captivate in the browser so you are certain the Captivate has focus. Try the keystroke. If it works, it means you simply need to ensure focus is shifted to Captivate before you interact. If it still fails, it means the browser is intercepting the keystrokes.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Keyboard events not registering

    Hi all, this is my first post...
    I'm using CS3, but previously used CS2. I'm using the
    following code:
    function inputDecoder(e:KeyboardEvent):void
    trace( e );
    stage.addEventListener(KeyboardEvent.KEY_DOWN, inputDecoder);
    Some keys are detected upon the press, but most are not. For
    example, when the spacebar is depressed, the following is
    outputted: [KeyboardEvent type="keyDown" bubbles=true
    cancelable=false eventPhase=2 charCode=32 keyCode=32 keyLocation=0
    ctrlKey=false altKey=false shiftKey=false]
    But then when I press the "Q" key, for example, nothing is
    output.
    Is there any reason for this to occur? I'm using a Dell 600m
    laptop, and have never had any problems with the keyboard before.
    Thanks in advance for the help!

    you're welcome.
    and no, you do not. it's only an issue when testing in the
    test environment.

  • Command Link in ADF table is not working/ PPR event not getting fired

    Hi All,
    I am having ADF Table, in that one column is with command link if click on command link, it is not navigating to corresponding page or method of a bean. If i give same command link out of the table it working fine, this issue i am facing is in IE9.
    if i use IE in compatibility mode the links works fine, even in IE8 version also.
    Browser: IE 9
    Jdev version: 11.1.1.5.0
    I tried all possible things, but nothing workout for me.
    showPopupBehavior not working in IE9 for af:table buttons (jdev11.1.1.5.0)
    Partial page rendering not working in ie9
    Command Link in ADF table is not working
    Thnks

    Hi,
    please file a bug if you have a customer support contract and provide a testcase
    Frank

  • Double Click Event not fired for IE 11 with compatibility mode for HTML elemnt table

    Hi,
    I am facing an issue with Double click event(not getting fired on double click of mouse) for IE 11 with compatibility mode on HTML element "table" for Windows 7 64 bit machine.It runs fine on IE 10 with compatible mode with Windws 7 64  bit
    machine -- double click event.
    Can you please help to resolve the issue?
    Thanks and Regards,
    Yogesh

    Hi,
    f12>Debug tab, click the 'start' button.....(select break on all exceptions from the dropdown on the Debug tab)
    click your table and correct any errors that are listed in the Console of the developer tool.... probably you are using attachEvent I/o addEventListener. You should be using addEventListener for IE9 and higher and other web browsers.(it the w3c standard
    (recommendation).
    Post questions about html, css and scripting for website developers to the MSDN IE Web Development forum. Include with your question a link to your website or a mashup that shows the issue.
    Rob^_^

  • My MacBook Air keyboard has become raised and spacebar is not working!

    My sons MacBook Air Keyboard has become raised/warped. The centre point of the raised area is the top left hand corner of the trackpad. I would say the highest point is 2 to 3mm above the normal surface line.
    The first signs of the problem was an inconsistency in the spacebar operation. Now the spacebar fails to operate at all! Apart from the Spacebar the Air seems to perform all other functions normally.
    The raised area /warped area has also created a wobble when the MacBook Air is on a flat surface. 
    Model A1237
    MacBook Air 1.6 Ghz Intel Core Duo
    Memory 2GB 667 MHz DDR2 SRAM
    Serial Number W8806AVHY51
    Software Mac OS Lion 10.7.1
    Thank you for taking the time to read my issue and hopefully provide some guidance!!

    If your Air came with Lion pre-installed you might find it a bit complicated to downgrade. In any event the battery should be replaced under warranty. [My 17" battery was replaced by Apple at the Genius Bar even though the year warranty had expired; they were genuinely concerned since there was a safety issue concerning power!] On the point about your 3 Lion concerns, I note that many on this forum have dealt with similar issues. In my case I purchased a new machine with Lion rather than upgrade my existing Snow Leopard MacBook Pro 13" or iMac 27" and have found there to be no troubles whatsoever. I enjoy the speedy response and smooth execution of tasks on 10.7.2. Good luck with your battery issue. 

  • Batch Events not being raised

    I can't determine why the seeded events oracle.apps.gme.batch.unrelease, oracle.apps.gme.batch.close, and oracle.gme.batch.reopen are not firing. The events are all enabled as are the subscriptions which are set to phase 50. The only batch event which is firing is oracle.apps.gme.batch.release.
    I am assuming that those seeded events for various batch actions should be automatically raised regardless of whether there are Erecords or Esignatures required for them. I am assuming this because Batch Release events are working and the event subscriptions I have created are being picked up as well.
    Does anyone have any idea why those events would not automatically be raised when those actions are taken?
    Thank you!

    I can't determine why the seeded events oracle.apps.gme.batch.unrelease, oracle.apps.gme.batch.close, and oracle.gme.batch.reopen are not firing. The events are all enabled as are the subscriptions which are set to phase 50. The only batch event which is firing is oracle.apps.gme.batch.release.
    I am assuming that those seeded events for various batch actions should be automatically raised regardless of whether there are Erecords or Esignatures required for them. I am assuming this because Batch Release events are working and the event subscriptions I have created are being picked up as well.
    Does anyone have any idea why those events would not automatically be raised when those actions are taken?
    Thank you!

  • Flex 4 does not dispatch keyboard events for ENTER key.

    Hello everyone. I think I have a strange problem with Flex 4 Beta (4.0.0.8909). My application has had event listener for keyUp event for a month now and suddenly (two days ago) I've noticed that keyUp event is not dispatched for ENTER (ALT also) key. Anyone know why? By the way, I've tried this with keyDown event, also 4.0.0.8847 version of SDK - still the same: no keyboard events for ENTER (and ALT) key.
    Here is the sample application that has got this issue:
    <s:Application
       xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/halo"
       minWidth="640" minHeight="480"
       keyUp="application1_keyUpHandler (event)">
       <fx:Script>
          <![CDATA[
             import mx.controls.Alert;
             protected function application1_keyUpHandler (event: KeyboardEvent):void
                Alert.show ("Key up: " + event.keyCode);
          ]]>
       </fx:Script>
       <s:layout>
          <s:BasicLayout/>
       </s:layout>
       <s:TextArea verticalCenter="0" horizontalCenter="0" width="200"/>
    </s:Application>
    If you run this application and try typing anything in a TextArea you will get alerts with key codes. However, if you press ENTER (or ALT), you will get no alert.
    I'm pretty sure the code above is right so that means there is a bug in latest nightly builds of SDK (i would swhitch to an older build if i knew which one does not have this bug).
    Any ideas?

    Flex harUI wrote:
    That's true, but in this case, I think the text editing code is eating ENTER key in order to prevent parents from seeing it and acting on it (like a submit button).  We'll see if we can find a way around that.
    You can get the ENTER key now by listening in capture phase.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui
    The enter key isn't being disposed of by textedit, the attached example code works without error if you a- remove the alert box and b-set the focus to your text area on initialisation. I agree that pressing the enter key then calling a dialog box will result in the enter key being "gobbled up" as  the enter key is overridden by the dialog box code.
    I think the first suggestion should be to anyone don't use dialogboxes for testing code. If for some reason debugging isn't desirable instead of a trace statement a simple label  can be used as a 'fake' trace.
    David
    Message was edited by: David_F57: I worded this wrong, imho there is no need for a work around, the textarea component works as it should. When intercepting 'system' keycodes there is a need to consider the effect of the intercept and code appropriately to that end.

  • HRMD_A IDoc in error not raising an event

    I have workflows enabled for IDocs in error.
    If an inbound order IDoc (ORDERS) arrives in status 51, it triggers a workflow.
    If an HR master data IDoc (message type HRMD_A) arrives in status 51, no workflow is triggered.
    Here is what I have checked:
    Partner profile has me as responsible agent in both cases.
    Both type linkages are active for IDOCHRMD and IDOCORDERS event InputErrorOccurred.
    Both IDocs types are posted in with the test tool and end up in status 51.
    When I investigate the event trace, I can see that an event is raised for the ORDERS IDoc but not for the HRMD_A IDoc.
    There are no errors in the type linkage status column.
    So why would it be that the event is not being raised for the HRMD_A IDoc?
    How can I find out what should be raising the event? I guess that there is a function module call to SWE_EVENT_CREATE or SAP_WAPI_CREATE_EVENT.
    Kind Regards,
    Tony.

    Hi Tony,
    I am a complete novice to workflow but I have a requirement liek yours to trigger workflow for idocs in error, so I was hoping you could point me in the direction of some documentation/steps on how to do this?

Maybe you are looking for

  • DVD Burn Failed-Matshita DVD-R UJ-815

    Please help: I can not burn any DVDs. I am trying to burn some pictures from iPhoto to DVD for storage. I choose the pictures & then hit the burn icon at the bottom of iPhoto. It will run for about an hour but then stops. I keep getting "Burn Failed:

  • Steps involved in validating a server's certificate

    Hello All, I'm writing a custom trust manager and wondering if anyone can tell me all the steps that are involved in validating a certificate presented by the server during an SSL handshake. The following are the things I think are must to check if a

  • Issues importing tagged media from adobe lightroom into adobe organizer12....is it possible? Steps if so?

    So i'm helping my sister in law with digital scrapbooking and she has adobe elements12. I have been trying with no luck to import all of my media from adobe lightroom into her adobe organizer since I already have a ton tagged and it will be easy for

  • RoleAssingment.create() in PAPI -------URGENT PlZ Help

    Hi Guys, For RoleAssignment.create(role : dirOrganizationalRole, parametricValue : paramName, permissions : 255, category : 5) method which is the corresponding Class in PAPI . In studio its there under Fuego.FDI.RoleAssignment I am not able to locat

  • SetInterval passing variables...Need help

    I have a script that I am trying to use the setInterval command to animate a textfield on the stage. I have a sample script that works and passes the value of this._y to the fly function but it uses onEnterFrame since it is created using movie clips