JDK1.6 JComboBox: No event sent on same selection

Hi,
In JDK1.5, with a combobox, when selecting from the dropdown list the item already selected, it sends an ActionEvent, but no ItemEvent.
In JDK1.6.0_01, no event ActionEvent is sent!
When the combobox is taken as a table cell editor, selecting the same item does not make automatically the cell quit the edition mode!, as the change is based on the ActionEvent listening!
We have to click somewhere else to make the edition stop!
Can someone explain this event strategy change between 1.5 and 1.6?
And how to make the combobox disappear from the table cell?
Just below a simple piece of code to check the combobox event sending.
Herve.
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JComboBox;
import javax.swing.JFrame;
public class ComboActionEvent extends JFrame {
     private void run() {
          JComboBox cb = new JComboBox(new String[]{"a", "b", "c", "d"});
          cb.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent e) {
                    System.out.println ("Action event!");
          getContentPane().add (cb);
          pack();
          setVisible(true);
     public static void main (String[] arg) {
          new ComboActionEvent().run();
}

Hmmm
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6481977
and there are various threads in the forums about this, for example:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=5116064

Similar Messages

  • Is there a way to delete all events with the same title (not added as reoccurring) without deleting one at a time?

    i currently have a calendar synced that has events scheduled in perpetuity, scheduled as individual events.  I would like to delete all events with the same title.  I do not want to delete the entire calendar nor do I want to go into every event and delete individually.  These were not scheduled by me so I do not know how they were added one by one and go on forever but they are NOT scheduled as reoccurring and thus must be modified individually.
    I can do a search and find all events, is there a way to just delete all events with the same title all at once?
    this is a Microsoft outlook synced calendar and I am seemingly unable to delete the events all at one time from Microsoft as well. 
    Please help!

    If you still have access to the Outlook calendar in Outlook, I would delete them from there. There are a number of ways to do that, but if you open the individual event in Outlook, does it show a repeating pattern? If not, then you may have to delete them individually, but that is not that difficult either. Go into the calendar and then change the view to a list view. From there you can sort the view according to subject. This should bring all of these same appointments together in the list and you can select the group in Outlook and delete them. Once you do that, you can change your view back and then sync the phone. That will remove the events from the phone.

  • HOW CAN I DELETE AN EVENT WITHOUT  HAVING TO SELECTING IT FROM THE LIBRARY?

    I have a big problem.
    I want to delete an entire event from my library because everytime I select it imovie freezes and then close itself up. So I have to re-open imovie again. And when I want to select that particular event again the same problem occures. So I can not select that particular event. Therefore I can take NO action on this event.
    HOW CAN I DELETE AN EVENT WITHOUT HAVING TO SELECTING IT FROM THE LIBRARY?
    (Everytime I select it imovie closes itself up)
    All other events work fine. I believe The footage had a problem from capturing. but now it's in my computer and i can't open it.
    Please help me, I don't need this event, I can't open it therefore I can't use it and it takes place on my hardrive for nothing.
    Thank you

    One can delete it from one's computer. In the finder go to homeuser, movies, imovie events, delete the footage.
    Then reopen iMovie and see if that helps.
    Hugh

  • Can I set multiple events at the same time to repeat on iCal?

    I know I can do this by manually selecting each one of them and setting it to repeat.
    But it's a pain and it doesn't make sense not to be able to edit more than one event at the same time.
    When I want to set up my weekly schedule I do it for one week and I want to be able to select all the events in that week and set all of them to repeat weekly at once.

    There are editors that bring up the songs one at a time, so you can edit them in a row.  Winamp works that way.  iTunes does not.

  • Issue with events not propagating when selecting toolbar items

    Hey All,
    I'm on OS X Lion using CS6 beta and observing events in Photoshop form an outside application using Cocoa's NSEvent#addGlobalMonitorForEventsMatchingMask.
    It seems Photoshop is stoping the propogation of some events coming out of selection of toolbar items. Here's the issue:
    There are two ways to select the Pencil tool from the toolbar. (Method A) I can click the Paintbrush, holding down for a second and releasing, then mouse move to the Pencil and click, OR (Method B) I can mouse down the on the Paintbrush and drag the mouse to the Pencil.
    If I use Method A I get what seems to be every event associated with the interaction, BUT If I use Method B Photoshop seems to stop the propogation of a lot of drag events.
    Are there any experts out there that have an knowledge of why this is, or if there are any known work arounds?
    Regards,
    Ned
    ps This is also an isue in Photoshop 5

    Ned, this is a bit over my head, but FYI (and your troubleshooting research), there are other methods to get alternate tools: ALT+click to cycle them, CMD/right-click to get the flyout, and Shift+Tool shortcut (unless you changed the setting in preferences)
    BTW, method B is not  the same as A? The only difference is that in A, there is a release, then a move to target area, then another click, while in B, we have a hold, then a move to the target area, then release.

  • EVENT FIRST COMMAND AFTER SELECT

    Dear friends
    I'm now using Gemalto Developer's Suite and I want to test this event. However, I try different ways but fail to accomplish my test.
    Do you know any materials, or just anything about this event? I searched throughout various sources, materials but all I have now is a small piece of information in GSM 43.019
    Upon reception of the first command received by the GSM application after it has been selected or after the ATR if it is the default application, and before the Status >Word of the processed command has been sent back by the GSM application, the toolkit framework shall trigger all the toolkit applets registered to this event.
    If the first command received by the GSM application is a toolkit applet triggering command (e.g. TERMINAL PROFILE), the toolkit applets registered on the >EVENT_FIRST_COMMAND_AFTER_SELECT event shall be triggered first.
    The ProactiveHandler and the ProactiveResponseHandler shall not be available at the invocation of the processToolkit method of the toolkit applet on the >EVENT_FIRST_COMMAND_AFTER_SELECT event.From this material, I think it's quite vague to understand clearly this event.
    Thanks in advance,
    Jason
    Edited by: Jason Gosling on Oct 19, 2011 7:29 PM

    hi Jason.
    This is automatic event that was born by OS instead mobile.
    When OS received the first command "00 A4 04 00 00 0xXX + AID APPLET GSM" from User, OS will look in the ToolkitApplet Registry table and find the applet with EVENT FIRST COMMAND AFTER SELECT, then OS call method "process toolkit" of this applet.
    the called applet will do something that it want. Maybe send data to ME.
    When method done, OS continue action normally.
    This is for GSM applet on JavaCard. And the GSM applet is not default program.
    For the case: GSM is default, that mean OS automatic select GSM APPLET when it starts, no need to any command form ME or User, OS auto create this event and look toolkitapplet to run processToolkit method.
    hope this is fun !!

  • How can i  display output in the same selection screen?

    I've a requirement. Suppose in my selection screen there are three input fields. On the basis of this selection screens input It will  display the output in the same selection screen. Can it be possible? .
    Can it be possible to modify the default screen no for the selection screen 1000?
    Thanks in advance.
    Abhijit

    Hi Abijit,
    Whatever changes made in STANDARD SELECETION SCREEN 1000 or screens generated using 'SELECTION-SCREEN' statements, are not permanent.
    It will get back to its original appearance, while you execute again or some time later.
    Whenever you get into 'CHANGE' mode of these screens, an information will be displayed as follows ;
    Selection screen: Report generation makes screen
    changes ineffective
    Regards,
    R.Nagarajan.

  • ICal event is in the background BEHIND event at the same time in foreground

    I added an event to iCal via Evite and it is BEHIND a recurring event at the same date and time. There is no way to edit it or view it without moving the recurring event. Normally, the event would be shifted to the side so you can view both.
    Any idea how to get iCal to display these two events properly?
    Uploaded with plasq's Skitch!

    Looter,
    One of the first things to try is "refresh" the com.apple.iCal.plist file. You will find the com.apple.iCal.plist file in your Macintosh HD/Users/yourusername/Library/Preferences Folder. Quit iCal, drag the .plist file to your Desktop, log out/in or restart and check iCal for normal behavior.
    ;~)

  • I made a movie in iMovie then deleted the clips in it. I have reimported the clips in an event with the same name as previously and some clips in the movie are still saying source slip missing even though they are there. What can I do?

    I made a movie in iMovie then deleted the clips in it. I have reimported the clips in an event with the same name as previously and some clips in the movie are still saying source slip missing even though they are there. Some clips are fine in the movie, but most are just black and when I hover over them, it says source clip missing. How to I fix this? Thank You

    I did that too, then I did a migration assistant to a new Mac and ALL of my movies have Source Clip Missing now, even though the original clips are still in the iPhoto Videos.  I can stand to re edit one or two projects, but not ALL.

  • PreparedStatement & regular Statement - different results for same select

    I was wondering if someone could either
    i) try this out for me to confirm my results or
    ii) let me know what I am doing wrong
    I'm one of the developers on a product and am currently investigating localization for the Thai language...just checking to see that Java and Swing have no problems with it. The only bewildering thing which has happened is noticing that some values which are fetched from the database display in Thai perfectly and other values display as a garble. Sometimes the exact same column is displayed correctly in one part of the program but is not OK in another part. I think I've figured out what it going on and suspect a bug in Oracle's JDBC:
    Some selects were configured as PreparedStatements and those return the Thai properly. The more common case however was for programmers to use a simple Statement object for their select and it is in those that the multi-byte strings don't get returned properly.
    The following code shows the problem that I am experiencing. I am basically executing the exact same select in 2 different ways and they are both giving different results as long as the column being queried contains a Thai character. If someone could grab and check it out and let me know if they see the same thing, I'd appreciate it. Just change the column/table name and the username/password/databaseIP to get it to run.
    <code>
    import java.sql.*;
    public class SelectTest {
    public static void main(String[] args) {
    try {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection( "jdbc:oracle:thin:@10.4.31.168:1524:ora8",
    "dms_girouard",
    "girouard");
    String sqlCommand = "select C0620_Title from T0620_SwSheet";
    Statement statement = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    ResultSet resultSet1 = statement.executeQuery(sqlCommand);
    while (resultSet1.next()) {
    if (resultSet1.getString("C0620_Title") != null) {
    System.out.println("resultSet1 Title = " + resultSet1.getString("C0620_Title"));
    PreparedStatement preparedStatement = conn.prepareStatement(sqlCommand);
    ResultSet resultSet2 = preparedStatement.executeQuery();
    while (resultSet2.next()) {
    if (resultSet2.getString("C0620_Title") != null) {
    System.out.println("resultSet2 Title = " + resultSet2.getString("C0620_Title"));
    catch (Exception e) {
    System.out.println(e.getMessage());
    </code>

    Hi Peter,
    Are you using NCHAR column for Thai , or is your database character set set for Thai.
    If you are using a NCHAR column for holding Thai data, then you have to use the
    OraclePreparedStatement.setFormOfUse(...) before executing the select.
    Regards
    Elango. Hi Elangovan,
    Thank you for answering.
    The datatype on the column is VARCHAR2.
    I did my initial tests without doing anything special to make sure the database is localized for Thai, and I was happy to find that almost everything still worked fine - I was able to save and retrieve Thai strings to the database almost perfectly.
    The only problem I discovered was the difference between Statement and PreparedStatement selects on a column containing Thai. Colleagues of mine have said they see the same thing when testing on a Oracle database which has been configured specifically for the Thai customer.
    I read somewhere that the current JDBC drivers are using an older version of the Unicode standard than the most current version of the Java SDK and that it was causing some problems with Korean. I'm wondering if maybe it's the same problem with Thai.

  • Alv is not appearing in the same Selection Screen

    Hi people..
    First time using  cl_gui_docking_container.
    I have a problem, my alv is not appearing in the same Selection Screen.
    is there somethign wrong with my code? it doesnt even show a dump or catch.
    Regards
    DATA: lo_dock TYPE REF TO cl_gui_docking_container,
           lo_cont TYPE REF TO cl_gui_container.
    DATA: gr_table      type ref to cl_salv_table,
           gr_functions  type ref to cl_salv_functions,
           gr_display    type ref to cl_salv_display_settings,
           gr_columns    type ref to cl_salv_columns_table,
           gr_column     type ref to cl_salv_column_table,
           gr_sorts      type ref to cl_salv_sorts,
           gr_agg        type ref to cl_salv_aggregations,
           gr_filter     type ref to cl_salv_filters,
           gr_layout     type ref to cl_salv_layout,
           color         type lvc_s_colo,
           key           type salv_s_layout_key.
       SELECT * INTO TABLE tbl_datos_items FROM zsd_micros_bd.
    CHECK lo_dock IS INITIAL.
      CREATE OBJECT lo_dock
           EXPORTING
             repid = sy-cprog
             dynnr = sy-dynnr
             ratio = 70
             side  = cl_gui_docking_container=>dock_at_bottom
             name  = 'DOCK_CONT'.
         IF sy-subrc <> 0.
           MESSAGE 'Error in the Docking control' TYPE 'S'.
         ENDIF.
    TRY.
    lo_cont ?= lo_dock.
    cl_salv_table=>factory(
    exporting r_container      = lo_cont
                 container_name = 'DOCK_CONT'
                 list_display   = if_salv_c_bool_sap=>false
    importing r_salv_table = gr_table
    changing t_table = tbl_datos_items  ).
    CATCH cx_salv_msg .
    ENDTRY.
    gr_functions = gr_table->get_functions( ).
    gr_functions->set_all( abap_true ).
      gr_display = gr_table->get_display_settings( ).
      gr_display->set_striped_pattern( cl_salv_display_settings=>true ).
      gr_display->set_list_header( 'Items de Ventas' ).
      gr_table->display( )

    Hi ,
    First you have to create you own screen ( dynpro )  with a screen number ( 0101 for exemple )  , you need to pu a custom control in it , name the custom control ( lo_cont )
    For the screen created you need to create a module for the PBO , in this module you sould put you code for displaying the liste :
    Module STATUS_0101 output.
    TRY.
    lo_cont ?= lo_dock.
    cl_salv_table=>factory(
    exporting r_container      = lo_cont
                 container_name = 'DOCK_CONT'
                 list_display   = if_salv_c_bool_sap=>false
    importing r_salv_table = gr_table
    changing t_table = tbl_datos_items  ).
    CATCH cx_salv_msg .
    ENDTRY.
    gr_functions = gr_table->get_functions( ).
    gr_functions->set_all( abap_true ).
      gr_display = gr_table->get_display_settings( ).
      gr_display->set_striped_pattern( cl_salv_display_settings=>true ).
      gr_display->set_list_header( 'Items de Ventas' ).
      gr_table->display( ).
    Endmodule.
    and give the screen number when calling  lo_dock 
    CREATE OBJECT lo_dock 
           EXPORTING
             repid = sy-cprog
             dynnr = '0101'.
    tested
    Regards

  • Which event dispatched after text selection done on spark text area in Apple iPad using Adobe Flex 4

    I need to know which event triggered after text selection done in Apple iPad. This way i have done in desktop air app code (mouse events)
    protected function txtEditor_mouseUpHandler(event:MouseEvent):void
                if(txtEditor.selectionAnchorPosition != txtEditor.selectionActivePosition){
                    showNoteToolBar(event);
                    txtEditor.focusEnabled = true;
                    txtEditor.setFocus();
    But in Apple iPad how to achieve through "Touch Event" ? And also i need how to hide all context menu on Spaek TextArea?. Why Touch.End event is not fired after place cursor on text area ?
    Please help me !

    Ok, so I finally got it working but this is not ideal at all. Adobe really needs to give us some direction on how to properly deal with font embedding and TLF now that the release build breaks all functionality with loading runtime fonts and TLF.
    Problem:
    I am embedding collections of fonts (faces) into single family classes. Each individual face is registered with Font.registerFont(). I need to do this because I have to have mixed fonts within text flows - at least according to Alex H's recent blog post.
    Fonts do not display in TLF without doing the following:
    1. GlobalSettings.resolveFontLookupFunction = null;
    2. editor.textFlow.flowComposer.swfContext = ISWFContext(this.getFontContext("AnyFamilyNameFromAnyFontEmbedded", false, false, FontLookup.EMBEDDED_CFF));
    3. Instead of #2, use editor.textFlow.invalidateAllFormats();
    Either #2 or #3 need to be performed. If I have a spark richEditableText control in MXML with defined familes from the loaded fonts. I even tried placing the control into a separate state so it wasn't created until after the fonts were loaded... I still needed to invalidate the formats or set the context.
    The "AnyFamilyNameFromAnyFontEmbedded" does not need to be all of the embedded family names. It only needs to be one of them. Once one is used, all embedded fonts work. Also, I have to use the internal namespace to even get access to getFontContext, another oddity that, in my humble opinion, should never be necessary to create mixed style TLF content.
    My questions are then:
    1. Why am I required to use ISWFContext if I am using Font.registerFont()?
    2. Why is GlobalSettings.resolveFontLookupFunction = null; also required for this to work?
    3. What is the recommended workflow to embed fonts from multiple SWF files into the release build and have it work without having to jump through all these hoops?

  • BI: Virtual Provider for ECC Report with same selection parameters

    Dear all,
    I have attached screen shot of ECC report selection screen with contain Material, Plant and Dates. As report is bit complex and I need to use just ITAB (internal table) of it for further use in BEx Query and for Dashboard purposes.
    Problem: I need to call this report by creating Virtual Provider in BI so that I get data from ECC at runtime as it is shares report so I can't able to save any data in transparent table as report calculated opening balances at runtime.
    It is possible for me by using function module i can get itab by submit return and then create Data Source for it ?
    As i make copy of FM ZZRSAX_BIW_GET_SIMPLE i cannot use submit there due to OPEN CURSOR mechanism there.
    Kindly anyone suggest how it is possible to call report with same selection parameters for creation of virtual provider.
    Please mention if i miss any point in explaining problem.
    Feel free to ask for any query.
    Many thanks.
    Hoping for positive and quick responses.

    please create 2 reports as given below.-
    REPORT  ZSZP_00007.
    parameters a(5) .
    parameters b(5) .
    parameters c(5) .
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF screen-name = 'A' or screen-name = 'B' .
      get parameter id 'aaaaaaaaaaa' field a.
      get parameter id 'bbbbbbbbbbb' field B.
    screen-input = 0.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    start-of-selection.
    your logic
    REPORT  zszp_00005.
    PARAMETERS a(5).
    PARAMETERS b(5).
    START-OF-SELECTION.
      SET PARAMETER ID 'aaaaaaaaaaa' FIELD a.
      SET PARAMETER ID 'bbbbbbbbbbb' FIELD b.
    your logic
    SUBMIT zszp_00007 VIA SELECTION-SCREEN.
    i hope this approach will solve your problem.
    thanks
    Swanand

  • I can't burn my playlist on several CDs anymore without stopping the process and going to the next selection of songs. First I could, now it re-burns the same selection of songs over and over again.

    I was able to burn the whole contents of a playlist on several CDs in a row. When I do it now however it will re-burn the same selection over and over again without moving to the next. What can be done?

    See Empty/corrupt library after upgrade/crash...
    tt2

  • HT2513 how do I schedule daily events in the same sequence

    How do I schedule daily events in the same sequence.

    Hello LeatherneckDevilDog,
    Thank you for the details of the issue you are experiencing with duplicate calendar entries.  I recommend reviewing the following articles to resolve issues with iCal duplicates:
    iCloud: Resolving duplicate calendars after setting up your calendar application for iCloud Calendar
    http://support.apple.com/kb/TS4118
    iCloud: Advanced Calendar and iCal troubleshooting
    http://support.apple.com/kb/TS4337
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

Maybe you are looking for

  • Oracle 8.1.6 to 9.2.0.4 upgrade

    Not sure if this is the right forum for this but thought I would start here. We are currently in the process of upgrading our database from version 8.1.6 to 9.2.0.4 and I've been given the joyless task of finding out the differences between the two t

  • Duplicate IP

    Hello friends, I wrote these lines because a very strange and particular issue happened in my network. There is a drawing of my topology:  I will explain first: 1. I have a big network (172.16.0.0/16) so I'm planning to cut it in VLANs. Since the net

  • Solaris 9 - Driver Detachment Issue - ddi_set_driver

    Hi all, I'm porting a driver source code from Solaris 8 to Solaris 9. This driver is a pseudo devices driver which is hooked to the sd (disk) driver. I have a detachment driver issue. I don't arrive to release one instance of my driver (it may have s

  • Xpath, node absolute path and Remote Events for XML (REX)

    Folks, No question here, just a solution to share. I want to implement Remote Events for XML (REX) in Actionscript 3. Outgoing rex events require that I find an absolute xpath expression for my XML DOM nodes that have changes. Incoming rex events req

  • Sharpening workflow  sharedink book

    I am just not sure how much to sharpen in lightroom for printing (i am going to print a book using sharedink) i also use the fred miranda plug in for sharpening in photoshop in lightroom shouldl i leave it as the default setting use the presets go to