Strange event.x in onMouseDragged

Hi,
Can somebody please expain following behaviour of the drag listener:
* Main.fx
* Created on 05.01.2009, 14:04:14
package javafxapplication4;
import java.lang.System;
import javafx.ext.swing.SwingComponent;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.HBox;
import javafx.scene.paint.Color;
import javafx.scene.Scene;
import javafx.scene.shape.Line;
import javafx.stage.Stage;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javafx.scene.shape.Rectangle;
Stage {
    title: "Application title"
    var modelA:DefaultTableModel = new DefaultTableModel()on replace oldValue  {
        modelA.addColumn("aaa");
        modelA.addRow(["aaa1"]);
        modelA.addRow(["aaa2"]);
        modelA.addRow(["aaa3"]);
    var leftTable = SwingComponent.wrap(new JTable(modelA));
    var scene:Scene
    scene: scene = Scene {
            content: HBox {
                content: [
                leftTable,
                Line {
                        startX: 0,
                        startY: 0
                        endX: 0,
                        endY: leftTable.height
                        strokeWidth: 10
                        stroke: Color.BLACK;
                        onMouseDragged: function( e: MouseEvent ):Void {
                            System.out.println("e.x: {e.x}");
}when staring dragging from the rightmost area of the line to the left into the table it gives following output:
e.x: 2.0
e.x: 2.0
e.x: 1.0
e.x: 0.0
e.x: 0.0
e.x: -1.0
e.x: 2.147483568E9
e.x: -2.0
e.x: 2.147483568E9
e.x: -3.0
e.x: 2.147483568E9
e.x: -4.0
e.x: 2.147483568E9
e.x: -5.0
e.x: 2.147483568E9So, the question is where that e.x: 2.147483568E9 comes from? And how a coordinate (number of pixels?) can be floating?
Thanx!

The value 2.147483568E9 means 2.14... times 10 to 9th. Basically there's something evaluating to zero or being divided by zero to give you this value. It must be a bug in the event handling code. Could you file a bug report on it at javafx-jira.kenai.com?
thanks,
Josh

Similar Messages

  • Strange events in homehub 5 log but got speed incr...

    Had hh5 since October had no problems with speeds always good yesterday Vdsl stats was on 66195 down & 20000 up all good but this morning it rebooted speed gone up to 69350 upload the same but logs really strange as showing (3621.280000) OpenRG will go down for reboot in 5 seconds never seen this before but an hour later rebooted again and speeds went back to previous here's the logs any ideas ?
    07:05:17, 22 Jan. (259336.180000) CWMP: session completed successfully
    07:05:17, 22 Jan. (259335.970000) CWMP: HTTP authentication success from https://pbthdm.bt.mo
    07:05:15, 22 Jan. (259333.890000) CWMP: Server URL: https://pbthdm.bt.mo; Connecting as user: ACS username
    07:05:15, 22 Jan. (259333.890000) CWMP: Session start now. Event code(s): '4 VALUE CHANGE'
    07:05:15, 22 Jan. (259333.670000) CWMP: Initializing transaction for event code 4 VALUE CHANGE
    07:03:53, 22 Jan. (259251.430000) CWMP: session completed successfully
    07:03:51, 22 Jan. (259249.880000) CWMP: HTTP authentication success from https://pbthdm.bt.mo
    07:03:49, 22 Jan. (259247.350000) CWMP: Server URL: https://pbthdm.bt.mo; Connecting as user: ACS username
    07:03:49, 22 Jan. (259247.350000) CWMP: Session start now. Event code(s): '7 TRANSFER COMPLETE,M Download,4 VALUE CHANGE'
    07:03:48, 22 Jan. (259247.140000) CWMP: Initializing transaction for event code M Download
    07:03:48, 22 Jan. (259247.140000) transfer completed successfully
    07:03:46, 22 Jan. (259244.510000) CWMP: session completed successfully
    07:03:45, 22 Jan. (259244.240000) CWMP: Download file, FileType=4, FileName=5a-​1.7-​testpackage-​package.tar.gz.aes.​rsa.signed, Username=, CommandKey=1326944575
    07:03:45, 22 Jan. (259244.020000) CWMP: HTTP authentication success from https://pbthdm.bt.mo
    07:03:44, 22 Jan. (259242.460000) CWMP: Server URL: https://pbthdm.bt.mo; Connecting as user: ACS username
    07:03:44, 22 Jan. (259242.460000) CWMP: Session start now. Event code(s): '6 CONNECTION REQUEST,4 VALUE CHANGE'
    07:03:43, 22 Jan. (259242.260000) CWMP: Initializing transaction for event code 6 CONNECTION REQUEST
    07:03:42, 22 Jan. (259240.590000) CWMP: session completed successfully
    07:03:42, 22 Jan. (259240.380000) CWMP: HTTP authentication success from https://pbthdm.bt.mo
    07:03:39, 22 Jan. (259237.650000) CWMP: Server URL: https://pbthdm.bt.mo; Connecting as user: ACS username
    07:03:39, 22 Jan. (259237.640000) CWMP: Session start now. Event code(s): '2 PERIODIC,4 VALUE CHANGE'
    (259736.190000) PPP LCP Send Termination Request [User request]
    07:11:56, 22 Jan. (259734.290000) The system is going DOWN for reboot.
    07:11:56, 22 Jan. (259734.290000) OpenRG is going for reboot by IPC command
    07:11:51, 22 Jan. (259729.290000) OpenRG will go down for reboot in 5 seconds
    Then an hour later
    08:12:50, 22 Jan. ( 3626.280000) The system is going DOWN for reboot.
    08:12:50, 22 Jan. ( 3626.280000) OpenRG is going for reboot by IPC command
    08:12:45, 22 Jan. ( 3621.280000) OpenRG will go down for reboot in 5 seconds
    Latest Vdsl stats
    1. Product name: BT Home Hub
    2. Serial number: +068343+NQ33645431
    3. Firmware version: Software version 4.7.5.1.83.8.173.1.6 (Type A) Last updated 24/12/13
    4. Board version: BT Hub 5A
    5. VDSL uptime: 0 days, 00:12:21
    6. Data rate: 20000 / 67423
    7. Maximum data rate: 21277 / 67193
    8. Noise margin: 6.2 / 6.6
    9. Line attenuation: 0.0 / 16.8
    10. Signal attenuation: 0.0 / 16.8
    Strange that the data rate is higher than the maximum speeds ?

    Well my home hub 5 rebooted 3 times yesterday due to this openRG activity which seems to be a pushed trial version of new firmware 1.7 it's been downloaded to my hub but not activated as of yet lucky enough it has not effected DLM as of yet speeds still the same around 68 down 19 up but really annoyed as bt have not informed us of this, a simple email would be enough to keep us in the loop but that's asking to much I guess?

  • Strange event handling in firefox

    I have a simple web page with an embedded quick time to play audio files. I register events (e.g., qt_play, qt_ended) and monitor their occurrence.
    When I hit "play" I see the qt_play event, the audio plays, but I do not see the qt_pause or qt_ended events. If I move the mouse, then I see the events. If hit "play" and move the mouse but leave it on the quicktime object, I'll see all events. If I hit "play" and move the mouse off the quicktime object before the sound finishes, I will not see the events until I return the mouse over the quicktime object.
    Here is the HTML that creates the QT object
    <div id="QuickTime" style="border: thin solid red; padding: 20px;" >
    <OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="160"
    HEIGHT="16" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
    <PARAM name="SRC" VALUE="doorclosing7.mp3">
    <PARAM name="AUTOPLAY" VALUE="false">
    <PARAM name="POSTDOMEVENTS" VALUE="true">
    <EMBED id="qtembed" SRC="doorclosing7.mp3" WIDTH="160" HEIGHT="16" AUTOPLAY="false"
    PLUGINSPAGE="http://www.apple.com/quicktime/download/" postdomevents="true">
    </EMBED>
    </OBJECT>
    </div>
    The <body> contains
    onload="var player = document.getElementById('QuickTime');
    myAddListener(player, 'qt_ended', dosomething, false);
    where
    function myAddListener(obj, evt, handler, captures)
    var success;
    if ( document.addEventListener ) {
    success = obj.addEventListener(evt, handler, captures);
    } else {
    // IE
    success = obj.attachEvent('on' + evt, handler);
    Seems like some kind of internal problem in QT? Any suggestions?

    I encounter same problem.
    It seems if I play audio file without video stream, QT is not unable to receive qt_ended event.
    I checked following format.
    .mov with videostream works fine.
    .mov without videostream does not work.
    .wav without videostream does not work.
    .mp3 without videostream does not work.

  • Strange Event Organisation in Photo App!

    Hey guys,
    All of a sudden, out of the blue, my iPhone has completely changed the way it displays my photos in the events tab.
    Currently, I have 9 events, all set up in iphoto with all the relevant data attached.
    One or two of the events, I have added more photos on different days to the events, but still kept them as one event. Before, my iPhone would list the events in the same way as it does on iPhoto. But now, its chosen to display all the events, sorted into seperate events, as if I hadnt touched them in iphoto. I have multiple events, with the same titles, but only a fraction of the entire event in each entry.
    Any ideas?!

    The camera should be able to geotag your pictures with a location even without an international plan, yes, Canada or the Caribbean shouldn't matter. (You can prevent geotagging from happening by turning Location Services off for the Camera in Settings, General, Location Services, BTW--you might want to make sure it is still on, just in case)
    However, several people are reporting that Places isn't showing all their geotagged pictures.
    I'm assuming it's a bug--report it to Apple via AppleCare, Genius Bar, or http://apple.com/feedback
    Possibly the 4.1 update will fix it.

  • Strange Event Firing  .. Help !!

    Hi,
    I have an addon with a screen from which user selects a B/P via CFL using standard Business Partner selection screen.  Because i want to create BP's with only little data (basically name and address) I have created my own screen. When 'New' button is pressed I overide it and open my own screen which works well  - except that as well as my own screen opening , the standard one does too !
    I use B1DE to generate handlers so for add button on B/P selction screen so  i have ..
       [B1Listener(BoEventTypes.et_CLICK, true)]
            public virtual bool OnBeforeClick(ItemEvent pVal) {
                Form form = B1Connections.theAppl.Forms.Item(pVal.FormUID);
                Item item = form.Items.Item("5");
                Button button = ((Button)(item.Specific));
                // ADD YOUR ACTION CODE HERE ...
                if(Globals.overideBPAdd){
                try
                    Utility.LoadXml("MyBPForm.srf");
                    Form activeForm = B1Connections.theAppl.Forms.ActiveForm;
                    activeForm.Freeze(true);
                    .  // populate form
                    activeForm.Freeze(false);
                catch (Exception e)
                    throw e;
                 return false;
                // Standard ? just proceed as normal .. 
                return true;
    So, I return false if non standard form required thinking this would kill request to open form - but it doesn't ..
    So I try to supress opening of standard form by catching open event :
    public class Form__134 : B1Form {
            public Form__134() {
                FormType = "134";
            [B1Listener(BoEventTypes.et_FORM_LOAD, true)]
            public virtual bool OnBeforeFormLoad(ItemEvent pVal) {
                Form form = B1Connections.theAppl.Forms.Item(pVal.FormUID);
                // ADD YOUR ACTION CODE HERE ...
                if(Globals.overideBPAdd)
                    return false;
                return true;
    This doesn't work either - form still opens !! Can anyone offer an explanation as to why ???  ..

    Hi Owen , I'll try that when i get a minute .. I did find a workaround though .. As i say, i use B1DE to generate the listeners BUT I added this in the main program  ..
    I added this to my addon constructor  ..
      B1Connections.theAppl.ItemEvent += new _IApplicationEvents_ItemEventEventHandler(theAppl_ItemEventHandler);
    Then in the event handler (in the main program ) ..
    private void theAppl_ItemEventHandler(string formUID, ref SAPbouiCOM.ItemEvent pval, out bool BubbleEvent)
        if (pval.BeforeAction)
               if (pval.FormType.Equals(134) && pval.EventType.Equals(BoEventTypes.et_FORM_LOAD) &&
                         Globals.overideBPAdd)
                        BubbleEvent = false;
    This prevented the window from opening  ...  The formtype generated by B1DE seems to be alpha (see my previous entry)  whereas the one I keyed above is numeric  .. Not sure if that has anything to do with it .. I may play around and see if i can  isolate the problem further but i need to progress some stuff i'm way behind with .. My original problem still remains though in that i don't understand why my original code didn't work  !!  By the way i'm using 2007A SP 15 .. Thanks again Owen , I'll try your suggestion and maybe get back to you if your interested in the result ..

  • Strange Events in iPhoto

    Hi,
    I just bought a new MacBook Pro with iLife 09 installed. When I open iPhoto, there are 66 Events containing 1,179 photos in the library. I did not import these and they all appear to be miscellaneous icons, tutorials, etc from somewhere on my computer.
    I do not want these to show up as events, but I am afraid to delete them as I don't really know what they are. Any suggestions?
    Thank You!

    Oozark
    There has been a glitch on iPhoto 08 (and now, apparently on 09) where it might spontaneously import a lot of icons and so on from the HD. This is what’s happened here.
    If you have no photos of your own in there then simply trash the Library. Go to your Pictures Folder and find the iPhoto Library there and drag it to the trash. Launch iPhoto and it will create a new empty Library.
    Regards
    TD

  • Strange Event Processing error

    I have no idea about this one. I am trying to run the demos for jFreeReport and even the
    simplest construction of the demo class fails.
    BarChart3DDemo1 demo = new BarChart3DDemo1("3D Bar Chart Demo 1");
    the failure is:
    Java HotSpot(TM) Client VM warning: Setting of property "java.compiler" is ignored
    Exception occurred during event dispatching:
    java.lang.ExceptionInInitializerError: java.util.MissingResourceException: Can't find bundle for base name org.jfree.chart.plot.LocalizationBundle, locale en_US
         at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:707)
         at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:679)
         at java.util.ResourceBundle.getBundle(ResourceBundle.java:546)
         at org.jfree.chart.plot.CategoryPlot.<clinit>(CategoryPlot.java:189)
         at org.jfree.chart.ChartFactory.createBarChart3D(ChartFactory.java:518)
         at org.jfree.chart.demo.BarChart3DDemo1.createChart(BarChart3DDemo1.java:116)
         at org.jfree.chart.demo.BarChart3DDemo1.<init>(BarChart3DDemo1.java:76)

    I've encountered the same problem. The problem turned out to be the classpath... afer visiting http://mindprod.com/jgloss/classpath.html I could solve the problem by simply putting the required *.jar files in my \lib\ext directory.
    In this case you have to copy the jfreechart-0.x.xx.jar and all the jars in the jfreechart \lib directory to your JRE or JDK \lib\ext directory (or add it them to your classpath). Then it should work fine!

  • Strange event firing

    I have these functions:
    function Addsub (evt:MouseEvent) : void {
       if (myXML == null){
       sub_name_ok_btn.addEventListener (MouseEvent.CLICK, function(evt:MouseEvent){Subtotree (evt,sub_name_txtbox.text)});
       else
       sub_name_ok_btn.addEventListener (MouseEvent.CLICK, function(evt:MouseEvent){Subtotree2 (evt,sub_name_txtbox.text)});
    function Subtotree (evt:MouseEvent,subname:String) : void  {
        trace ("Subtotree fired");
    function Subtotree2 (evt:MouseEvent,subname:String) : void {
       trace ("Subtotree 2 fired");
    Now when I trigger Addsub with the mousevent and Subtotree is not null, trace gives "Subtotree 2 fired" as expected.  However when I click the second time "Subtotree 2 fired" is outputted twice more (not once more), if I click again it is outputted 3 times more and so on.  Can someone please enlighten me as to why this is happening? I tried the RemoveEventListener but got the same results.  Thanks!

    Programming language is not supposed to be user friendly. All language are unfriendly until one gets grasp of its capacities. What we don't know always looks intimidating at first.
    Back to the issues - use named function as event handlers. I realize that you are trying to pass additional to event type parameter but this in not the way to do that.
    So, you code may look like this:
    function Addsub(evt:MouseEvent):void
         if (myXML == null)
              sub_name_ok_btn.addEventListener(MouseEvent.CLICK, Subtotree);
         else
              sub_name_ok_btn.addEventListener(MouseEvent.CLICK, Subtotree2);
    function Subtotree(e:MouseEvent):void
         trace("Subtotree fired");
    function Subtotree2(e:MouseEvent):void
         trace("Subtotree 2 fired");
    Also, I urge you to reevaluate you naming conventions. Objects that start with capital letters in AS3 indicate Classes. So, if custom objects and instances are named starting with small caps and use camel casing - code is more readable.

  • Strange events in HH3 log

    hi ive been noticing this in my event log since re contracting with BT to get rid of the traffic shaping also noticed it maybe causing lag for me when gaming online. what ive read this is something todo with BTs IPTV what i dont have?
    16:02:56, 05 Sep. IN: BLOCK [5] Fragmented packet (IP 10.199.36.194->255.255.255.255 fragment_offset=2048)
    16:02:22, 05 Sep. OUT: BLOCK [44] Advanced Filter Rule (fw/policy/0/chain/fw_ath2_out/rule/0: UDP 0.0.0.0:68->255.255.255.255:67 on ath2)
    16:02:20, 05 Sep. BLOCKED 1 more packets (because of Advanced Filter Rule)
    16:02:19, 05 Sep. OUT: BLOCK [44] Advanced Filter Rule (fw/policy/0/chain/fw_ath2_out/rule/0: UDP 10.106.142.122:68->255.255.255.255:67 on ath2)
    16:01:42, 05 Sep. IN: BLOCK [12] Spoofing protection (IGMP 109.152.230.75->224.0.0.22 on ppp1)
    16:00:19, 05 Sep. OUT: BLOCK [15] Default policy (First packet in connection is not a SYN packet: TCP 192.168.1.10:58424->157.56.126.168:443 on ppp1)
    15:59:42, 05 Sep. IN: BLOCK [12] Spoofing protection (IGMP 109.152.230.75->224.0.0.22 on ppp1)
    15:59:31, 05 Sep. IN: BLOCK [15] Default policy (TCP 66.193.112.93:443->109.152.230.75:34006 on ppp1)
    15:59:24, 05 Sep. BLOCKED 2 more packets (because of Spoofing protection)
    15:59:23, 05 Sep. BLOCKED 3 more packets (because of Spoofing protection)
    15:59:22, 05 Sep. IN: BLOCK [12] Spoofing protection (IGMP 192.168.1.254->224.0.0.22 on eth1)
    15:59:22, 05 Sep. BLOCKED 1 more packets (because of Spoofing protection)
    15:59:22, 05 Sep. IN: BLOCK [12] Spoofing protection (IGMP 192.168.1.254->224.0.0.22 on eth1)

    I had got the same logs after the HH3 had it's update last December and tried all the fixes but to no effect, you will still get loads of logs.
    The difference between original firmware and new the firmware is that the HH3 is now showing you Firewall logs which it never did before the update, so you can relax it's normal

  • Canon 5D Mll Strange event

    I was shooting a panorama this morning and the sun was in front of me. I used live view and panned the area of interest and saw no problem with the sun. Set the camera to live view, Manual mode, and a 10 second delay. Shot the first and second picture, on the third picture the camera was lined up with the sun and the problem started. At the end of the 10 second delay, and the photo was taken, the preview showed an extreme over exposure in the center of the picture and the camera continued to take pictures.  I could not stop the picture triggering so I turned the camera off and when turned back on it seemed normal. I was using a Sigma 50mm 2.8 Macro lens. I put on my 24-105 and took several pictures at other angles away from the sun and the camera seems to be OK. 
    I am just interested to see if others have had something like this happen? 

    I have not seen any issues profiling the 5D II.
    Make sure you are not getting flare or non-uniform color casts while shooting the target.

  • Homehub 3.0 Wireless Event Log messages

    Hello,
    Can anyone tell me what event log messages like the following mean?
    3 consecutive beacons have not been transmitted
    I'm getting these about once every 20 minutes.  Smart Wireless is enabled.
    A couple of days ago Wireless became unstable, devices connecting and reconnecting repeatedly. The Wireless light was randomly flashing on and off (Blue) every few seconds.  I had to restart the homehub (which I didn't really want to do, as I was still within my first 10 days, with Infinity).  But after the restart, the admin password had changed.  I assumed it was reset to the original one, but that was also not recognised.  I had to do a password override to get access.
    Ever since then Wireless has been behaving itself but I'm still left with these strange event log messages - google comes up with nothing.
    Any ideas?

    Hi BRunner and welcome
    Although I've not had opportunity to obtain one of these hubs (BT are you listening), as I'm still on the hub 2, I'll try to help you out with this...
    It looks like the hub is reporting that it can't transmit the wireless signal on the chosen channels, why, I'm not too sure
    (this might be due to the design (how 'Smart Wifi' works), or dare I say it, the hub could be faulty!!!!!)
    Firstly, download either inSSIDer2 (Windows) or istumbler (MAC) - take care when installing, uncheck any 'additional freebies' as they're not needed.
    Either will show all the wireless SSIDs in your area. As I use inSSIDer2, I'll explain what to do using this one, I guess itsumbler would be similar (not a MAC man, yet!)
    Disconnect from your own hub, run inSSIDer and monitor any SSIDs, I recently noticed that 2 of my neighbours (VM) routers appears to grab channel 1 upto channel 7!
    This keeps changing and they keep fighting with each other. As this was affecting me, I've moved to channel 8. This can be manually set via the hub manager, but you'd probably need to switch off 'Smart Wifi'
    Ideally, take a screenshot of the results BUT remove ANY wireless SSID's, it's the channels in use that's important.
    -+-No longer a forum member-+-

  • GUI event handling problems appear in 1.4.1 vs. 1.3.1?

    Hi,
    Has anyone else experienced strange event handling problems when migrating from 1.3.1 to 1.4.1? My GUI applications that make use of Swing's AbstractTableModel suddenly don't track mouse and selection events quickly anymore. Formerly zippy tables are now very unresponsive to user interactions.
    I've run the code through JProbe under both 1.3 and 1.4 and see no differences in the profiles, yet the 1.4.1 version is virtually unusable. I had hoped that JProbe would show me that some low-level event-handling related or drawing method was getting wailed on in 1.4, but that was not the case.
    My only guess is that the existing installation of 1.3.1 is interfering with the 1.4.1 installation is some way. Any thoughts on that before I trash the 1.3.1 installation (which I'm slightly reluctant to do)?
    My platform is Windows XP Pro on a 2GHz P4 with 1GB RAM.
    Here's my test case:
    import javax.swing.table.AbstractTableModel;
    import javax.swing.*;
    import java.awt.*;
    public class VerySimpleTableModel extends AbstractTableModel
    private int d_rows = 0;
    private int d_cols = 0;
    private String[][] d_data = null;
    public VerySimpleTableModel(int rows,int cols)
    System.err.println("Creating table of size [" + rows + "," + cols +
    d_rows = rows;
    d_cols = cols;
    d_data = new String[d_rows][d_cols];
    int r = 0;
    while (r < d_rows){
    int c = 0;
    while (c < d_cols){
    d_data[r][c] = new String("[" + r + "," + c + "]");
    c++;
    r++;
    System.err.println("Done.");
    public int getRowCount()
    return d_rows;
    public int getColumnCount()
    return d_cols;
    public Object getValueAt(int rowIndex, int columnIndex)
    return d_data[rowIndex][columnIndex];
    public static void main(String[] args)
    System.err.println( "1.4..." );
    JFrame window = new JFrame();
    window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JPanel panel = new JPanel();
    Dimension size = new Dimension(500,500);
    panel.setMinimumSize(size);
    panel.setMaximumSize(size);
    JTable table = new JTable(new VerySimpleTableModel(40,5));
    panel.add(table);
    window.getContentPane().add(panel);
    window.setSize(new Dimension(600,800));
    window.validate();
    window.setVisible(true);
    Thanks in advance!!
    - Dean

    Hi,
    I've fixed the problem by upgrading to 1.4.1_02. I was on 1.4.1_01.
    I did further narrow down the symptoms more. It seemed the further the distance from the previous mouse click, the longer it would take for the table row to highlight. So, clicking on row 1, then 2, was much faster than clicking on row 1, then row 40.
    If no one else has seen this problem -- good! I wouldn't wish the tremendous waste of time I've had on anyone!
    - Dean

  • GUI event handling of 1.4.1 vs. 1.3.1

    Hi,
    Has anyone else experienced strange event handling problems when migrating from 1.3.1 to 1.4.1? My GUI applications that make use of Swing's AbstractTableModel suddenly don't track mouse and selection events quickly anymore. Formerly zippy tables are now very unresponsive to user interactions.
    I've run the code through JProbe under both 1.3 and 1.4 and see no differences in the profiles, yet the 1.4.1 version is virtually unusable. I had hoped that JProbe would show me that some low-level event-handling related or drawing method was getting wailed on in 1.4, but that was not the case.
    My only guess is that the existing installation of 1.3.1 is interfering with the 1.4.1 installation is some way. Any thoughts on that before I trash the 1.3.1 installation (which I'm slightly reluctant to do)?
    Here's my test case:
    import javax.swing.table.AbstractTableModel;
    import javax.swing.*;
    import java.awt.*;
    public class VerySimpleTableModel extends AbstractTableModel
    private int d_rows = 0;
    private int d_cols = 0;
    private String[][] d_data = null;
    public VerySimpleTableModel(int rows,int cols)
    System.err.println("Creating table of size [" + rows + "," + cols +
    d_rows = rows;
    d_cols = cols;
    d_data = new String[d_rows][d_cols];
    int r = 0;
    while (r < d_rows){
    int c = 0;
    while (c < d_cols){
    d_data[r][c] = new String("[" + r + "," + c + "]");
    c++;
    r++;
    System.err.println("Done.");
    public int getRowCount()
    return d_rows;
    public int getColumnCount()
    return d_cols;
    public Object getValueAt(int rowIndex, int columnIndex)
    return d_data[rowIndex][columnIndex];
    public static void main(String[] args)
    System.err.println( "1.4..." );
    JFrame window = new JFrame();
    window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JPanel panel = new JPanel();
    Dimension size = new Dimension(500,500);
    panel.setMinimumSize(size);
    panel.setMaximumSize(size);
    JTable table = new JTable(new VerySimpleTableModel(40,5));
    panel.add(table);
    window.getContentPane().add(panel);
    window.setSize(new Dimension(600,800));
    window.validate();
    window.setVisible(true);
    Thanks in advance!!
    - Dean

    Hi,
    I've fixed the problem by upgrading to 1.4.1_02. I was on 1.4.1_01.
    I did further narrow down the symptoms more. It seemed the further the distance from the previous mouse click, the longer it would take for the table row to highlight. So, clicking on row 1, then 2, was much faster than clicking on row 1, then row 40.
    If no one else has seen this problem -- good! I wouldn't wish the tremendous waste of time I've had on anyone!
    - Dean

  • Strange JTable update problems

    I am having some strange issues with a JTable.
    I have a custom AbstractTableModel that displays various properties of a list of Objects. I am using a java.util.Vector to store this list.
    The user is given several JComboBox objects which contain filters for my table, when any of these filters are changed, a class that manages my Database is asked to return a Vector full of objects that match these filters.
    I then set my table data Vector equal to this returned list and invoke fireTableStructureChanged() from my table model. This part works fine, the strange thing is, if the user has a table element selected and then they change the filters, the table will not update, it actually goes blank, but oddly enough the scroll bar on the scroll pane stays the same length as the old table.
    When I invoke the exact same update method again (which just sets the Vector containing my data to a new value, and fires the event) the table will update this time.
    I have tried calling MyJTable.getSelectionModel().clearSelection() in the hope that it will fix my problem, but it does not seem to do anything.
    So is my problem some strange event or threading glitch, or an issue with JScrollPane mabye?
    Thanks in advance for any help

    Try using the DefaultTableModel to see if you have the same problem. If not then you know the problem is with your custom TableModel.
    If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)",
    see http://homepage1.nifty.com/algafield/sscce.html,
    that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    Don't forget to use the "Code Formatting Tags",
    see http://forum.java.sun.com/help.jspa?sec=formatting,
    so the posted code retains its original formatting.

  • I can't get any help setting up Firefox 4 beta to rid my Computer of worms and viruses

    To All Forum Helpers,
    I am not smarter than a computer. I graduated High School in 1969 before computer knowledge became vital to www. I am computer novice at best computer dummie at least. I had an encounter with a demonic person in http://www.paltalk.com. I love playing trivia. I went into Rebels Tonight not nothing it was evil. Evil Rebel from the United Kingdom as He asked a Religious Question ? On what island did St.John write Revelations. I answered Pathos . He said I was wrong it was Patmos. I was brought up believing it was Pathos. He cursed me for not believing His answer. Now My New Webcam I can not use for he has his demonic forces typing in horrible things that happened in world history and I get booted out of rooms. I need to get the Answer for removing him from my computer. He even has gone so far as to disable my administration commands in my entire computer. It is a Windows Vista 32 or 64 bit version,which I had no knowledge about in July 2008. My Aunt Pam did but she moved out July 2009 and ever since than I encounter strange events,nut in the past I could get help since I had a Comcast account . Well I am wireless now and have no support whatsoever. Please Someone Help Me Regain control of my Computer.
    Sincerely
    Foreverchristianman7
    [email protected]
    Bob Robertson

    Bob,
    First off, do you have any virus protection (Norton, McAfee) on your
    computer? If so, make sure you are running periodic scans to protect
    yourself. If you have not purchased one, consider downloading AVG.
    http://www.AVG.com
    Secondly, if the person in the chatroom you had a disagreement with is
    a moderator of the room, he has the ability to remove you from the
    chat. I think it is a tad presumptuous to assume evil forces are at
    play. The site might have also disabled your webcam. Have you tried
    using it on other sites?
    Third concerning your administrative commands from your system, you
    need to be more specific. If you are not running an anti-virus
    program, viruses will remove/hide aspects of your computer. Viruses
    can be described as evil, but I’m not sure they are direct acts of
    Satan. Your loss of access might have also happened when your Aunt
    moved out. If she deleted her account, it might have somehow
    consequently removed your access from certain programs.
    Finally, you need to figure out who is providing your internet access.
    Comcast is an “internet service provider.” ‘Wireless’ is, well, not.
    If you are using a neighbor’s internet, you might have obtained a
    virus from here quite easily. This is also illegal if you do not have
    permission from the neighbor.
    I hope this helps.
    Marcus
    [email protected]

Maybe you are looking for

  • What is the scenario of SAP in India in terms of job and openings?

    My name is Dharmendra sachan, I have 6 years of experience in Sales& Marketing in real estate industry, I'm MBA in marketing. After my these years of experience, i am planning to go for SAP CRM, I would appreciate if someone guides me: 1. Will it be

  • When the Beta of WLI9.1 will be Out..

    Hi All, When is BEA planning to release the beta versin of 9.1 Integration. (The beta version of Portal is out ). I a curious to know what changes are on the cards as far as workflows are concerned and the support for BPEL etc... Thanks Sateesh

  • PSE 7 Won't print proper size

    I have resized my picture to 9.7 X 7.7 inches to fit a particular frame. When I go to print I choose "Center" and I choose 8.5 X 11 paper size and "print preview". However, when I hit "Print" the preview window comes up showing my picture in the uppe

  • New user - how do i synch movies with the iphone

    hello i have just purchased an iphone and before this i had been creating movies as mp4 files to transfer, however whn i connect to itunes i am able to transfer the files from a purchased show that appear in Tv shows but the files that appear as movi

  • Pricing communciation strutures.

    Hi, can any body explain how pricing happens at table/structure level. For instance we maintain condition records in VK11. which condition table/structure do the data maintained in vk11 goes to. how does the data matained in condition records gets co