Another bug introduced by 6u10 ?

Here is another possible bug introduced by 6u10. Looks like that the feature of ‘setLookAndFeel’ under 6u10 breaks Mouse Listener.
See the short test program below, which works fine under 6u7 but fails under 6u10.
Here are the test steps :
1.     Click on ‘menu’ but don’t click on any menu items.
2.     Move mouse to the white area (JPanel)
3.     Click mouse once. Nothing happens but it should draw a red dot. The mouse listener does not recognize the first click. The subsequent clicks are fine.
If you perform this test under 6u7, it works fine ( recognize the first mouse click) . If you take out setLookAndFeel, it works fine also. Anyone knows a workaround.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;      
public class MouseClickTest  extends JFrame
     static int sxw=800;
     static int sxh=800;
     int mx, my;
     JPanel jpl;
     public MouseClickTest()
          init();
     private void init()
          jpl =new JPanel()
               public void paintComponent(Graphics g)
                    Graphics2D g2=(Graphics2D) g;
                    g2.setColor(Color.white);
                    g2.fillRect(0,0,800,800);
                    if ( mx > 0 && my > 0 )
                         g2.setColor(Color.red);
                         g2.fillOval(mx,my, 20,20);
          jpl.setPreferredSize(new Dimension(sxw, sxh));
          jpl.addMouseListener(new MouseAdapter(){
          public void mousePressed(MouseEvent e)
               mx=e.getX();
               my=e.getY();
               jpl.repaint();
          JMenuBar mb = new JMenuBar();
                  JMenu menu = new JMenu("menu");
                  for(int i=0; i<5; i++)
               menu.add(new JMenuItem("Item "+i));
                  mb.add(menu);
          setJMenuBar(mb);
          getContentPane().setLayout(new BorderLayout());
          getContentPane().add(jpl, BorderLayout.CENTER);
          setSize(800,800);
          pack();
          setVisible(true);
           addWindowListener(new WindowAdapter() {
                 public void windowClosing(WindowEvent ev) {
                          System.exit(0);
     public static void main(String[] args)
          try {
               //this is ok.
               //UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
               //these are bad
               //UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                         UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
               //UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
              catch (Exception e) {     }
          SwingUtilities.invokeLater(new Runnable()
                   public void run()
                    new MouseClickTest();
}

I can confirm that the behavior is different in 6u10. If a JMenu or JPopupMenu is displayed, and the user clicks on some other part of the GUI to hide the popup, that part of the GUI doesn't actually receive (or react to) a MouseEvent. If you click on an unselected tab, for example, that tab doesn't become the active tab, whereas in 1.5 and 1.4 (and according to the OP, 1.6 pre 6u10), it did.
Is this really a "bug"? I suppose it is. Native Windows appears to send mouse events to items when a popup menu is dismissed with a click. But why does your application rely on this behavior - that is, why is this change so serious to you?
Oh, and XOR painting isn't broken in 6u10, it's just unusably slow. :)

Similar Messages

  • Another bug introduced in production release - table filter

    Hello guys,
    check this scenario:
    1) Open some table
    2) Use the column filter to filter the table
    3) Try to use the column filter on same column again without clearing all filters.
    The table filter will display only "Remove ('xyz')" message, where xyz is current value used to filter the column. It is not possible to delete the value and enter new value. You have to clear the filter first and then enter new value...
    Sadly, I have to say, with every new release you are making SQL Developer more and more unusable :(

    My bad.
    Logged Bug 13788551 - regression: have to remove quickfilter before entering new one.
    -Raghu

  • N80 Gallery Bug introduced in firmare 5.0719.0.2

    In case you guys from Nokia didnt notice it yet ...
    There was a new bug introduced into the Gallery application of the Nokia N80 with Firmware 5.0719.0.2.
    The bug looks as following:
    If you open the Picture Gallery there simply wont be any pictures or videos shown (from both internal memory and memory card). All one can see are the two weblinks in the gallery.
    Only thing that help to bring the Gallery back to normal condition is to reboot the phone.
    Several people who have upgraded to 5.0719.0.2 have this problem. And it definitely was not there before in any other Firmware Version 3.x or 4.x.
    Is Nokia already aware of this bug and will fix it in a future firmware release? It really annoys me a lot. So much that i already think of buying a new phone from another manufacturer.
    Besides ... Why doesnt Nokia release the 5.0725.0.1 firmware for European N80s? Maybe the bug is already corrected in this newer firmware...

    Hey
    To tell the truth this is one of the most common most annoying and of course older bug from N73, N80, N91.
    Later nokia introduced new gallery in N93, N93i and N91 8GB.
    I discussed a tip here:/discussions/board/message?board.id=smartphones&me​ssage.id=54784&page=1
    It would just **bleep** me off.Message Edited by korngear on 04-Oct-200704:31 PM

  • Another bug? Please tell me that its not true...

    So I updated, everything was working great, album downloading went great, gapless works, etc. I didn't have any issues with sound or anything like that. My problem seems to be a little different than everyone else. And I've noticed 3 things.
    1. My EQ settings for individual tracks only automatically update on the EQ intermittently. There doesn't seem to be any rhyme or reason to it, I've tried with focus on the window, not on the window, changing the EQ setting to something different and then changing it back again. Any ideas?
    2. Downloading from the iTunes Store is butt slow. I'm not entirely sure that this is a problem with the university network I'm on or what but my download speeds are only around 5kb/sec on a fiber backbone but the last episode of Alias currently sits at 133 hours until completion (5.5 days!) and that's completely unacceptable for the network that I'm connected to.
    3. Downloads from the iTunes Store will randomly fail and restart from the beginning. This may be related to whether it's a university problem but I suspect there's a deeper underlying problem with my software. The error codes are different each time and I haven't been keeping track of them but they've appeared in the 9000 range as well as in the 5000 and 500 ranges.
    So what say ye all?
    P.S. Is it true what I'm hearing about downloaded artwork not being transferred to your iPod? I haven't noticed it.
    Powerbook G4 1.5 Ghz   Mac OS X (10.4.7)   1.256 MB RAM, 64 MB GEForceGO, 8x Superdrive

    Ok, this is out of hand. My downloads just failed again. It seems like it gets to a certain point and then just starts over. I actually finished one the other night but then iTunes insisted on 'checking' the file...in actuality, this meant that it would waste processor cycles and supposedly limited bandwidth to mess up whatever was actually downloaded and delete the progress it had made. I can't believe that I'm the only one who has experienced a problem like this. The same applies to my problem with the equalizer. I know that some have bigger problems than this, however it seems like it's just another bug to add to the list of ones that Apple needs to fix rather soon in 7.0.1.
    Also, I've sent a request for support to Apple through the iTunes site about both of these issues and not surprisingly haven't received a reply yet. With all the problems that have been reported thus far, I might not reply either...

  • Another bug in sun one studio?

    is this another bug in sun one studio or something else.
    i have set the author to a different name through
    tools -> options -> java sources
    but when i create session beans or cmp beans, it uses the previous name.
    however java main classes display the new name

    This looks like a bug to me. I didn't see anything in the bug database that was similar, so I would suggest that you file a bug at:
    http://java.sun.com/webapps/bugreport/
    using:
    Category: Sun Java Studio, Sun ONE Studio, Forte for Java
    SubCat: EJB Components

  • Another bug in processSockets?

    I am running Weblogic Server 7.0 on Red Hat Linux and unfortunately cannot use
    the JCOM feature due to an uncaught exception in processSockets. The client is
    a Windows 2000 machine and when a call is made (from my own example, or the shipped
    zero client or late bound examples) into the Weblogic Server on the Linux machine,
    I get the following :
    <Aug 14, 2002 7:42:18 AM EDT> <Error> <socket> <000405> <Uncaught Throwable in
    processSockets
    java.lang.NullPointerException
    java.lang.NullPointerException
    at weblogic.com.MuxableSocketDCOM.isMessageComplete(MuxableSocketDCOM.java:182)
    at weblogic.com.MuxableSocketDCOM.dispatch(MuxableSocketDCOM.java:203)
    at weblogic.socket.PosixSocketMuxer.deliverGoodNews(PosixSocketMuxer.java:507)
    at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:429)
    at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    Has anyone else run into this problem, or should this be sent to BEA to fix???
    Thanks,
    Frank

    No I don't want to use channels. I want to use a 'Solid Fill Colour' layer. If you click on the little icon at the bottom of the layers palette you get a little menu and at the top of that menu you can select 'Solid Colour'. Then you can select the 'Colour Libraries' tab and apply a Pantone Colour as a Solid Fill layer.
    Photoshop definitely DOES support this method because we have been using it here for the last few years, its quite standard practice to work like this before going into channel work or DCS work.
    It means you can double click a layer to reveal its intended Pantone colour rather than cmyk match.
    As I say it works fine in CS2.
    Well it seems its another bug in a very poor update. I just hope CS4 doesn't have the same problems.

  • [svn] 3149: Fix bugs introduced by the display object sharing optimization.

    Revision: 3149
    Author: [email protected]
    Date: 2008-09-08 16:58:35 -0700 (Mon, 08 Sep 2008)
    Log Message:
    Fix bugs introduced by the display object sharing optimization. This checkin should fix ordering problems when dynamically adding/removing graphic elements, and ordering problems when changing graphic element properties that require a display object (rotation, alpha, filters, etc).
    Bugs:
    MXMLG-219: BitmapGraphic component content always rendered from 0, 0 origin.
    MXMLG-220: setting visible property of Rect and Ellipse does nothing.
    MXMLG-222: setting the alpha of a rectangle changes z-order when there are 3 or more rectangles
    SDK-16754: Z-order incorrect when a Group is present
    QA: Yes - the test files from these bugs (or something equivalent) should be added to our standard test suite
    Reviewer: Deepa
    Ticket Links:
    http://bugs.adobe.com/jira/browse/MXMLG-219
    http://bugs.adobe.com/jira/browse/MXMLG-220
    http://bugs.adobe.com/jira/browse/MXMLG-222
    http://bugs.adobe.com/jira/browse/SDK-16754
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/BitmapGraphic.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElement .as

    This is the great thread ;-)
    My favorite threads are below.
    Munky posted great reply :8}
    SQL Query Help
    order in a connect by

  • Another bug: FTP Upload causing broken link?

    hi, i have a file that has multiple parent(created using create link option).
    When i update the file via WCP in drive O:,
    changes to this file was reflected to other parent, which was correct, ofcourse.
    But when i try to update the file via FTP,
    only file in the corresponding/current folder was updated,
    and link to other folders was gone,
    and other parent folders still refering to the old file.
    is this a bug? has anybody else notice this problem?
    I also noticed inconsistent behaviour between deleting files via WCP and via FTP.
    when i deleted files via FTP, it seems that the file was completely freed, removing the file from current folder and from all other related/linked folder.
    but when i use WCP to delete file, it only delete file from current folder, and the same file in other related folder is still preserved.
    another bug?
    btw i'm using IFS 9.0.1,Windows 2000

    1. Updating documents with multiple parents.
         The behaivor you describe is expected. Here is why.
         WCP updates the content of the document using RACI while
         FTP put creates a new document, replacing the existing document, and thus
         the link to other parents do not exist for the new document, and the other
         parents still point to the old document.
         One way around this problem is to have the folder containing the
         document have the multiparents, instead of the document itself. This
         would maintain the links if the docment content is changed or if the document
         is replaced.
    2. Deleting documents with multiple parents
         This does apear to be a bug. The correct behaiver is to only delete the
         file from current folder, and the same file in other related folders
         is still preserved.
         This is fixed in the next iFS release 9.0.3 for FTP.
    hope this helps!
    Bob

  • Skipping frames in mc - another "bug"??

    Hi. Still working on that presentation, Flash Pro. v8 - PC
    platform.
    On slide 2, I have a movie clip.
    The mc has a total of 235 frames.
    When I play the mc in the edit window, everything is fine.
    When I test my movie, it seems to ignore the first 40 frames
    of the mc.
    The only script I have attached to that slide is:
    onEnterFrame = function(){
    this.mcPosterpg2.gotoAndPlay(1);
    delete this.onEnterFrame;
    The only script I have attached to the mc itself is a stop on
    the last frame.
    All my scripts are on their own layer.
    Is this yet another bug, or am I missing something?

    > Anyway to fix this?
    No.
    There is currently a bug/limitation that makes Skip Existing Frames and Render Mutliple Frames Simultaneously multiprocessing incompatible.

  • Another Bug in Photoshop CS3 or a setting Im missing?

    Another Bug in CS3 or a setting Im missing?
    This time in Photoshop.
    If I add a solid colour fill layer and pick a Pantone colour from the Colour Libraries I fill it with a Pantone colour and then save the document. When I re-open the document the Pantone Fill layer reverts back to a CMYK setting when I double click on the layer.
    I ran a test on CS2 and this definitely doesnt happen in CS2 so why in CS3?
    Its a massive problem and in my eyes makes Photoshop CS3 unusable in a professional environment.
    Please tell me its a new setting i'm missing and not a bug.

    No I don't want to use channels. I want to use a 'Solid Fill Colour' layer. If you click on the little icon at the bottom of the layers palette you get a little menu and at the top of that menu you can select 'Solid Colour'. Then you can select the 'Colour Libraries' tab and apply a Pantone Colour as a Solid Fill layer.
    Photoshop definitely DOES support this method because we have been using it here for the last few years, its quite standard practice to work like this before going into channel work or DCS work.
    It means you can double click a layer to reveal its intended Pantone colour rather than cmyk match.
    As I say it works fine in CS2.
    Well it seems its another bug in a very poor update. I just hope CS4 doesn't have the same problems.

  • [svn] 1388: Fixing a bug introduced for DefineFont3 equality testing.

    Revision: 1388
    Author: [email protected]
    Date: 2008-04-24 10:19:44 -0700 (Thu, 24 Apr 2008)
    Log Message:
    Fixing a bug introduced for DefineFont3 equality testing. DefineFontAlignZones already checks its DefineFont3 for equality and so this goes back to the old behavior and avoid an infinite equality check.
    Doc: No
    QA: Yes, also please add a test case that makes use of two, duplicated embedded fonts with advanced anti-aliasing to the automated mxunit testsuite.
    Bug: SDK-15378
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-15378
    Modified Paths:
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineFont3.java

    I just posted something about this too, and while I feel that its wrong to "bump" an old post, this issue has still stayed unresolved and my frustration is peaking. In my thread my problem is i can't even use the KXdrivers on an x64 operating system, so this things an expensi've paper weight. Great.
    Creative makes good sound cards, NO DOUBT about that. Their customer service on the other hand however, is absolute trash. I have read that "statement" as well, and it seems an easy way out to just say "yeah we addressed it, so please, shut up about it already". And I agree, it is NOT a fix, for all of us. If one would take the time to read the forum, its not only ABIT motherboards. Even in that one thread, one if the first couple of replies a guy says "but I have a gigabyte motherboard". Surprise surprise, he was ignored by the mod who posted that (she answered some other poster's question with "read the instructions please" . Please creative, give us some faith back in your company by helping out the many of us with this problem. Only then will I reccomend and buy your products.

  • H.264 Video Encoding Bug Introduced?

    I'm not sure if the issue is related to a fix for a previous bug, or just a new bug introduced for this player.
    My original problem was with the reporting of Camera.activityLevel. It only reports 0 and 100 when encoding with H.264 in FP11+ release, Sorenson reports the results properly. I was told it was fixed in this beta, which it does appear to be
    See this post: http://forums.adobe.com/message/3999479
    However I now see a new problem in this beta.  My application allows me to change the video settings on my H.264 encoded stream (quality, resolution, fps, etc) during the broadcast. And it works perfectly in FP11+. However, with the beta it now appears to cause problems and be broken.
    Changing settings on an existing stream (it looks to be when changing from 320x240 to 640x480) causes streaks of red, green, and blue vertical lines over the  video image and the aspect ratio is wrong. The image appears squished - everything short and fat like mabe it's increaing the width value, but not the height. I'm testing the beta on Windows 32bit IE7 with a Logitech 9000 and on a different machine using Windows 32bit IE8 with a Logitech C910 with the same results.
    The camera.width & camera.height properties to seem to report their values properly, but the stream as viewed on the server is definitely not at the correct resolution.
    Can anyone verify this or advise? This version looks like it will break my app if released so thankfully it's still a beta.
    Thank you!

    OK, in FP11 Beta 2 it appears you have fixed this bug (aspect ratio messed up when switching from 320x240 to 640x480), but now you've reintroduced the Camera.activityLevel bug again. It only reports 0 and 100, this was fixed in Beta 1.
    To summarize:
    FP 11 release
    Camera.activityLevel - broken, only reports 0 and 100
    Changing camera size from 320x240 to 640x480 - works
    FP 11.2 beta 1
    Camera.activityLevel - fixed
    Changing camera size from 320x240 to 640x480 - broken, turns video from color to black and white and has a strange aspect ratio
    FP 11.2 beta 2
    Camera.activityLevel - broken, only reports 0 and 100
    Changing camera size from 320x240 to 640x480 - works
    Hopefully you'll have everything working in beta 3.
    Do I need to submit a bug report for the Camera.activityLevel bug in FP 11.2 Beta 2?

  • Another Bug in Hasbro SCRABBLE

    For the sake of the uninitiated, prior to game end, SCRABBLE informs the user that the computer has only x tiles left, when x is left than 7. This is because all of the tiles have been taken from the bag so neither player can replenish their rack.
    At the end of the game, the sum of the value of the loser's unplayed tiles is added to the winner's score.
    The bug is that SCRABBLE repeatedly announces that the computer has x tiles left, and then the user goes out, and then SCRABBLE awards the user y extra points, where y is less than x.
    This is impossible. But it happens repeatedly so should be easy to track and fix.

    No I don't want to use channels. I want to use a 'Solid Fill Colour' layer. If you click on the little icon at the bottom of the layers palette you get a little menu and at the top of that menu you can select 'Solid Colour'. Then you can select the 'Colour Libraries' tab and apply a Pantone Colour as a Solid Fill layer.
    Photoshop definitely DOES support this method because we have been using it here for the last few years, its quite standard practice to work like this before going into channel work or DCS work.
    It means you can double click a layer to reveal its intended Pantone colour rather than cmyk match.
    As I say it works fine in CS2.
    Well it seems its another bug in a very poor update. I just hope CS4 doesn't have the same problems.

  • [svn] 3780: Fix for bug introduced yesterday when adding clipContent to FxContainer and FxDataContainer .

    Revision: 3780
    Author: [email protected]
    Date: 2008-10-21 10:51:40 -0700 (Tue, 21 Oct 2008)
    Log Message:
    Fix for bug introduced yesterday when adding clipContent to FxContainer and FxDataContainer. The default value needs to be true.
    Also fixing a bug in SystemManager since application isn't always an IRawChildrenContainer anymore. This was previously fixed and got clobbered in a merge.
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-17423, SDK-17697
    Reviewer: Hans
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17423
    http://bugs.adobe.com/jira/browse/SDK-17697
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxDataContainer.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as

    The network admin solved the problem:
    “When I recreated the User Profile Service, I did not enable “NetBIOS Name” on the service, so all user accounts did not have the proper domain, which is why none of the targeting worked.
    All users were listed as corp\username instead of rcd\username.”, Network Admin.
    Further information: http://www.windowsclever.com/sharepoint/netbios-name-is-different-domain-name-user-profie-service-sharepoint-2010.html

  • Another bug - field positioning

    Another problem I have noticed is that sometimes the position
    of the field or label on the layout is not what the properties.top
    says. I had a field that was in one place on the layout and in
    another place altogether when it was printed. Once I corrected the
    Top property, it printed in the same place as it was on the layout.
    ie the printing used the Top property, the layout used something
    else to decide where it was located.
    Murray

    No I don't want to use channels. I want to use a 'Solid Fill Colour' layer. If you click on the little icon at the bottom of the layers palette you get a little menu and at the top of that menu you can select 'Solid Colour'. Then you can select the 'Colour Libraries' tab and apply a Pantone Colour as a Solid Fill layer.
    Photoshop definitely DOES support this method because we have been using it here for the last few years, its quite standard practice to work like this before going into channel work or DCS work.
    It means you can double click a layer to reveal its intended Pantone colour rather than cmyk match.
    As I say it works fine in CS2.
    Well it seems its another bug in a very poor update. I just hope CS4 doesn't have the same problems.

Maybe you are looking for

  • HP Envy 4502 - "Driver is unavailable"

    I have the HP Envy 4502. Yesterday when I tried to print it kept saying printer offline. I couldn't get anything to work. I uninstalled it and tried to re-install and it will still not work. It lets me download the HP 4500 series driver software (the

  • "no data from device" when trying to capture HDV

    I need to capture additional footage for an HDV project I am already editing. Capturing the initial footage (about a month ago) went smoothly. Now however, when trying to capture footage from a new tape shot just last week, I simply cannot. If I try

  • Convert MySQL timestamp field to a Unix timestamp

    I have a process where I want to compare the current date with an expiration date that is so many months after a registration date. The registration date is stored in a MySQL timestamp format. I want to convert this to a Unix timestame so I can do th

  • Spry:repeat Help

    Help. I am new to Spry (although been doing JS for years) and am attempting to get a handle on it. Here is my issue. I am attempting a simple spry:repeat and all I am getting is my last node. Here is the XML chunk: <?xml version="1.0" encoding="iso-8

  • Aperture 3 Update Fails to Recognize That I Have Aperture 3

    I never have had this happen before. I downloaded the Aperture 3.0.1 update, and the OS wouldn't let me install it because it said I had to have Aperture 3 installed. I DO have Aperture 3 installed. Software Update also failed to show the Aperture 3.