Using 1.3 Action Framework, JButton firing strangely...

I have a bunch of AbstractActions in an array, like so:
     AbstractAction posHousingActions[] = new AbstractAction[] {
         new AbstractAction("", UP_ARROW_ICON) {
              public void actionPerformed(ActionEvent evt) {
               System.out.println("Building House");
               buildHousing(HOUSE);
         new AbstractAction("", UP_ARROW_ICON) {
              public void actionPerformed(ActionEvent evt) {
               System.out.println("Building Large House");
               buildHousing(LARGE_HOUSE);
          },...Then (in the same method), a for loop that uses this array to generate custom arrow buttons:
for(int i = 0; i < NUM_OF_HOUSING_TYPES; i++) {
         JButton newTopArrow = new JButton();
         newTopArrow.setMargin(buttonI);
         topButtons.add(newTopArrow);
         newTopArrow.setAction(posHousingActions);
*topButtons is a JToolBar.
When I click on one of these buttons, it flickers extremely briefly, then does nothing. The System.out in my ActionPerformed does not go off, and the button does not stay 'pressed' if I hold the mouse button down.
I was sure I wasn't spelling 'actionPerformed' right, or something like that, but after going over and over it, I'm stumped. Any help is greatly appreciated. Thank you,
Bret

To anyone who may also have this problem, I've solved it; I had another component that was constantly requesting the focus. Apparently, the button was retaining the focus just long enough to blink in response to the click, but not long enough to fire the event, or stay 'clicked'.

Similar Messages

  • What method is used to take action of Enter button in keyboard?

    I doing exercise about GUI.
    One ex ask me type a number in one JTextField object, press Enter and then another converted number appear in the second JTextField object. This ex are not allowed to use a JButton object. I have no idea about what method to use to take action of pressing Enter. Please help me.
    Thank you

    Encephalopathic wrote:
    codingMonkey wrote:
    Interesting. I never knew that.Did you really not know, or are you trying to tell me in a nice way that my answer is full of chit (it's been known to have happened before and I know will happen again)?I really did not know that. It is an interesting little fact that might come in useful someday. :)

  • Oracle BI EE 11g – Action Framework - Invoke a Java Method from Action links

    Hello All,
       I have a requirement to save OBIEE 11g report into shared drive. I have created a EJB by using the below link and successfully deployed the application in server(bi_server1) .
    http://www.rittmanmead.com/2010/09/oracle-bi-ee-11g-action-framework-java-ejbs-and-pdf-watermarks/
    When Im trying to call Invoke a Java method, it is showing "No Content" . Can anybody please share with me the sample "ActionFrameworkConfig.xml" file used for Invoke a Java method.
    My OBIEE version is : 11.1.1.7.131017
    Thanks.

    1. check your t3 port no, in my case it's 7001.
    so i changed "<jndi-url>t3://localhost:9704</jndi-url>" to "<jndi-url>t3://localhost:7001</jndi-url>"
    2. if you run obiee 11.1.1.6.0 above, you don't need below.
    <credentialmap>oracle.bi.actions</credentialmap>
    so please drop this line.
    3. restart your server and check there's no error log when loading ActionFrameworkConfig.xml.
    Good Luck !!!

  • How to use one Assign action to create multiple context variables

    Hello, everyone.
    I read some tips from Oracle documentation that said:
    Avoid creating many OSB context variables that are used just once within another XQuery
    Context variables created using an Assign action are converted to XmlBeans and then reverted to the native XQuery format for the next XQuery. Multiple "Assign" actions can be collapsed into a single Assign action using a FLWOR expression. Intermediate values can be created using "let" statements. Avoiding redundant context variable creation eliminates overheads associated with internal data format conversions. This benefit has to be balanced against visibility of the code and reuse of the variables.
    Oracle® Fusion Middleware Performance and Tuning Guide
    +11g Release 1 (11.1.1)+
    Part Number E10108-03
    But I don't know how to do that. Can you show me ?
    Thank in advance
    Edited by: Doubt_Man on Aug 17, 2011 3:30 PM

    if you return sequences, you can declare the return type of your xquery as xs:double*
    (notice the asterix at the end)
    but I have the impression that in the assign action only the first element will be assigned to the context variable
    (correct me if I am wrong)
    So in fact you might indeed have to transform the sequence into a element()*, or concatenate it into a CVS string - for instance using string-join
    http://www.xqueryfunctions.com/xq/fn_string-join.html

  • Problem with SubmitButton name across screens, which use the same action?

    I am using multiple submit buttons in a single JSP. The problem i am using the same action across 4 screens, and excpet the 1st screen the remaingin 3 screens have BACK & Continue button, in every page the click of back button should take back to the previous screen and continue should submit the options selected to the next screen;
    The problem is i m using to LookupDispatchAction to handle multiple submit buttons, and i m using this for buttons
    <html:submit property="method"><bean:message key="reg.bt.back"/></html:submit>
    In resource bundle reg.bt.back=Back , but i need to pass to the previous screen so how to do that
    Help needed............
    Thanks in Advance

    why can you not store the information you require in the session?
    session.setAttribute("attributename" <attribute object>);
    surely that would negate you needing to pass parameters though the http?
    but otherwise there are several ways to do this, first of all you could simply rewrite the URL, which i'll admit is slightly labour intensive, but it would do the job... of if you really wanted you could put hidden html values throughout your page, and populate them with the data you wish you pass in your request, as long as the hidden inputs are in the <form> there should be no issue here.
    N.B. you are right, i would never suggest using JS for ANYTHING to do with sessions and submitted/retrieving data when you are using a JSP.

  • Action Framework in OBIEE 11g

    Hi All,
    I wanted to know whether the action framework in OBIEE allows us to perform some post processing on a report. I need to first obtain a report in OBIEE then swap values in a column based on a mapping table and then email the report to a list of users.
    Thanks,
    Nikita

    Hi Ram,
    Here are a couple URLs with examples on those types of actions.
    Java Method example
    http://www.rittmanmead.com/2010/09/oracle-bi-ee-11g-action-framework-java-ejbs-and-pdf-watermarks/
    Invoke Browser Script
    http://www.rittmanmead.com/2012/07/navigating-to-bi-content-in-obiee11g-and-passing-multiple-parameters/
    Invoke an HTTP Request
    This is a way to create a simple http GET or POST method, you can google around and find any number of examples on this.
    JB

  • New task assigned to user from CurrentItem:UserField using Assign task action is assigned to different user.

    Hello ! 
    I have run into "funny" problem. 
    I have following workflow:
    User is creating item in ListA. In new form he needs to put Manager which is User Field column type. From people picker he is choosing login name Domain\jo (Two letters seems to be important here). User is resolved correctly to John Doe. Item is saved and
    added to list correctly. In list view John Doe is displayed in Manager column. In view item John Doe is in Manager field. In powershell Id;#John Doe is as a Manager field value. 
    Now the "funny" part:
    After item is added to ListA workflow is started automatically. Workflow is assigning new task to user from Manager (CurrentItem:Manager) field using Assign task action. Now the new task is assigned to different person i.e. John Dimagio with login name DOMAIN\jod
    ! When I am logging value to wf history of the CurrentItem:Manager field I am getting sth like i;123#DOMAIN\jod . So value is completely different and wrong. 
    Can someone explain why is this happening? 
    My guess is that using two letters login name can cause such case but why ?
    Regards,

    Hello ! 
    I have run into "funny" problem. 
    I have following workflow:
    User is creating item in ListA. In new form he needs to put Manager which is User Field column type. From people picker he is choosing login name Domain\jo (Two letters seems to be important here). User is resolved correctly to John Doe. Item is saved and
    added to list correctly. In list view John Doe is displayed in Manager column. In view item John Doe is in Manager field. In powershell Id;#John Doe is as a Manager field value. 
    Now the "funny" part:
    After item is added to ListA workflow is started automatically. Workflow is assigning new task to user from Manager (CurrentItem:Manager) field using Assign task action. Now the new task is assigned to different person i.e. John Dimagio with login name DOMAIN\jod
    ! When I am logging value to wf history of the CurrentItem:Manager field I am getting sth like i;123#DOMAIN\jod . So value is completely different and wrong. 
    Can someone explain why is this happening? 
    My guess is that using two letters login name can cause such case but why ?
    Regards,

  • With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?

    With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?
    I have developed a form with fields hidden by default, that become visible based on box ticked or radio button selections.
    My problem is that, when I close the form and re-open it, it comes back to it's default presentation, regardless of the information already recorded in the form (including in the now hidden fields.
    How to correct that
    Thanks in advance for any hint you can provide.

    I've had the same problem. This solved it...
    Go to the "Form properties..." in the File-menu. Select "Run-time" to the left and in the box "Scripting" Preserve scripting changes to form when saved: choose Automatically (Script-based state changes are saved locally in an insecure fashion. This option cannot be used for certified forms).
    Hope it works for you to...

  • Error when using Web service Action Block.

    Hi All
    I am calling recursive function in my transaction.Means same transaction i am calling inside a transaction.I have used the Webservice Action block to call the transaction.
    I have passed the parameters whatever is requied.
    But I am getting error when i am executing the transaction:
    "Error invoking Webservice Action: Status(500):Internal Server Error".
    Please suggest me on this.
    Thanks in advance.
    Regards,
    Manisha

    Hi Vishal
    This transaction is trying to achieve the recursive function.
    I want to call the same transaction within a transaction.So i have used WebService action block to call the transaction.
    I have passed the input parameters whatever required.I have given loginName and password as my server login name and password.But when i am executing the transaction, I am getting the following error:
    "Internal Server Error"
    If any idea please suugest me.
    Thanks,
    Manisha

  • [svn:fx-trunk] 16929: Add a [Mixin] class that will register the required class aliases in the event the mxml compiler generation   [RemoteClass(alias="")] code is not called because an application does not use the Flex UI framework .

    Revision: 16929
    Revision: 16929
    Author:   [email protected]
    Date:     2010-07-15 07:38:44 -0700 (Thu, 15 Jul 2010)
    Log Message:
    Add a class that will register the required class aliases in the event the mxml compiler generation  [RemoteClass(alias="")] code is not called because an application does not use the Flex UI framework.
    Add a reference to this class in the RPCClasses file so it always gets loaded.
    QE notes: Need a remoting and messaging regression test that doesn't use Flex UI.
    Bugs: Watson bug 2638788
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/rpc/src/RPCClasses.as
    Added Paths:
        flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/RpcClassAliasInitializer.as

    Great exercise to document the problem like this.  It got me thinking about how an app with modules would be different from an app that does not use modules.  Solution: I moved the dummy reference of PersonPhotoView out to the main application file (as opposed to being inside the module) and it worked.  I've probably been lucky not to have experienced this problem earlier, because for most other entities I have an instance attached to my model which is linked / compiled with the main application.

  • Can we use same SOAP ACTION in different environments?

    Hi All,
    I have a doubt.
    Can we use same SOAP Action URL in different environments i.e suppose say Quality, Production and Pre production.And the Target URL is different in both environments.
    If yest what is the impact in different environment.

    Hi ,
    SOAP action is nothing but operation/method in webservice .
    Usually at end system end as a good practice/std they will maintain the same soap action name in all their environments,but it's always better to cross check url and soap action with end system folks before configuring in PI .
    We have faced an issue in production some time back ,at target system end they upgraded their server and used new wsdl which is almost similar to existing but one of the operation they duplicated by adding few addition fields but forgot to inform PI system.Though we are using new wsdl but pointed to old soap action .Interface got failed in PROD after investigation we come to know that we are using wrong soap action
    Regards
    Venkat

  • Windows Client MP is using the default action account to write to the Data Warehouse

    Hi,
    I have recently installed SCOM 2012R2, and am in the process of migrating everthing from SCOM 2007R2.
    Just after I installed the Windows Client MP (version 6.0.7250.0), I started getting this Event 11852:
    OleDb Module encountered a failure 0x80004005 during execution and will post it as output data item. Unspecified error
    : Cannot open database "OperationsManagerDW" requested by the login. The login failed.
    Workflow name: Microsoft.Windows.Client.Win7.ComputerGroup.MemoryTrendsRAM
    Instance name: Microsoft System Center Data Warehouse
    Instance ID: {16781F33-F72D-033C-1DF4-65A2AFF32CA3}
    Management group: 2012SCOMDEV
    This is happening every 7 days and only happening on the Win7 Management pack. I checked the DW logs and found that it was using the default action acount (SCOM ACTION)to send to the DW.  This account doesn't have access to the DW DB.
    I assume it should be using the Data Warehouse action account.  This is how the acount is setup
    Can anyone tell me where I'm going wrong here?  I have not had to touch the permissions for any of the other Management packs.  the rest of them just work.

    For this issue, you can check below link
    http://blog.metasplo.it/2014/01/scom-2012-oledb-module-0x80004005.html
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"Mai Ali | My blog:
    Technical | Twitter:
    Mai Ali

  • Using Update data action to update data in job data component

    hi, I'm trying to update data in job component using CI_JOB_DATA, im setting action as updatedata. but i'm getting error.
    "UPDATEDATA - updating existing keyed child records
    Example - updating an existing row of data by using the key value(s) and enough child fields to single out the distinct record. "
    Is the above statement correct?

    For example ExceltoCi uses ComponentInterfaces to load data.
    Snipet from PeopleBooks:
    PeopleBooks > PeopleTools 8.52: PeopleSoft Component Interfaces > Using the Excel-to-Component Interface Utility
    UpdateData.
    Use this option to update specific non-key values that already exist. The system uses the keys to locate the row, and when a match is found, the row is updated with new data. If a key match is not found by the system, it displays an error message indicating which collection was missing a key match.
    When using the UpdateData action, you must provide all keys for the collection for the system to modify the data.
    Note. If you want to insert an effective-dated collection at Level 1 containing a child collection at Level 2, you may need to use UPDATE to insert the parent row at level 1 and then use UPDATEDATA to insert the child row at level 2. This is because child rows are copied forward from the current effective-dated collection as a result of the insertion of a new effective-dated parent row. These child rows will be updated by the component processor with the new effective date, and may have the same level 2 keys as the Level 2 child row that you are trying to submit from ExcelToCI.

  • Can we use ejb in struts framework?

    can we use ejb in struts framework?I need the reasons for both yes or no answers.

    This question is not appropriate for this forum, which deals with the J2EE SDK. Have you looked at the Struts documentation? Have you performed a Google search? If you had, you would have found the answer....
    -Ian Evans

  • How to use classes in Actions tab

    Hello guys!
    I'm just a beginner so i'm sorry for my stupid question.I'm developing a game in which movie clips in our case people have their own schedule.I have multiple screens and so i want to be able to set their locations and make them invisible on other screens(rooms)they're not currently at.The trouble is i can't use variables from Actions in my class,neither can i use classes in my Actions.Can anyone tell me how to export classes into Actions code?
    Here is my code:
    var currentlocation;
    var currentscreen;
    if (person.currentlocation!==currentscreen){
    person.visible=false;
    btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
    function fl_MouseClickHandler(event:MouseEvent):void
              currentscreen = "classroom";
              classroom.visible = true;
              playroom.visible = false;
    btn_2.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_2);
    function fl_MouseClickHandler_2(event:MouseEvent):void
              currentroom = "playroom";
              classroom.visible = false;
              playroom.visible = true;

    Your problem/question is not clear to me.  If you are getting errors you should include the error messages in your posting.
    Could the problem arise from using a variable that is not defined?
    currentroom = "playroom";
    I do not see currentroom defined as a variable anywhere.  There is a currentscene variable though.

Maybe you are looking for

  • How can i watch video on IPAD screen with Apple TV?

    i have apple tv and itune libary on the same network. i am wondering if i can watch movies stored in the libary on the ipad screen without turning on the tv or the computer. i have no problem watch the movies on TV thru apple tv. thanks.

  • Undefined symbols into libdbxml-2.3.so

    Hi all, I've built the berkeley dbxml in the linux x86 environment using the buildall.sh script from the distribution. When I execute the command 'ldd -d' on the libdbxml-2.3.so library I get the following output: dhazin@softaria-local:~/distrib/berk

  • Synch of two AVCHD clips doesn't work now

    I (like I've done many times) import two AVCHD camera clips, select them both, and select synch - a Synchorinzed clip is created but its out by about .5 sec. Any ideas?

  • What is the best AIR render mode?

    In Flash Professional Help / Publishing AIR for Android applications (http://helpx.adobe.com/flash/using/publishing-air-android-applications.html) I found the following: =========== Render mode Allows you to specify which method the AIR runtime uses

  • Cfscript

    I have a client side button that, when clicked, links to a server side page with delete queries. However, I must give the user a confirmation message making sure they really want to delete the current record. I am attempting to perform this via JavaS