Response to mouse click by combo box list and underlying clickable label

Hello,
we developed a label responding to a mouse click by opening and thereby displaying an associated help text. The label extends a project specific hierarchy of labels and thus implements MouseListener, of course. Now we encountered a strange problem: It occurs when a combo box is placed above such a label in a panel. By clicking the combo box a selective list drops down and covers the label. As soon as a mouse click is performed on a list item directly covering (i.e., right in front of) the clickable label not only this item is selected but the help screen associated with the underlying label is displayed, too. So the mouse click is processed twice: as proposed by the combo box and unwantedly by the label. This behaviour could not be reproduced on other components being placed below a combobox. So the label itself seems to be the cause but we cannot imagine what could exactly be the reason for this double reaction. Perhaps anyone heard of something like that?
We are currently working with IBM Visual Age for Java 2.0 (Java version 1.1.8 with the according Swing version). The clickable label reflectively calls methods of a model to determine whether help is available and if so later on to open this help text.
Any help is appreciated!
Danilo

Thank you for your response. I tried both to check the focus and to consume the event. But I had to learn that labels are not able to catch the focus. I also was not able to consume an appropriate event of the combobox. So I finally solved the problem by extending JButton and implementing ActionListener. Thus my labels are actually buttons but I changed their appearance and behaviour so one cannot distinguish them from labels.

Similar Messages

  • Add items to a combo box list if not in existing list

    I'm trying to set up a combo box for an expense report form.  I want users to be able to select an account from an existing combo box list or to add an account to the list if it doesn't exist already.
    Ideal situation:
    For example, the user has "Office Supplies" and "Meals - Business Related" as existing options in the combo box.  They need to enter a parking expense, which doesn't exist on the list, so they type in "Parking" in the combo box. They attempt to advance to the next field.  A message box pops up and says, "Do you want to add "Parking" to your list of expense options?  They click "Yes" and the combo box will now include Parking in the future.
    Any assistance would be greatly appreciated!

    George,
    Do you know of a way to save the list addition to the original file without saving any new form data with it? In other words, I would like the item to be on the list when the document is opened in the future, but if they just save it, it will save with the form data they've just entered.
    Thanks!

  • Programmatically Change Combo Box List

    Hello,
    I searched heavily on these forums and found answers that were close, but I cannot quite figure out the following:
    I have a large number of individual RF assemblies, most having the same test requirements.  My plan is to create a combo box (or similiar) from which the assembly number can be selected.  This box will then provide a numeric value to a case structure, which will then provide the need test parameters and what not.
    I know the combo box list can be populated with a property node and the property node fed by an array.  It is my hope to be able to put this info in a spreadsheet file that can be updated as necessary and then imported into the VI at run time.  Therein lies my problem.
    Using the strings and value[ ] property, I can make the combo box work correctly, but I cannot figure out how to import the spreadsheet into the proper format to feed the property node.  I've tried various spreadsheet import schemes offered on these forums, but none quite hit it.  I've tried to figure it out on my own, but I'm just spinning my wheels.
    Any help would be appreciated.
    Thanks.
    Attachments:
    PullDown_Module.vi ‏30 KB

    Hello,
    I've attached a VI that I think will help you.  I actually used the Index & Bundle Cluster Array function, which I don't think I've ever used before.    Anyway, this function gets the two arrays of strings from my tab-delimited text file and manipulates them into an array of clusters containing two strings each, which is the data type required by the StringsAndValues[] property of the Combo Box:
    I hope this gets you started in the right direction.  Good luck!
    -D
    Message Edited by Darren on 03-17-200602:18 PM
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman
    Attachments:
    Combo_Box_Screenshot.jpg ‏100 KB
    Combo_Box.vi ‏27 KB
    data.txt ‏1 KB

  • Regarding  input combo box list of values

    Hi,
    I am using JDev 11.1.1.5.0
    I used the input combo box list of values in adf application based on VO.When I type a value in the input combo box and press TAB key,it gives first item of that list rather than that entered value and when I open the list, it shows the repeating values of the first item.
    Please suggest me some solutions.

    Hi,
    hard to say based on your description. Try with 11.1.1.6 or 11.1.17 and if it reproduces, provide a test case based on the HR schema. Is that an option ? Then send it my way in a zip file renamed to "unzip". My mail address is in my OTN profile, just follow the named link left to this reply
    Frank

  • Populating Combo Box list value In Multiple Row

    Hi,
    i to have the same problem .
    I have used add_list_element to populate the list value of the combo box in multiple row.
    I am selecting the list value from the database where the combo box value will be different for each row. However, when i do this.
    All the previous row combo box list value will follow the combo box value in the last row. How can i resolve this?
    i tried with lov but hasnt had any sucesss.in case of LOV can we make the list to appear automatuically and select a value????i havent had much sucesss over it??
    is thr any work around for this apart from lov?

    Hi,
    which product or technology are you talking about ?
    Frank

  • Combo box list update or insert restriction

    Dear all,
    I have a list item which type is combo box.
    it shows the Departments list from the department table at run time.
    i populate at through a procedure at runtime.
    problem
    the user could update the list by writing something into it.
    i want to force the user to just select a value from the list, not update or insert.
    i change the properties of the list item which prevent insertion or updation,
    but it disable the selection from the list as well.
    how to prevent the user to write something in the combo box list while giving him the
    selection authority using the combo box list item?
    Thanks and Regards

    thank you dear,
    but i want to use the combo box instead.
    for popup list there is a problem of the null value,
    you must assign a value to the popup list and set its required property to true for doing so.
    and the combo box do not need this. and my desired functionality require it.
    Edited by: Muhammad on Feb 28, 2010 3:10 AM
    Edited by: Muhammad on Feb 28, 2010 3:21 AM

  • No matter where I click a black box appears and on the left side a black box telling me where my cursor is at the moment. How do I get rid of those black boxes?

    No matter where I click a black box appears and on the left side a black box is telling me where the cursor is at the moment. How do I get rid of it?

     ▹ System Preferences ▹ Universal Access ▹ Seeing ▹ VoiceOver: Off

  • Using wildcards in combo box list

    Is it possible to key in the first letter of a member and retrieve all matches? For example, key in the letter A in the combo box and the drop down list is all of the members starting with the letter A. If so, how?This is for a product dimension that is sorted by sku number. Therefore the aliases are not sorted. Just trying to make it easier to scroll and make a choice.Is another way better? I am trying to use the "AddItem" method.Thanks!

    Hi Cletis,You can query the VB API using the EsbOtlQueryMembers function to get member that start with a specified member.. You will do an ESB_WILDSEARCH query type and will specify the string to search for in the pszString1 field of the ESB_PREDICATE_T argument to the function.Alternatively (or additionally), download the free source code for the EssQuery component that we give away on our website (www.appliedolap.com - technology downloads section). You should be able to use this code directly in your Excel code.. Note you may need to change the essbase api declarations to fit your version of Essbase (a pain I know.. This is the reason we created a entire web-service-based API for our ActiveOLAP product and eliminated the need for the Essbase client).Good Luck.. It was good seeing last week at the Nashville User Group meeting.TimTim TowApplied OLAP, Inc

  • Analyzer 6.1 Combo-box list sort

    Does anyone know of an easy way to sort lists in combo-boxes (or check-boxes, etc...)? Thank you for your help.

    You may want to try the following.Make sure:1) you have sourced out anlayzer.sh script2) Use the set command to set the path and ICU_DATA3) Turn On ADM tracingessbase connection issue\unable to connect to essbase from analyzer 6.1Note____To Resolve:1. Verify the Essbase installation\API directories are on the machine.2. Verify the following "strings" have been appended to their correspondingEnvironment Variable for Analyzer and Essbase:(Examples below)For SOLARIS:Variable: STRING:ARBORPATH /opt/olap81PATH $ARBORPATH/bin:$PATHLD_LIBRARY_PATH $ARBORPATH/dlls:$ARBORPATH/bin:$LD_LIBRARY_PATHPATH /opt/hyperion/analyzer/adm/bin/solaris:$PATHLD_LIBRARY_PATH /opt/hyperion/analyzer/adm/bin/solaris:$LD_LIBRARY_PATHICU_DATA /opt/hyperion/analyzer/adm/bin/solaris/HssEssDriver/I had the similar error message and adding the above to the path resolved the issue.Regards,Peter Tupker

  • Setting value in input combo box list of values programmatically.

    Hi,
    I have the following requirement.
    I have a combo box LOV defined in the column of application table. Whenever the user is trying to change this value, I need to check for a condition and invoke a warning popup with yes/no button and allow the user to change if dialog outcome is 'yes'. If the outcome is 'No', then i need to reset the combo box to its original value. To do this, in the valuechangelistener of LOV, I am invoking the warning popup and control will coming out of the valuechangelistener and dialog listener will be called.
    How do i set the combo box value in dialog listener ? and How do I retain the existing value of the LOV if user clicks on 'No' button.
    Jdev Version : Build JDEVADF_11.1.1.7.0_GENERIC_130226.1400.6493
    Thanks in advance.
    Harish

    You could, for example. store both of them (old value, along with new one) in the pageFlowScope. You can do that in the valueChangeListener (before calling popup), and use them in the dialog listener...

  • Combo box list getting widened while selecting

    I have an application , which have combo boxes inside a DIV tag.
    When the length of one the item in the list box is greater the specified length of the combo box, the display of the list gets widened and the combo box widens to the lengthiest items' length and it looks odd.
    I want the options to fit to the length of the combo box specified.

    Could you post a link to a page (actual page or test case) demonstrating the problem?
    How are you constraining the width of the <select> control -- have you tried CSS max-width?

  • Combo Box - List Value Property

    I have a combo box in a form (Forms 10G) which is populated at runtime using values from a parameter table.But when I generate the form it gives a warning message that the list item property has to be filled .
    The combo box should display only the values from the database but it should not have any default values.
    How can I supress the warning message and avoid entering the list values proeprty at design time.
    Thanks in Advance.

    The warning is part of forms functionality, but is just that, a Warning, and the form should compile if not an error exists. Not sure if there's a way to suppress it, and You can simply leave the list with no values in Your design, as You will provide them at runtime. If coding is ok Your list should display the values You extract from the DB

  • Combo box displays value instead of label

    I have several combo boxes on a vi that will occasionally start displaying the value of an certain items instead of the string label when an element is selected. The only way to fix it is to deleted the combo box and replace it with another. This has happened several times on the same vi. Sometimes it is ok when the vi is run in the IDE but shows up in an executable. Is this a bug?
    Thanks,
    Bill F

    I think this is to be expected. Your control will have a value with no associated text.
    It would be much more dangerous if LabVIEW would randomly change (e.g. coerce) the value when the strings array gets shorter by some mechanism.
    You have several possibilities, for example:
    (1) Check the value and coerce to the highest valid entry or switch to entry zero.
    (2) Keep the array of strings at constant size, but replace the unwanted entries with empty strings (see attached), the string "out of range", "invalid selection", or similar.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ComboMOD.vi ‏24 KB

  • Combo box, ring and event to modify them runtime

    Hi,
    I attached a picture of the block diagram. Using LV 8.2.1, win XP.
    What I want : User should select from Main Selection, and that brings up new values for strings in the other menus (tried both combo box and menu ring items).
    Teh problem : This block doesn't do that. Why? Looking with probe, I see the event captured and data are ok until the property node. They are not writed and on the front panel I see no difference.
    Thanx
    Attachments:
    double box test.jpg ‏97 KB
    Test doppio ring.vi ‏21 KB

    Slyfer wrote:
    I thought that the code inside the while loop but outside the event structure wasn't care.
    So if I want to do something continuosly (for example continuosly comparing two integer values to have a real-time boolean led indicator on front panel), do I put the code in the middle? This is a bit confusing thinking about the "timeout event"....
    Use the timeout event or put in the middle (=outside event structure but inside while loop.... at which CPU rate is executed?? too fast?) ??
    Just a suggestion. The timeout event for the Event Structure [ES] is equivalent to that of providing a small delay inside the while loop.
    But it is not mandatory. If you dont wire some value to the timeout terminal, but still want to something, like comparison, you can very well put that code outside the ES but inside the while loop. It ll execute.
    Else you can wire a value like 50 or 100 to the timeout terminal [ this gives enough time for the execution of the various codes inside the various events configured for the ES], so that the ES times out for every 50 or 100 ms when none of the other events occurs. If you put your comparison code here, it ll be doing the comparison all the time or whenever the ES waits and crosses the specified ms after an event has happened.
    I hope this gives you a clear idea about eventstructures.
    See the below links for more details on Event Structures.
    http://zone.ni.com/devzone/cda/tut/p/id/3331
    http://zone.ni.com:80/reference/en-XX/help/371361B-01/lvconcepts/using_events_in_labview/
    http://zone.ni.com/reference/en-XX/help/371361B-01/lvhowto/caveatsrecmndtnsevnts/
    - Partha
    LabVIEW - Wires that catch bugs!

  • The leftmost item in a blog doesn't response to mouse click.

    In this blog, hantudunia.blogspot.com, I tried to click an item on the leftmost "Histeria" tab, but no finger pointer appear, but adjacent item to the right is clickable. When I used Internet Explorer, all items are clickable. Is this Firefox problem?

    Hmm... I noticed if I moved the mouse pointer slowly along the bar there were live and dead spots on the left side of the menu. To see what was there, I right-clicked the dead spot and chose Inspect Element (Q) from the menu.
    It turns out to be a widget for Google advertising that seems to have a fixed position, so depending on your window size and zoom level, it may block something different. (See attached screen shot).
    Traditionally, Internet Explorer lets you click through a transparent element, so that could explain why this is not an issue in IE.
    As a temporary workaround, you can use zoom (Ctrl+ and Ctrl-) to move items around in relation to the unclickable area. To attack it more permanently you could use either:
    * An add-on like [https://addons.mozilla.org/firefox/addon/remove-it-permanently/ Remove It Permanently] (I haven't used this for a long time)
    * A custom style rule (we could help with writing the rule and explaining how to install it)

Maybe you are looking for

  • Tax payment system

    hi! I wondered if someone could help me, we are required to do this as part of an excercise for a course but I havn't got a clue where to start. The task is to: Write a program that calculates how much tax someone should pay according to the followin

  • How do I create Fixed-Width Report Regions in APEX?

    Hi I would like to create 3 or 4 report regions of uniform fixed-width on a single APEX page. How do I go about this? Each report varies in the number of columns and the width of columns. Thanks Kind Regards Greg

  • Acrobat XI Visual C++ 2010 SP1 Runtime Missing

    Hi Fellow Acrobat Fans! I tried a couple test deployments of Acrobat XI Pro 11.0.03 by GPO.  It doesn't install on a couple desktops, just unistalls old versions of Acrobat X.  Only a generic error 1274, 2 and 1603 in the eventvwr's of the Windows 7

  • Storage issues not correct on ipad

    I want to download a film off my cloud to my ipad but it iTunes says there are storage issues. I've deleted things and have well above the GB I need to download the entire film (as confirmed by 'usage') but it still says I haven't enough memory... It

  • Edge Text Effects in Chrome not Working - from Dan Carr / Inspire Mag article

    I've been working with the tutorial in the September issue of Adobe Inspire to create text effects with Edge Animate - see link: http://www.adobe.com/inspire/2013/09/edge-text-effects.html I can get it to work well in IE and Firefox but nothing much