Accurate historical AP aging

I would like to run an AP aging as of 12/31/2009 so I can make sure it ties to my GL. However, even though I back date my aging it still seems to be including transactions reconciled after 12/31/2009 in its results.  Is there no way to run an accurate historical aging?

If you are using 2007 version, you should get an accurate report by selecing the date and ticking the "Display customers with zero balance" option.
Leaving this unticked will exclude customers with a CURRENT balance of zero

Similar Messages

  • Vendor ageing does not agree with General ledger balance

    Good day all
    I have the following problem: I am trying to get a detailed ageing breakdown for our vendor liabilties as on the 30.06.10. The ledger shows a balance of approximately 1.7m but the vendor ageing report shows a balance of apprx. 1.802m when I set the ageing date to 30.06.10. I tried all possible other settings to run the ageing report but always get the same result. Does anyone know what the problem might be? Thanks in advance
    Andreas

    Hi Andreas,
    Have you selected including zero balance ?
    Check these for more info:
    Re: Customer Receivables Aging Problem
    Accurate historical AP aging
    Thanks,
    Gordon

  • Aging reports that display reconciled transactions

    Currently ie 2007a PL 35, when an aging report is run that displays reconciled transactions it is displaying all reconciled transactions including those reconciled before the aging date. My understanding of this feature was that it was intended to allow clients to run past dated aging correctly and for totals it does. However I have a client who works with detailed aging extensively and they would like a feature that would allow an aging report that would only show open balances that had been reconciled after the aging date. would it be possible to implement this into the current aging selection criteria?? It would help clients produce more accurate historical aging reports.
    Regards,
    John-Michael

    Which SAP B1 Version and Patch is under use at your end ?
    There were issues in SAP B1 regarding reconcilliations in versions prior to 2007 series.
    Samir Gandhi

  • What monitors are currently most appropriate for print jobs?

    Hi, I'm a free lance graphic designer for 20 years already and have always used Aperture Grid CRT Trinitron monitors as the most accurate for creating color jobs for print. I bought my last set of monitors Sony's Multiscan G420 in 2001. While they are still pretty accurate, they are aging and I'm thinking of buying new monitors. At that time - 2001, when I purchased my monitors there were a few other technologies like Shadow mask and LCD which were not good at all for creating graphic design color jobs for print.
    I'm not sure if they still sell Aperture Grid CRT monitors anymore and would like to find out what monitors/monitor technology is currently most appropriate for print jobs?
    I will greatly appreciate your tips.

    I'd go with a Sony, Samsung, or Sharp LCD and use it as a monitor, then professionally calibrate it.
    Viola, you have quality, resolution, saturation, accuracy, dependability, all in one

  • Capture and Save SQL Command that Ran in OLEDB Data Source

    Hi,
    My company is using SSIS to occasionally generate a file that is then being loaded into a transactional system.  At this point, things are not fully automated; the SQL query that is used for the data source is manually altered, SSIS is run, and the
    file is uploaded to the other system.  Every time the SSIS package runs, a log entry is created with summary information.
    I'm wondering: is it possible to capture the SQL command that runs in the data source, and save it with the log entry as part of the package run?  This would provide an accurate historical record of what filters were applied to the data that was loaded
    to the transactional system.
    Any thoughts/comments would be appreciated.

    Hello Smith,
    What I understood from your question that you want to know the query which is running in SSIS Data Source and same you want to insert into a table.
    Below query gives you what all queries are currently running on a specified DB:
    USE [SAMPLE_DB_NAME]
    SELECT  distinct getdate(), command, s.text, start_time, percent_complete, CAST(((DATEDIFF(s, start_time, GetDate())) / 3600) AS int) AS Long, CAST((DATEDIFF(s, start_time, GetDate()) % 3600) / 60 AS int) as LongMin, CAST(((DATEDIFF(s, 
                          start_time, GetDate())) / 3600) AS varchar) + ' hour(s), ' + CAST((DATEDIFF(s, start_time, GetDate()) % 3600) / 60 AS varchar) + 'min, ' + CAST((DATEDIFF(s,
                           start_time, GetDate()) % 60) AS varchar) + ' sec' AS running_time, CAST((estimated_completion_time / 3600000) AS varchar) 
                          + ' hour(s), ' + CAST((estimated_completion_time % 3600000) / 60000 AS varchar) + 'min, ' + CAST((estimated_completion_time % 60000) 
                          / 1000 AS varchar) + ' sec' AS est_time_to_go, dateadd(second, estimated_completion_time / 1000, getdate()) AS est_completion_time, blocking_session_id, r.status, last_wait_type,
    r.open_transaction_count, r.session_id, client_net_address, 
     CONVERT(VARCHAR(20), sp.host_name) as hostname, 
     CASE WHEN program_name = '.Net SqlClient Data Provider                      ' THEN 'Reporting Service'
     ELSE CONVERT(VARCHAR(50), program_name) 
     END as program_name,
     sp.login_name as name
    FROM         sys.dm_exec_requests r CROSS APPLY sys.dm_exec_sql_text(r.sql_handle) s INNER JOIN
                          sys.sysusers u ON r.user_id = u.uid
    INNER JOIN sys.dm_exec_connections dec ON dec.session_id = r.session_id INNER JOIN SYS.dm_exec_sessions sp on r.session_id = sp.session_id
    WHERE text not like 'SELECT     getdate(), command, s.text, start_time, percent_complete%'
    AND text not like '%sys.sp_trace_getdata%'
    AND text != 'sp_server_diagnostics'
    ORDER BY start_time
    You can schedule this query to run in 2-3 second and can capture the T-SQL and insert into a table.
    Thanks Shiven:) If Answer is Helpful, Please Vote

  • XL Reporter - historical aging report

    I am trying to create a report definition in XL Reporter to run historical A/R aging reports but am having great difficulties.  I am also getting notifed that a definition cannot be created.  This is a common report used by accountants for bank audit purposes and A/R insurance qualification purposes.  The existing SAP canned historical A/R aging report cannot be modified to include additional fields and filtering.  Please respond with possible solutions.  Many thanks! Jim

    Hi,
    If you will still try to use XL reporter, post your message about XL reporter in the SBO reporting and printing forum. There is probably a XL template for aging report history developed by someone out there.
    It won't take much time to wait. While waiting, you can try to develop the report using crystal report as suggested by Gordon, or using ms reporting services. We always use that reporting tools develop the report.  It is the best tool that also could make your report looks fine and accepted by auditor
    JimM

  • Timer Class not accurate and slows down my animation!?

    Does anyknow how why my timer object is not accurate and why it slows down my animation that is also present on my GUI at the same time?
    I have a timer in the form of 0.00 the left of the decimal point should represent a second but it doesnt, run my code and see for yourselves. below is my code if anyone can fix these 2 problems i will be very thankfull:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.Shape;
    import java.io.*;
    import java.text.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.event.*;
    import javax.swing.Timer;
    import java.sql.*;
    import java.text.*;
    public class RT extends JFrame implements MouseMotionListener
        //declares a number of swing componets to be used for the JFrame
        private JTextArea infoJTextArea;
        private JPanel showJPanel, startJPanel, helpJPanel, resultsJPanel;
        private JLabel de4JLabel, de3JLabel, mainTitleJLabel, nameJLabel, ageJLabel,
                       deJLabel, de1JLabel, de2JLabel, timeJLabel,nameResultJLabel,
                       ageResultJLabel, timeResultsJLabel, ratingJLabel, coJLabel, shJLabel;
        private JTextField nameJTextField, ageJTextField,nameResultJTextField,
                       ageResultsJTextField, timeResultsJTextField, ratingJTextField;
        private JButton exitJButton, showJButton, loginJButton, startTestJButton,
                        tempObjectJButton;
        private JScrollPane scroll;
    public JComboBox colourJComboBox, sizeJComboBox, shapeJComboBox, speedJComboBox;
    private static Connection dbcon;
    int temp=0;
    private String[] col = { "Red", "Blue", "Green","Yellow","Orange","Black"};
    private String[] shapeA = { "Normal Rectangle", "Normal Circle", "Normal Oval","BIG Rectangle", "BIG Circle","BIG Oval","small rectangle","small circle", "small oval"};
    private String[] speed = { "Fast", "Normal", "Slow"};
    public int checking;
    static int flag, flagshape, flagspeed;
        // creates and sets up a number of varibles to be used by the class
        public long timeLimit = 0;
        DecimalFormat timeDec = new DecimalFormat (":00");
        public int age;
        public String name, shapeChoice="Normal Rectangle(Never selected anything)", colourChoice="Black(Never selected anything)";
        private Timer TimeNow;
        private JTextField timerJTextField;
        ShapeMovingPanel testJPanel;
        Random seed;
        Shape shape;
        Shape[] shapes = {new Rectangle2D.Double(50, 30, 75, 25),new Ellipse2D.Double(175, 125, 50, 50),new Ellipse2D.Double(90, 100, 75, 35),new Rectangle2D.Double(50, 30, 175, 125),new Ellipse2D.Double(175, 125, 125, 125),new Ellipse2D.Double(90, 100, 175, 135),new Rectangle2D.Double(50, 30, 55, 15),new Ellipse2D.Double(175, 125, 20,20),new Ellipse2D.Double(90, 100, 55, 15)};
    //50, 30, 75, 25 change starting point here****************************************
        public RT()            // constructor method
            seed = new Random();
            shape = shapes[0];
            //sets up the Timer
            TimeNow = new Timer((1), new TimerListener());//++++++++++++++++++++++++++timer -17
            createUserInterface();          // method that creates the user interface     
        private void createUserInterface()
            new Thread(new Runnable()
                public void run()
                    String results = "";
                    int count = 0;
                    boolean journeyOn = true;
                    while(journeyOn && count < 3)
                        try
                            Thread.sleep(1000);
                        catch(InterruptedException ie)
                            System.err.println("show interrupt: " + ie.getMessage());
                            journeyOn = false;
                        results += count++ + ", ";
                    try {
                             Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                             dbcon = DriverManager.getConnection("jdbc:odbc:CMT3991", "", ""); // Access/ODBC
                          //connection ash used to connect to the user table in access
                           } catch(Exception eee)
                           eee.printStackTrace();  //exception if error occurs during the driver connection
                             System.out.println("* UserDA CONNECTED *");
            }).start();
            Container contentPane = getContentPane();
            contentPane.setLayout( null );
            // set up infoJTextField
            infoJTextArea = new JTextArea();
            infoJTextArea.setBounds( 20, 420, 550, 170  );
            infoJTextArea.setEditable( false);
            infoJTextArea.setText("\n    Welcome to the reaction testing program, this " +
                            "program is designed to test your reactions in a  \n"+
                            "    number of different situations.\n"+"\n    Please " +
                            "enter your name and age, or select show previous results.");
            contentPane.add( infoJTextArea );
            scroll = new JScrollPane(infoJTextArea);
            scroll.setBounds(  20, 420, 550, 170 );
            contentPane.add( scroll );
                  startJPanel = new JPanel();
            startJPanel.setBounds( 16,16, 560, 375 );
            startJPanel.setBorder(
                    new TitledBorder( "WELCOME - PLEASE ENTER YOUR NAME AND AGE:" ) );
            startJPanel.setLayout( null );
            contentPane.add( startJPanel );
            //sets up a JPanel
            mainTitleJLabel = new JLabel();
            mainTitleJLabel.setIcon( new ImageIcon( "title.png" ) );
            mainTitleJLabel.setBounds( 30, 10, 520, 170 );
            mainTitleJLabel.setHorizontalAlignment( JLabel.CENTER );
            startJPanel.add( mainTitleJLabel );
            //creates a newJLabel
            nameJLabel= new JLabel();
            nameJLabel.setBounds( 52, 200, 70, 35 );
            nameJLabel.setText("Name:");
            startJPanel.add( nameJLabel);
            //creates a new JTextField
            nameJTextField = new JTextField();
            nameJTextField.setBounds( 130, 200, 300, 24 );
            startJPanel.add( nameJTextField );
            //creates a newJLabel
            ageJLabel = new JLabel();
            ageJLabel.setBounds( 52, 245, 100, 35 );
            ageJLabel.setText("Age:");
            startJPanel.add( ageJLabel );
            //creates a new JTextField
            ageJTextField = new JTextField();
            ageJTextField.setBounds( 130, 245, 300, 24 );
            startJPanel.add( ageJTextField );
            //creates a JButton
            loginJButton = new JButton();
            loginJButton.setBounds( 440, 200, 90, 24 );
            loginJButton.setText( "Login" );
            loginJButton.setBackground( Color.YELLOW );
            startJPanel.add( loginJButton );
            loginJButton.setEnabled(true);
    //        loginJButton.setVisible(true);
            loginJButton.addActionListener(
                new ActionListener()    // adds an action listener,anonymous inner class
                    // event handler called when search is pressed
                    public void actionPerformed( ActionEvent event )
                        // not necessary to pass events to these methods...
                        Login();  // calls the Login method                       
            //creates a JButton
            showJButton = new JButton();
            showJButton.setBounds( 200, 320, 180, 24 );
            showJButton.setText( "Show previous results" );
            showJButton.setBackground( Color.YELLOW );
            startJPanel.add( showJButton );
            showJButton.setEnabled(true);
    //        showJButton.setVisible(true);
            showJButton.addActionListener(
                new ActionListener()    // adds an action listener,anonymous inner class
                    // event handler called when search is pressed
                    public void actionPerformed( ActionEvent event )
                        showData();   // calls the showData method                       
            //sets up a JPanel
            showJPanel = new JPanel();
            showJPanel.setBounds( 16,16, 560, 375 );
            showJPanel.setBorder(new TitledBorder( "PREVIOUS RESULTS:" ) );
            showJPanel.setLayout( null );
            contentPane.add( showJPanel );
            //sets up a JPanel
            helpJPanel = new JPanel();
            helpJPanel.setBounds( 16,16, 560, 375 );
            helpJPanel.setBorder(
            new TitledBorder( "CHOOSE A NUMBER OF OPTIONS AND GET READY:" ) );
            helpJPanel.setLayout( null );
            helpJPanel.setVisible(false);
            contentPane.add( helpJPanel );
            //creates a newJLabel
            deJLabel= new JLabel();
            deJLabel.setBounds( 23, 390, 530, 35 );
            deJLabel.setText("Details:");
            contentPane.add( deJLabel);
            //creates a newJLabel
            coJLabel= new JLabel();
            coJLabel.setBounds( 70, 40, 530, 35 );
            coJLabel.setText("Choose a colour:");
            helpJPanel.add( coJLabel);
            //creates a newJLabel
            de1JLabel= new JLabel();
            de1JLabel.setBounds( 25, 100, 530, 35 );
            de1JLabel.setText("You are about to start the reaction test, when you " +
                              "press the start button it will begin.");
            helpJPanel.add( de1JLabel);
            //creates a newJLabel
            de1JLabel= new JLabel();
            de1JLabel.setBounds(160, 145, 530, 35 );
            de1JLabel.setText("Simply catch the moving item and click.");
            helpJPanel.add( de1JLabel);
            colourJComboBox = new JComboBox( col );
               colourJComboBox.setBounds( 70, 70, 135, 21 );
               colourJComboBox.setMaximumRowCount( 3 );
               helpJPanel.add( colourJComboBox );
              colourJComboBox.addActionListener(
                new ActionListener() // adds an action listener,anonymous inner class
                    // event handler called when search is pressed
                    public void actionPerformed( ActionEvent event )
                         colourChoice="Black";
                         int x = colourJComboBox.getSelectedIndex();
                        if( x  == 0)
                             flag = 1;
                             colourChoice="Red";
                        else if(x  == 1)
                             flag = 2;
                             colourChoice="Blue";
                        else if(x  == 2)
                             flag = 3;
                                colourChoice="Green";
                         else if(x  == 3)
                             flag = 4;
                                colourChoice="Yellow";
                         else if(x  == 4)
                             flag = 5;
                                colourChoice="Orange";
                           else if(x  == 5)
                             flag = 6;
                                colourChoice="Black";
            shJLabel= new JLabel();
            shJLabel.setBounds( 340, 40, 530, 35 );
            shJLabel.setText("Choose a shape and size:");
            helpJPanel.add( shJLabel);
            shapeJComboBox = new JComboBox( shapeA );
               shapeJComboBox.setBounds( 340, 70, 135, 21 );
               shapeJComboBox.setMaximumRowCount( 3 );
               helpJPanel.add( shapeJComboBox );
              shapeJComboBox.addActionListener(
                new ActionListener() // adds an action listener,anonymous inner class
                    // event handler called when search is pressed
                    public void actionPerformed( ActionEvent event )
                          int xshape = shapeJComboBox.getSelectedIndex();
                        //shapeChoice="Normal Rectangle";
                        if( xshape  == 0)
                        {     flagshape = 1;
                             shapeChoice="Normal Rectangle";
                        else if(xshape  == 1)
                        {     flagshape = 2;
                             shapeChoice="Normal Circle";
                        else if(xshape  == 2)//**********here
                        {     flagshape = 3;
                             shapeChoice="Normal Oval";
                        else if(xshape  == 3)
                        {     flagshape = 4;
                             shapeChoice="BIG Rectangle";
                        else if(xshape  == 4)
                       {      flagshape = 5;
                             shapeChoice="BIG Circle";
                        else if(xshape  == 5)
                     {        flagshape = 6;
                             shapeChoice="BIG Oval";
                        else if(xshape  == 6)
                             flagshape = 7;
                             shapeChoice="small rectangle";
                        else if(xshape  == 7)
                     {        flagshape = 8;
                             shapeChoice="small circle";
                        else if(xshape  == 8)
                     {        flagshape = 9;
                             shapeChoice="small oval";
          /*  speedJComboBox = new JComboBox( speed );
               speedJComboBox.setBounds( 10, 150, 135, 21 );
               speedJComboBox.setMaximumRowCount( 3 );
               helpJPanel.add( speedJComboBox );
              speedJComboBox.addActionListener(
                new ActionListener() // adds an action listener,anonymous inner class
                    // event handler called when search is pressed
                    public void actionPerformed( ActionEvent event )
                          int xspeed = speedJComboBox.getSelectedIndex();
                        if( xspeed  == 0)
                             flagspeed = 1;
                             else if(xspeed  == 1)
                             flagspeed = 2;
                             else
                             flagspeed = 3;
                        System.out.println(flagspeed);     
            //creates a newJLabel
            de2JLabel= new JLabel();
            de2JLabel.setBounds( 20, 380, 70, 35 );
            de2JLabel.setText("Details:");
            helpJPanel.add( de2JLabel);
            //creates a JButton
            startTestJButton = new JButton();
            startTestJButton.setBounds( 185, 205, 180, 60 );
            startTestJButton.setText( "START" );
            startTestJButton.setBackground( Color.YELLOW );
            helpJPanel.add( startTestJButton );
            startTestJButton.setEnabled(true);
    //        startTestJButton.setVisible(true);
            startTestJButton.addActionListener(
                new ActionListener() // adds an action listener,anonymous inner class
                    // event handler called when search is pressed
                    public void actionPerformed( ActionEvent event )
                        startTest();
            //sets up an animation panel
            testJPanel = new ShapeMovingPanel(this);
            testJPanel.setBounds( 16,16, 560, 375 );
            testJPanel.setBorder(new TitledBorder("Click the moving object:"));
            testJPanel.setLayout( null );
            testJPanel.setVisible(false);
            contentPane.add( testJPanel );
            testJPanel.addMouseMotionListener(this);
            //creates a newJLabel
            timeJLabel = new JLabel();
            timeJLabel.setBounds( 440, 330, 100, 35 );
            timeJLabel.setText("Time:");
            testJPanel.add( timeJLabel );
            //creates a new JTextField
            timerJTextField = new JTextField();
            timerJTextField.setBounds( 480, 335, 60, 24 );
            timerJTextField.setText(String.valueOf(timeLimit));
            timerJTextField.setHorizontalAlignment(JTextField.CENTER );
            timerJTextField.setEditable(false);
            timerJTextField.setBackground( Color.YELLOW );
            testJPanel.add( timerJTextField );
            resultsJPanel = new JPanel();
            resultsJPanel.setBounds( 16,16, 560, 375 );
            resultsJPanel.setBorder(new TitledBorder("HERE ARE YOUR RESULTS:"));
            resultsJPanel.setLayout( null );
            resultsJPanel.setVisible(false);
            contentPane.add( resultsJPanel );
            de3JLabel= new JLabel();
            de3JLabel.setBounds(20, 200, 530, 35 );
            de3JLabel.setText("Below is also the movements you made with your mouse, " +
                              "you may exit the program now.");
            resultsJPanel.add( de3JLabel);
            de4JLabel= new JLabel();
            de4JLabel.setBounds(135, 245, 530, 35 );
            de4JLabel.setText("Thank you for trying the Reaction Testing program");
            resultsJPanel.add( de4JLabel);
            //creates a newJLabel
            nameResultJLabel= new JLabel();
            nameResultJLabel.setBounds( 62, 55, 50, 35 );
            nameResultJLabel.setText("Name:");
            resultsJPanel.add( nameResultJLabel);
            //creates a new JTextField
            nameResultJTextField = new JTextField();
            nameResultJTextField.setBounds( 140, 55, 300, 24 );
            resultsJPanel.add( nameResultJTextField );
            nameResultJTextField.setEditable(false);
            //creates a newJLabel
            ageResultJLabel = new JLabel();
            ageResultJLabel.setBounds( 62, 90, 100, 35 );
            ageResultJLabel.setText("Age:");
            resultsJPanel.add( ageResultJLabel );
            //creates a new JTextField
            ageResultsJTextField = new JTextField();
            ageResultsJTextField.setBounds( 140, 90, 300, 24 );
            resultsJPanel.add( ageResultsJTextField );
            ageResultsJTextField.setEditable(false);
            //creates a newJLabel
            timeResultsJLabel = new JLabel();
            timeResultsJLabel.setBounds( 62, 125, 100, 35 );
            timeResultsJLabel.setText("Time taken:");
            resultsJPanel.add( timeResultsJLabel );
            //creates a new JTextField
            timeResultsJTextField = new JTextField();
            timeResultsJTextField.setBounds( 140, 125, 300, 24 );
            resultsJPanel.add( timeResultsJTextField );
            timeResultsJTextField.setEditable(false);
            //creates a newJLabel
            ratingJLabel = new JLabel();
            ratingJLabel.setBounds( 62, 160, 100, 35 );
            ratingJLabel.setText("Your Rating:");
            resultsJPanel.add( ratingJLabel );
            ratingJTextField = new JTextField();
            ratingJTextField.setBounds( 140, 160, 300, 24 );
            resultsJPanel.add( ratingJTextField );
            ratingJTextField.setEditable(false);
            //creates a JButton
            exitJButton = new JButton();
            exitJButton.setBounds( 235, 310, 90, 24 );
            exitJButton.setText( "Exit" );
            exitJButton.setBackground( Color.WHITE );
            resultsJPanel.add( exitJButton );
            exitJButton.setEnabled(true);
            exitJButton.addActionListener(
                new ActionListener() // adds an action listener,anonymous inner class
                    // event handler called when exitJButton is pressed
                    public void actionPerformed( ActionEvent event )
                        System.exit(0); //closes the programme
            }); // end anonymous inner class
            addWindowListener(new WindowAdapter()
                public void windowClosing(WindowEvent e)
                    System.exit(0);
            // set properties of application's window
            setTitle( "Reaction Tester - CMT3991" ); // set JFrame's title bar string
            //setSize( 1280,995 );    // set width and height of JFrame
            setSize( 608, 650 );         // set width and height of JFrame
            setVisible( true );       // display JFrame on screen
        //** set up of method main */
        public static void main( String[] args )
            RT application = new RT();
            application.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
        } // end method main
         * action listener for TimeNow Timer
        private class TimerListener implements ActionListener
            public void actionPerformed(ActionEvent event)
                timeLimit ++;          
                if (timeLimit==100)
                     temp++;
                     timeLimit=0;
                timerJTextField.setText(String.valueOf(temp +""+timeDec.format(timeLimit)));
        private void Login()
            try
                name = nameJTextField.getText();
                age = Integer.parseInt(ageJTextField.getText());
                startJPanel.setVisible(false);
                showJPanel.setVisible(false);
                helpJPanel.setVisible(true);
                infoJTextArea.setText("\n    Welcome "+name+" you will soon know how " +
                                      "fast your reactions are.");
            catch (NumberFormatException exception)
                JOptionPane.showMessageDialog(this,
                        "There is either a blank field or a number hasn't been entered",
                        "Input Type error", JOptionPane.ERROR_MESSAGE);
                //shows this is something has been entered wrong
        private void startTest()
            helpJPanel.setVisible(false);
          //  System.out.println(""+ seed.nextInt(shapes.length));
            //shape = shapes[seed.nextInt(shapes.length)];//****************************
            if (flagshape==1)
                 shape = shapes[0];// changed colour here***************************
            else if (flagshape==2)
                 shape = shapes[1];// changed colour here***************************
            else if (flagshape==3)
                 shape = shapes[2];// changed colour here***************************
           else if (flagshape==4)
                 shape = shapes[3];// changed colour here***************************
             else if (flagshape==5)
                 shape = shapes[4];// changed colour here***************************
            else if (flagshape==6)
                 shape = shapes[5];// changed colour here***************************
            else if (flagshape==7)
                 shape = shapes[6];// changed colour here***************************
            else if (flagshape==8)
                 shape = shapes[7];// changed colour here***************************
            else if (flagshape==9)
                 shape = shapes[8];// changed colour here***************************
           // shape = shapes[8];
            System.out.println(shape.toString());
            testJPanel.setShape(shape);
            testJPanel.setVisible(true);
            testJPanel.start();
            infoJTextArea.setText("");
            TimeNow.start();
         * called by animation panel after shape is clicked
        public void stop()
            TimeNow.stop();
            movingObject();
         * this will compete with your animation
         * ie, it will slow it down or make it appear jerky
        public void mouseMoved(MouseEvent e)
            saySomething("\n    Mouse moved", e);
        public void mouseDragged(MouseEvent e)
            saySomething("\n    Mouse dragged", e);
        void saySomething(String eventDescription, MouseEvent e)
            infoJTextArea.append(eventDescription
                         + " (" + e.getX() + "," + e.getY() + ")");
            infoJTextArea.setCaretPosition(infoJTextArea.getDocument().getLength());
        private void movingObject()
            TimeNow.stop();
            //timeLimit;
            testJPanel.setVisible(false);
            resultsJPanel.setVisible(true);
            nameResultJTextField.setText(name);
            ageResultsJTextField.setText(String.valueOf(age)+" years old");
    System.out.println("shape used: "+shapeChoice);
            String mouse = infoJTextArea.getText();
            String tick = timerJTextField.getText();
            timeResultsJTextField.setText(tick);
            try
                // create a file called welch.txt
                final FileWriter outputFile = new FileWriter("Backup_of_"+name+"s_results.txt", true);
                final BufferedWriter outputBuffer = new BufferedWriter(outputFile);
                // converts data to a formatted string
                final PrintWriter printstream = new PrintWriter(outputBuffer);
                printstream.println("THIS IS A BACKUP");
                printstream.println("The person's name is: "+name);
                printstream.println("There age is: "+age);
                printstream.println("Time taken: "+tick+" seconds");
                printstream.println("The Shape and size was: "+shapeChoice);
                printstream.println("It's colour was: "+colourChoice);
                printstream.println("The mouse moved as follows: "+mouse);
                //states what needs to be printed to the new file
                printstream.close(); // closes teh printstream
            catch(IOException eio)
                //catchs the IO exception
            if(temp<5.00)
                ratingJTextField.setText("Thierry Henry");     
            else if(timeLimit<=10)
                ratingJTextField.setText("Average");     
            else if(timeLimit<=15)
                ratingJTextField.setText("You gotta be fat or something");     
            else if(timeLimit<=20)
                ratingJTextField.setText("See a doctor");
            else if(timeLimit>20)
                ratingJTextField.setText("DO YOU KNOW WHAT YOU DOING!?");
            String rate=ratingJTextField.getText();
            try
                   Statement st = dbcon.createStatement();
                   String cmd = "INSERT INTO users (Name, Age, Time_Taken, Rating, Mouse_Movement,Shape_and_Size, Shape_Colour) VALUES ('" + name + "' , " + age + " , '" + tick + "' , '" + rate+"','"+ mouse+"','"+ shapeChoice+"','"+ colourChoice+"');";
                //creates a SQL statement and executes it
                st.executeUpdate(cmd);
                   st.close();//close the statement
              } catch (Exception eDA)
                   eDA.printStackTrace();
        private void showData()
            // pretend this takes awhile -> 3 seconds (count)
            new Thread(new Runnable()
                public void run()
                    String results = "";
                    int count = 0;
                    boolean journeyOn = true;
                    while(journeyOn && count < 3)
                        try
                            Thread.sleep(1000);
                        catch(InterruptedException ie)
                            System.err.println("show interrupt: " + ie.getMessage());
                            journeyOn = false;
                        results += count++ + ", ";
                    infoJTextArea.setText("Here are your results:\n"+results);
                    startJPanel.setVisible(false);
                    showJPanel.setVisible(true);
            }).start();
    class ShapeMovingPanel extends JPanel implements ActionListener
        RT host;
        Timer timer;
        Shape shape, xformed;
        int x, y, dx, dy;
        public ShapeMovingPanel(RT rt)
            timer = new Timer(-20, this);     
            host = rt;
        /*    if (rt.flagspeed==1)
            timer = new Timer(-20, this);
            else if (rt.flagspeed==2)
                timer = new Timer(20, this);
            else if (rt.flagspeed==3)
            timer = new Timer(100, this);
            //change speed here******************************
            x = 0;//0
            y = 0;//0
            dx =2;//2
            dy = 3;//3
            //setBackground(Color.pink);
            addMouseListener(new ShapeTender());
        public void actionPerformed(ActionEvent e)
            int w = getWidth();
            int h = getHeight();
            if(w <= 0 || h <= 0)
                return;
            checkBoundries(w,h);
            x += dx;
            y += dy;
            repaint();
        private void checkBoundries(int w, int h)
            Rectangle r = xformed.getBounds();
            Insets insets = getInsets();
            if(r.x + dx < insets.left || r.x + r.width + dx > w - insets.right)
                dx *= -1;
            if(r.y + dy < insets.top || r.y + r.height + dy > h - insets.bottom)
                dy *= -1;
        protected void paintComponent(Graphics g)
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            AffineTransform at = AffineTransform.getTranslateInstance(x, y);
            if (RT.flag==1)
            {g2.setPaint(Color.red);// changed colour here***************************
            else if (RT.flag==2)
            {g2.setPaint(Color.blue);// changed colour here***************************
            else if (RT.flag==3)
            {g2.setPaint(Color.green);// changed colour here***************************
            else if (RT.flag==4)
            {g2.setPaint(Color.yellow);// changed colour here***************************
            else if (RT.flag==5)
            {g2.setPaint(Color.orange);// changed colour here***************************
            else if (RT.flag==6)
            {g2.setPaint(Color.black);// changed colour here***************************
            xfo                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

    I'm (being lazy and) using the older RT app posted on your last thread. I removed the
    TimeNow timer from the RT class and used System.currentTimeMillis (as you requested) to
    determine the elapsed time during the animation (see "startTest", "stop" and
    "movingObject" methods). Also changed the DecimalFormat to NumberFormat and set the
    "maximumFractionDigits" to "2" so it will truncate the fraction to two digits (more simple
    than before). Made arrangements for the ShapeMovingPanel class to update the
    "timerJTextField" during the animation (RT.updateTime method).
    The MouseMotionListener is causing the animation to appear jerky and uneven. The
    "mouseMoved" method is very busy while the mouse is moving. You might consider recording
    the "mousePressed" events instead of the "mouseMoved" events, ie, the events where the user
    is attempting to click inside the moving shape. It would allow the app to be more
    responsive and might eliminate the uneven motion of the animating shape.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.io.*;
    import java.text.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.event.*;
    import javax.swing.Timer;
    public class RT extends JFrame implements MouseMotionListener
        //declares a number of swing componets to be used for the JFrame
        private JTextArea infoJTextArea;
        private JPanel showJPanel, startJPanel, helpJPanel, resultsJPanel;
        private JLabel de4JLabel, de3JLabel, mainTitleJLabel, nameJLabel, ageJLabel,
                       deJLabel, de1JLabel, de2JLabel, timeJLabel,nameResultJLabel,
                       ageResultJLabel, timeResultsJLabel, ratingJLabel;
        private JTextField nameJTextField, ageJTextField,nameResultJTextField,
                       ageResultsJTextField, timeResultsJTextField, ratingJTextField;
        private JButton exitJButton, showJButton, loginJButton, startTestJButton,
                        tempObjectJButton;
        private JScrollPane scroll;;
        // creates and sets up a number of varibles to be used by the class
        private long startTime;
        private long endTime;
        public int timeLimit = 0;
        public int age;
        public String name;
        private JTextField timerJTextField;
        ShapeMovingPanel testJPanel;
        NumberFormat timeDec;
        Random seed;
        Shape shape;
        Shape[] shapes = {
            new Rectangle2D.Double(50, 30, 75, 25),
            new Ellipse2D.Double(175, 125, 50, 50),
            new Ellipse2D.Double(90, 100, 75, 35)
        public RT()
            timeDec = NumberFormat.getInstance();
            timeDec.setMaximumFractionDigits(2);
            seed = new Random();
            shape = shapes[0];
            createUserInterface();
        private void createUserInterface()
            Container contentPane = getContentPane();
            contentPane.setLayout( null );
            // set up infoJTextField
            infoJTextArea = new JTextArea();
            infoJTextArea.setBounds( 20, 420, 550, 170  );
            infoJTextArea.setEditable( false);
            infoJTextArea.setText("\n    Welcome to the reaction testing program, this " +
                            "program is designed to test your reactions in a  \n"+
                            "    number of different situations.\n"+"\n    Please " +
                            "enter your name and age, or select show previous results.");
            contentPane.add( infoJTextArea );
            scroll = new JScrollPane(infoJTextArea);
            scroll.setBounds(  20, 420, 550, 170 );
            contentPane.add( scroll );
              startJPanel = new JPanel();
            startJPanel.setBounds( 16,16, 560, 375 );
            startJPanel.setBorder(
                    new TitledBorder( "WELCOME -PLEASE ENTER YOUR NAME AND AGE:" ) );
            startJPanel.setLayout( null );
            contentPane.add( startJPanel );
            //sets up a JPanel
            mainTitleJLabel = new JLabel();
            mainTitleJLabel.setIcon( new ImageIcon( "title.png" ) );
            mainTitleJLabel.setBounds( 30, 10, 520, 170 );
            mainTitleJLabel.setHorizontalAlignment( JLabel.CENTER );
            startJPanel.add( mainTitleJLabel );
            //creates a newJLabel
            nameJLabel= new JLabel();
            nameJLabel.setBounds( 52, 200, 70, 35 );
            nameJLabel.setText("Name:");
            startJPanel.add( nameJLabel);
            //creates a new JTextField
            nameJTextField = new JTextField();
            nameJTextField.setBounds( 130, 200, 300, 24 );
            startJPanel.add( nameJTextField );
            //creates a newJLabel
            ageJLabel = new JLabel();
            ageJLabel.setBounds( 52, 245, 100, 35 );
            ageJLabel.setText("Age:");
            startJPanel.add( ageJLabel );
            //creates a new JTextField
            ageJTextField = new JTextField();
            ageJTextField.setBounds( 130, 245, 300, 24 );
            startJPanel.add( ageJTextField );
            //creates a JButton
            loginJButton = new JButton();
            loginJButton.setBounds( 440, 200, 90, 24 );
            loginJButton.setText( "Login" );
            loginJButton.setBackground( Color.YELLOW );
            startJPanel.add( loginJButton );
            loginJButton.setEnabled(true);
            loginJButton.addActionListener(
                new ActionListener()    // adds an action listener,anonymous inner class
                    // event handler called when search is pressed
                    public void actionPerformed( ActionEvent event )
                        // not necessary to pass events to these methods...
                        Login();  // calls the Login method                       
            //creates a JButton
            showJButton = new JButton();
            showJButton.setBounds( 200, 320, 180, 24 );
            showJButton.setText( "Show previous results" );
            showJButton.setBackground( Color.YELLOW );
            startJPanel.add( showJButton );
            showJButton.setEnabled(true);
            showJButton.addActionListener(
                new ActionListener()    // adds an action listener,anonymous inner class
                    // event handler called when search is pressed
                    public void actionPerformed( ActionEvent event )
                        showData();   // calls the showData method                       
            //sets up a JPanel
            showJPanel = new JPanel();
            showJPanel.setBounds( 16,16, 560, 375 );
            showJPanel.setBorder(new TitledBorder( "PREVIOUS RESULTS:" ) );
            showJPanel.setLayout( null );
            contentPane.add( showJPanel );
            //sets up a JPanel
            helpJPanel = new JPanel();
            helpJPanel.setBounds( 16,16, 560, 375 );
            helpJPanel.setBorder(
            new TitledBorder( "HELP DETAILS:" ) );
            helpJPanel.setLayout( null );
            helpJPanel.setVisible(false);
            contentPane.add( helpJPanel );
            //creates a newJLabel
            deJLabel= new JLabel();
            deJLabel.setBounds( 23, 390, 530, 35 );
            deJLabel.setText("Details:");
            contentPane.add( deJLabel);
            //creates a newJLabel
            de1JLabel= new JLabel();
            de1JLabel.setBounds( 25, 100, 530, 35 );
            de1JLabel.setText("You are about to start the reaction test, when you " +
                              "press the start button it will begin.");
            helpJPanel.add( de1JLabel);
            //creates a newJLabel
            de1JLabel= new JLabel();
            de1JLabel.setBounds(160, 145, 530, 35 );
            de1JLabel.setText("Simply catch the moving item and click.");
            helpJPanel.add( de1JLabel);
            //creates a newJLabel
            de2JLabel= new JLabel();
            de2JLabel.setBounds( 20, 380, 70, 35 );
            de2JLabel.setText("Details:");
            helpJPanel.add( de2JLabel);
            //creates a JButton
            startTestJButton = new JButton();
            startTestJButton.setBounds( 185, 205, 180, 60 );
            startTestJButton.setText( "START" );
            startTestJButton.setBackground( Color.YELLOW );
            helpJPanel.add( startTestJButton );
            startTestJButton.setEnabled(true);
            startTestJButton.addActionListener(
                new ActionListener() // adds an action listener,anonymous inner class
                    // event handler called when search is pressed
                    public void actionPerformed( ActionEvent event )
                        startTest();
            //sets up an animation panel
            testJPanel = new ShapeMovingPanel(this);
            testJPanel.setBounds( 16,16, 560, 375 );
            testJPanel.setBorder(new TitledBorder("Click the moving object:"));
            testJPanel.setLayout( null );
            testJPanel.setVisible(false);
            contentPane.add( testJPanel );
    // this is causing the animation to appear uneven
    // you can try the app with and without this to see
    //        testJPanel.addMouseMotionListener(this);
            //creates a newJLabel
            timeJLabel = new JLabel();
            timeJLabel.setBounds( 440, 330, 100, 35 );
            timeJLabel.setText("Time:");
            testJPanel.add( timeJLabel );
            //creates a new JTextField
            timerJTextField = new JTextField();
            timerJTextField.setBounds( 480, 335, 60, 24 );
            timerJTextField.setText(String.valueOf(timeLimit));
            timerJTextField.setHorizontalAlignment(JTextField.CENTER );
            timerJTextField.setEditable(false);
            timerJTextField.setBackground( Color.YELLOW );
            testJPanel.add( timerJTextField );
            resultsJPanel = new JPanel();
            resultsJPanel.setBounds( 16,16, 560, 375 );
            resultsJPanel.setBorder(new TitledBorder("HERE ARE YOUR RESULTS:"));
            resultsJPanel.setLayout( null );
            resultsJPanel.setVisible(false);
            contentPane.add( resultsJPanel );
            de3JLabel= new JLabel();
            de3JLabel.setBounds(20, 200, 530, 35 );
            de3JLabel.setText("Below is also the movements you made with your mouse, " +
                              "you may exit the program now.");
            resultsJPanel.add( de3JLabel);
            de4JLabel= new JLabel();
            de4JLabel.setBounds(135, 245, 530, 35 );
            de4JLabel.setText("Thank you for trying the Reaction Testing program");
            resultsJPanel.add( de4JLabel);
            //creates a newJLabel
            nameResultJLabel= new JLabel();
            nameResultJLabel.setBounds( 62, 55, 50, 35 );
            nameResultJLabel.setText("Name:");
            resultsJPanel.add( nameResultJLabel);
            //creates a new JTextField
            nameResultJTextField = new JTextField();
            nameResultJTextField.setBounds( 140, 55, 300, 24 );
            resultsJPanel.add( nameResultJTextField );
            nameResultJTextField.setEditable(false);
            //creates a newJLabel
            ageResultJLabel = new JLabel();
            ageResultJLabel.setBounds( 62, 90, 100, 35 );
            ageResultJLabel.setText("Age:");
            resultsJPanel.add( ageResultJLabel );
            //creates a new JTextField
            ageResultsJTextField = new JTextField();
            ageResultsJTextField.setBounds( 140, 90, 300, 24 );
            resultsJPanel.add( ageResultsJTextField );
            ageResultsJTextField.setEditable(false);
            //creates a newJLabel
            timeResultsJLabel = new JLabel();
            timeResultsJLabel.setBounds( 62, 125, 100, 35 );
            timeResultsJLabel.setText("Time taken:");
            resultsJPanel.add( timeResultsJLabel );
            //creates a new JTextField
            timeResultsJTextField = new JTextField();
            timeResultsJTextField.setBounds( 140, 125, 300, 24 );
            resultsJPanel.add( timeResultsJTextField );
            timeResultsJTextField.setEditable(false);
            //creates a newJLabel
            ratingJLabel = new JLabel();
            ratingJLabel.setBounds( 62, 160, 100, 35 );
            ratingJLabel.setText("Your Rating:");
            resultsJPanel.add( ratingJLabel );
            ratingJTextField = new JTextField();
            ratingJTextField.setBounds( 140, 160, 300, 24 );
            resultsJPanel.add( ratingJTextField );
            ratingJTextField.setEditable(false);
            //creates a JButton
            exitJButton = new JButton();
            exitJButton.setBounds( 235, 310, 90, 24 );
            exitJButton.setText( "Exit" );
            exitJButton.setBackground( Color.WHITE );
            resultsJPanel.add( exitJButton );
            exitJButton.setEnabled(true);
            exitJButton.addActionListener(
                new ActionListener() // adds an action listener,anonymous inner class
                    // event handler called when exitJButton is pressed
                    public void actionPerformed( ActionEvent event )
                        System.exit(0); //closes the programme
            }); // end anonymous inner class
            addWindowListener(new WindowAdapter()
                public void windowClosing(WindowEvent e)
                    System.exit(0);
            // set properties of application's window
            setTitle( "Reaction Tester - CMT3991" ); // set JFrame's title bar string
            //setSize( 1280,995 );    // set width and height of JFrame
            setSize( 608, 650 );         // set width and height of JFrame
            setVisible( true );       // display JFrame on screen
        //** set up of method main */
        public static void main( String[] args )
            RT application = new RT();
            application.setDefaultCloseOperation( EXIT_ON_CLOSE );
        } // end method main
        private void Login()
            try
                name = nameJTextField.getText();
                age = Integer.parseInt(ageJTextField.getText());
                startJPanel.setVisible(false);
                showJPanel.setVisible(false);
                helpJPanel.setVisible(true);
                infoJTextArea.setText("\n    Welcome "+name+" you will soon know how " +
                                      "fast your reactions are");
            catch (NumberFormatException exception)
                JOptionPane.showMessageDialog(this,
                        "There is either a blank field or a number hasn't been entered",
                        "Input Type error", JOptionPane.ERROR_MESSAGE);
                //shows this is something has been entered wrong
        private void startTest()
            helpJPanel.setVisible(false);
            shape = shapes[seed.nextInt(shapes.length)];
            testJPanel.setShape(shape);
            testJPanel.setVisible(true);
            testJPanel.start();
            startTime = System.currentTimeMillis();
            infoJTextArea.setText("");
         * called by animation panel after shape is clicked
        public void stop()
            endTime = System.currentTimeMillis();
            movingObject();
         * called by timer actionPerformed in ShapeMovingPanel
        public void updateTime()
            long timeNow = System.currentTimeMillis();
            double elapsed = (timeNow - startTime)/1000.0;
            timerJTextField.setText(timeDec.format(elapsed));
         * this will compete with your animation
         * ie, it will slow it down or make it appear jerky
        public void mouseMoved(MouseEvent e)
            saySomething("\n    Mouse moved", e);
        public void mouseDragged(MouseEvent e)
            saySomething("\n    Mouse dragged", e);
        void saySomething(String eventDescription, MouseEvent e)
            infoJTextArea.append(eventDescription
                         + " (" + e.getX() + "," + e.getY() + ")");
            infoJTextArea.setCaretPosition(infoJTextArea.getDocument().getLength());
        private void movingObject()
            testJPanel.setVisible(false);
            resultsJPanel.setVisible(true);
            nameResultJTextField.setText(name);
            ageResultsJTextField.setText(String.valueOf(age)+" years old");
            double elapsedTime = (endTime - startTime)/1000.0;
            timeLimit = (int)elapsedTime;
            timeResultsJTextField.setText(timeDec.format(elapsedTime)+" seconds");
            String mouse = infoJTextArea.getText();
            String tick = timeDec.format(elapsedTime);
            try
                // create a file called welch.txt
                final FileWriter outputFile = new FileWriter(name+".txt", true);
                final BufferedWriter outputBuffer = new BufferedWriter(outputFile);
                // converts data to a formatted string
                final PrintWriter printstream = new PrintWriter(outputBuffer);
                printstream.println("The person's name is: "+name);
                printstream.println("There age is: "+age);
                printstream.println("Time taken: "+tick+" seconds");
                printstream.println("The mouse moved as follows: "+mouse);
                //states what needs to be printed to the new file
                printstream.close(); // closes teh printstream
            catch(IOException eio)
                //catchs the IO exception
            if(timeLimit<5)
                ratingJTextField.setText("Thierry Henry");     
            if(timeLimit>5)
                ratingJTextField.setText("Average");     
            if(timeLimit>10)
                ratingJTextField.setText("You gotta be fat or something");     
            if(timeLimit>20)
                ratingJTextField.setText("See a doctor");
            String rate=ratingJTextField.getText();
        private void showData()
    //        String results = "";
    //        infoJTextArea.setText("Here are your results:\n"+results);
            startJPanel.setVisible(false);
            showJPanel.setVisible(true);
    class ShapeMovingPanel extends JPanel implements ActionListener
        RT host;
        Timer timer;
        Shape shape, xformed;
        int x, y, dx, dy;
        public ShapeMovingPanel(RT rt)
            host = rt;
            timer = new Timer(25, this);
            x = 0;
            y = 0;
            dx = 2;
            dy = 3;
            setBackground(Color.pink);
            addMouseListener(new ShapeTender());
        public void actionPerformed(ActionEvent e)
            int w = getWidth();
            int h = getHeight();
            if(w <= 0 || h <= 0)
                return;
            checkBoundries(w,h);
            x += dx;
            y += dy;
            repaint();
            // update RT.timerJTextField
            host.updateTime();
        private void checkBoundries(int w, int h)
            Rectangle r = xformed.getBounds();
            Insets insets = getInsets();
            if(r.x + dx < insets.left || r.x + r.width + dx > w - insets.right)
                dx *= -1;
            if(r.y + dy < insets.top || r.y + r.height + dy > h - insets.bottom)
                dy *= -1;
        protected void paintComponent(Graphics g)
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            AffineTransform at = AffineTransform.getTranslateInstance(x, y);
            g2.setPaint(Color.red);
            xformed = at.createTransformedShape(shape);
            g2.draw(xformed);
        public void start()
            if(!timer.isRunning())
                timer.start();
        public void setShape(Shape s)
            shape = s;
            Rectangle r = shape.getBounds();
            x = r.x;
            y = r.y;
            repaint();
        private class ShapeTender extends MouseAdapter
            public void mousePressed(MouseEvent e)
                if(xformed.contains(e.getPoint()))
                    timer.stop();
                    host.stop();
    }

  • Slow performance since going to Mavericks on aging iMac

    hi & thanks in advance: Wondering if my newly sluggish performance, SPODs etc since upgrading to Mavs (10.9.2) from 10.6.8  =  its time to upgrade my machine (late '07 iMac i think). I'd just install more RAM but seems my 4gig is its ceiling? Activity Monitor shows that now even just running one or 2 apps at a time is pushing things. Ran the nifty EtreCheck (see below).
    I'm a Veetle watcher, wondering if their ancient 1.0 mac plugin is no good w/Mavs?
    Here's what's happening:
    - iPhoto now SPODs for about 30 secs after launch, but then all's well once that stops. (btw when I go offline/disconnect the modem's firewire to test run apps, there's no SPOD-ing.)
    - GBand 10, all's fine except when playing live e.guitar getting intermittent glitches in its audio (old Tascam FireOne firewire I/O, no way to update its driver since they abandoned the FireOne ages ago.)
    - VERY slow app launches all around, especially after first morning start up. Chrome pages loading 5x slower than before on 10.6.8; some streaming slow downs, esp. on Netflix which takes Silverlight like a minute now to load up a show;
    - Activity Monitor: I'm at like 3.5-3.9 of my 4G with just a coupla apps running at a time.
    Here's what I've tried so far:
    - Disk Utility repair permissions
    - reset PRAM (before reading here that's not a good idea anymore)
    - did a full Time Machine restore (    "                 "               " )
    - disabled all but one start up item, a Native Instruments helper type app I wasn't sure about
    - cleared some caches, can't remember which (per a 10-star user here on improving performance)
    - Deleted tons of old/unneeded apps and files, my boot drive now less than half full.
    - uninstalled several third-party plugins
    - thinned out my iPhoto library extensively, still the same SPOD after launch; then reindexed the thumbnails.
    - Sophos Anti-Virus Mac Home, turned off all realtime updating/scanning (left its web page/content realtime filter on though)
    Here's my EtreCheck info, & again thanks in advance for anyone's help here!!!
    Hardware Information:
              iMac (24-inch, Early 2008)
              iMac - model: iMac8,1
              1 3.06 GHz Intel Core 2 Duo CPU: 2 cores
              4 GB RAM
    Video Information:
              NVIDIA GeForce 8800 GS - VRAM: 512 MB
    System Software:
              OS X 10.9.2 (13C64) - Uptime: 0 days 8:11:55
    Disk Information:
              ST3500418ASQ disk0 : (500.11 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Untitled (disk0s2) / [Startup]: 499.25 GB (311 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
    USB Information:
              Apple Inc. Built-in iSight
              Apple Inc. BRCM2046 Hub
                        Apple Inc. Bluetooth USB Host Controller
              TigerJet Network, Inc. USB Internet Phone by TigerJet 7.2 MB
                        disk1s0 (disk1s0) <not mounted>: 6.2 MB
                        disk1s0s1 (disk1s0s1) <not mounted>: 32 KB
                        magicJack (disk1s0s2) <not mounted>: 588 KB
              Mitsumi Electric Apple Optical USB Mouse
              Apple Computer, Inc. IR Receiver
    FireWire Information:
    Thunderbolt Information:
    Kernel Extensions:
              com.Logitech.Control Center.HID Driver          (3.4.0 - SDK 10.0)
              com.speedbit.driver.vadriver          (1.0.5)
              com.sophos.nke.swi          (9.0.53 - SDK 10.8)
              com.sophos.kext.sav          (9.0.53 - SDK 10.7)
    Launch Daemons:
              [System] com.adobe.fpsaud.plist 3rd-Party support link
              [System] com.sophos.autoupdate.plist 3rd-Party support link
              [System] com.sophos.configuration.plist 3rd-Party support link
              [System] com.sophos.intercheck.plist 3rd-Party support link
              [System] com.sophos.notification.plist 3rd-Party support link
              [System] com.sophos.scan.plist 3rd-Party support link
              [System] com.sophos.sxld.plist 3rd-Party support link
              [System] com.sophos.webd.plist 3rd-Party support link
    Launch Agents:
              [System] com.Logitech.Control Center.Daemon.plist 3rd-Party support link
              [System] com.sophos.uiserver.plist 3rd-Party support link
              [System] com.speedbit.va.plist 3rd-Party support link
    User Launch Agents:
              [not loaded] [email protected]
              [not loaded] com.google.keystone.agent.plist 3rd-Party support link
              [not loaded] com.mlbam.nexdef.core.NexdefLoader.plist 3rd-Party support link
              [not loaded] com.swarmcast.mlbnexdefautobahn.plist 3rd-Party support link
    User Login Items:
              NIHardwareAgent
    Internet Plug-ins:
              Flip4Mac WMV Plugin: Version: 2.3.8.1 3rd-Party support link
              FlashPlayer-10.6: Version: 12.0.0.77 - SDK 10.6 3rd-Party support link
              iPhotoPhotocast: Version: 7.0
              Flash Player: Version: 12.0.0.77 - SDK 10.6 3rd-Party support link
              Default Browser: Version: 537 - SDK 10.9
              QuickTime Plugin: Version: 7.7.3
              Unity Web Player: Version: UnityPlayer version 4.2.1f4 - SDK 10.6 3rd-Party support link
              Silverlight: Version: 5.1.30214.0 - SDK 10.6 3rd-Party support link
              DirectorShockwave: Version: 11.6.1r629 3rd-Party support link
              JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Outdated! Update
    Safari Extensions:
              AdBlock: Version: 2.6.18
              Ambient Aurea: Version: 1.0.0.21
              Turn Off the Lights: Version: 2.3.0.5
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 2.0 - SDK 10.9
              AppleAVBAudio: Version: 203.2 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins:
              Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    3rd Party Preference Panes:
              Flash Player  3rd-Party support link
              Flip4Mac WMV  3rd-Party support link
              Logitech Control Center  3rd-Party support link
              Native Instruments USB Audio  3rd-Party support link
              Video Accelerator  3rd-Party support link
    Old Applications:
              Wondershare Helper Compact:          Version: 2.2.5.6 - SDK 10.5 3rd-Party support link
                        /Users/[redacted]/Library/Application Support/Helper/Wondershare Helper Compact.app
              SLLauncher:          Version: 1.0 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Microsoft/Silverlight/OutOfBrowser/SLLauncher.app
              /Applications/Line6
                        Line 6 License Manager:          Version: 1.06 - SDK 10.4 3rd-Party support link
                        POD Farm 2:          Version: 2.55 - SDK 10.5 3rd-Party support link
              LinPlug Icons:          Version: 3.1 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/LinPlug/Icons/3.1/LinPlug Icons.app
              /Applications/Utilities
                        LCC Connection Utility:          Version: 3.4.0 - SDK 10.0 3rd-Party support link
                        LCC Uninstaller:          Version: 3.4.0 - SDK 10.0 3rd-Party support link
              MemServerUI:          Version: 1.1 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Native Instruments/Kontakt 5/kxm/MemServerUI.app
              /Library/Application Support/Logitech.localized/Logitech Control Center.localized
                        Logitech Device Manager:          Version: 3.4.0 - SDK 10.0 3rd-Party support link
                        Logitech Control Center Daemon:          Version: 3.4.0 - SDK 10.0 3rd-Party support link
                        LCC Pilot:          Version: 1.0.0 - SDK 10.0 3rd-Party support link
              MemServerUI:          Version: 1.1 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Native Instruments/Kontakt 4/kxm/MemServerUI.app
              POD Farm 2:          Version: 2.55 - SDK 10.5 3rd-Party support link
              AmpliTube 3:          Version: 3.10 - SDK 10.5 3rd-Party support link
              FlashbackChecker:          Version: 1.0 - SDK 10.5 3rd-Party support link
    Time Machine:
              Skip System Files: NO
              Auto backup: YES
              Volumes being backed up:
                        Untitled: Disk size: 464.96 GB Disk used: 175.32 GB
              Destinations:
                        My Passport [Local] (Last used)
                        Total size: 297.31 GB
                        Total number of backups: 1
                        Oldest backup: 2014-03-13 04:09:30 +0000
                        Last backup: 2014-03-13 04:09:30 +0000
                        Size of backup disk: Too small
                                  Backup size 297.31 GB < (Disk used 175.32 GB X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
    Top Processes by CPU:
                   3%          mj_dev
                   2%          Google Chrome
                   2%          WindowServer
                   1%          SophosWebIntelligence
                   1%          coreaudiod
    Top Processes by Memory:
              147 MB          MLBNexDefAutobahn
              139 MB          Google Chrome
              135 MB          com.apple.IconServicesAgent
              82 MB          SophosScanD
              61 MB          Finder
    Virtual Memory Information:
              402 MB          Free RAM
              1.75 GB          Active RAM
              1.18 GB          Inactive RAM
              516 MB          Wired RAM
              12.38 GB          Page-ins
              31 MB          Page-outs

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Reconciled amounts appears in vendor aging report

    Dear all,
    When we take report for reconciled transactions,reconciled amounts appears in
    aging days(Suppose we have ap invoice in 0-30 days and payments made in 30-60 days it's
    already reconciled)
    Why it is showing in reconciled aging report ?
    Jeyakanthan

    Dear,
    would like to recommend you to refer to the following note: 1228363-Business Partner Balance does not match journal entries。
    In any SAP Business One version lower than 2007, 2 separate
    reconciliation engines were employed. One reconciliation engine worked
    on the marketing document level, where partial reconciliation was
    supported & the other worked on the journal entry level, where only
    complete reconciliation was supported.
    This duality led in some instances to reconciliation inconsistencies
    which were initially highlighted with SAP Business One version 2004
    patch level 29, where the red message 'Business Partner balance does not
    match journal entries' was displayed when running the ageing report by
    sales documents & inconsistencies were detected.
    In the year end closing guides (available for download from the
    Documentation Resource Centre) SAP have always recommended to run the
    ageing reports by journal posting.
    In 2006, SAP published note 752261, now retired, documenting the system
    behaviour & offering a series of 'Select' queries to aid in
    reconciliation inconsistency analysis. These queries were an excellent
    tool but now SAP can offer a faster, better & more accurate solution.
    In SAP Business One 2007 A & B the reconciliation engines have been
    unified & partial reconciliation on journal entry level is now fully
    supported. Any database that is upgraded from a lower version undergoes
    a complex series of reconciliation upgrade algorithms, where any
    reconciliation inconsistency is identified & a reconciliation upgrade
    (RU) journal entry is automatically created. This RU journal does not
    document any accounting transaction, but simply creates an update in the
    'Balance Due' column, thus notionally re-openeing previously
    inconsistently reconciled transactions.
    These RU journals are then available for internal reconciliation.
    Please consult the 2007 Internal Reconciliation Upgrade(IRU)Landing
    Page:
    Channel Partner Portal -> Solutions -> SAP Business One -> Hot Topics ->
    SAP Business One 2007 Information Center -> New Single Reconciliation
    Engine- A single engine reconciles the difference and eliminates the
    previous reconciliation issue. More
    Click on 'More' to be directed to the IRU Landing Page.
    Here you will find 'How-to-Guides' in all supported languages, links to
    Expert Training Sessions & links to other pertinent information.
    You will also find available for download 2007 A & B upgrade simulation
    tools. SAP recommends to subject a database that is planned to be
    upgraded
    This upgrade simulation tool employs all internal reconciliation upgrade
    algorithms & the application will display in the 'Internal
    Reconciliation Upgrade Audit Trail Report' if a database is affected by
    inconcistencies.
    Hence, if the message 'Business Partner Balance does not match Journal
    Entries' is encountered, proceed as follows:
    Option 1:
    Upgrade database to SAP Business One 2007 & internally reconcile any RU
    journals.
    Option 2:
    Go to the IRU landing page & download the 'IRU pre-upgrade tool' either
    for version 2007A or 2007B, depending on your localisation. Follow the
    installation instructions & after successful installation & simulated
    upgarde of the database, analyse any inconsistencies appearing with the
    help of the How-to-guide. Should a type of inconsistency not have a drop
    down arrow & be described as 'Balancing upgrade journal transaction',
    the comapny accountant may decide to write it off, should the amount be
    insignificant or, if the amount is not insignificant, please log a
    support ticket with the component:
    SBO-ADM-UT-IAT
    Step by step detailed instructions including screenshots of how to
    install the sim-tool & what it does can be found on this wiki page:
    https://wiki.sdn.sap.com/wiki/display/B1/BPaccountBalancedoesnot+matc
    chJournalEntries
    Thanks & Regards
    Apple

  • Reports for Itemwise ageing and Stock with opening and closing

    Dear All,
    Is there any default reports in SAP for Item wise ageing and the stock status with
    opening stock,In and Out stock and closing stock
    for a given period.
    Regards,
    Shyam

    Hi,
             Thanks for the quick reply.....But is there any accurate query for that....Bcoz i found a query which shows the qty but nothing is coming in the value...
    Regards,
    shyam

  • FI- AP Open Items - historic postings.

    Hi ,
    I need a Bex report which can be reconcilled with FBL1N (Open items) for any 'Key date".
    The report has to calculate open items for any past historic key date. (eg: 31.12.2009).
    I am currently calculating FI - AP , open items as part of aging report.
    The below calculation (RKF) was tested for any date this year and it worked.
    but when checked across any historic date it doesnt give
    Open Items -  Amount,
    Posting Date < Date Entered by user,
    Clearing Date = #,
    Key due date > Date Entered
    Can I achieve it with requires adjustment in the above RKF.?
    Regards
    vasanth.R

    HI Vasanth.
    Since you want open items till the key date:-
    We can use only these conditions, I guess:-
    Posting Date <= Date Entered by user,
    Clearing Date = #.
    that should work for all data..
    Regards,
    Sakthi.

  • Aged open items revaluation report

    I was wondering if anyone knows of a report that would give you the same information as the open items revaluation report only aged. The aging reports that are in the system are only point in time. We're looking for an historical aging report. Does anyone know if a report like that exists?
    Thanks,
    Todd

    Hello ...
    You must enter the LDP clicking the pencil icon that appears in the toolbar when the window is open open items list.
    Once there, create 2 new text fields, one with the text "Orders" and another that says "Customer Orders". Both fields were identified as Field_XXX and Field_YYY (where XXX and YYY are numbers that appear in their fields)
    There is a field of variable rate system, which is what lets you see the description of the type of document. (Orders, Customer Orders, etc.).. This field corresponds to variable 100 (check it that way), we assume that this field is the field F_ZZZ within the layout.
    Create 2 fields of type formula, the formula to edit it (Field_XXX == Field_ZZZ) and (Field_YYY == Field_ZZZ) respectively.
    Create 2 text fields (these are only to test the application, then to understand the functionality can not delete them or leave them visible). Set in one of these areas, the letter "A" in the second field and set the letter "B". both camps can put one over the other in the layout.
    Now comes the application of the field ... "A" condicionelo one of the formula fields and country "B" condicionelo another formula field. The conditional mode is to set the formula field in the general tab LINK A. ..
    Try then see a preview of both reports and can see that depending on the type of document you will see "A" or "B" as appropriate.
    Apply the same logic as those fields that you will create and generate the difference between formats.
    I hope this will be helpful
    Best Regards,

  • Problem in Logic for Customer Ageing Report

    Hi,
    I am developing a Customer Ageing Report in which i am facing a problem i.e. i am taking tables BSID,BSAD in which i ham taking the open items first and then i am using for all entries in it on the open items and i had debugged it and data picking is correct .
    But the MAJOR problem comes when the data is stored in the respective coloumns i.e. 0-30 ,31-60-61-90 etc.. Currently i am comparing the code with the Standard Report i.e.S_ALR_87012126 it is not coming accurate...
    Is there any way to solve this problem ....
    Edited by: nav009 on Jan 8, 2010 11:39 AM

    Hi,
    First you need to calculate the Due date of the Transaction with the help of FM 'NET_DUE_DATE_GET'.
    Once you get the Due date calculate the value wf_nod  as wf_nod = p_budat - wf_due_date where p_budat is the date on which you want to run the ageing report and wf_due_date  is due date of the transaction.
    once you get this wf_nod write the following logic :
          IF wf_nod < 0.
            wa_tab-ndue = wa_data-dmbtr.
          ELSE.
            IF wf_nod <= pnod1.
              wa_tab-amt1 = wa_data-dmbtr.
            ELSE.
              IF wf_nod > pnod1 AND wf_nod <= pnod2.
                wa_tab-amt2 = wa_data-dmbtr.
              ELSE.
                IF wf_nod > pnod2 AND wf_nod <= pnod3.
                  wa_tab-amt3 = wa_data-dmbtr.
                ELSE.
                  IF wf_nod > pnod3 AND wf_nod <= pnod4.
                    wa_tab-amt4 = wa_data-dmbtr.
                  ELSE.
                    IF wf_nod > pnod4 AND wf_nod <= pnod5.
                      wa_tab-amt5 = wa_data-dmbtr.
                    ELSE.
                      IF wf_nod > pnod5.
                        wa_tab-amt6 = wa_data-dmbtr.
                      ENDIF.
                    ENDIF.
                  ENDIF.
                ENDIF.
              ENDIF.
            ENDIF.
          ENDIF.
        ENDIF.
    Collect wa_tab into it_tab.
    where pnod1.......pnod5 are the aging period as 30,60,90,180,365 etc.
    by this you will get correct results.
    Please get back to me if you need some more help on this.
    Regards,
    Nikhil

  • Computer Age Custom Report

    We were trying to run a custom report to determine the age of our computers in our environment.  Has anyone come up with a decently accurate sql query that could determine the age of machines and then a final count for each year?

    Here is the query our DBA and I came up with. Our asset group uses it to determine end of life for workstations.
    select distinct
           CS.name0 as 'Server Name',
    wks.LastHWScan as 'Last Checked in',
           sys.user_name0 as 'User Name', 
           sys.Resource_Domain_OR_Workgr0 as 'Computer Domain',          
           usr.department0 as 'Department', 
           BIOS.ReleaseDate0 as 'BIOS Manfacture Date',
           OS.InstallDate0 as 'OS Install Date',
           OS.Caption0 as 'OS', 
           CU.Manufacturer0 as 'Manufacturer', 
           CU.Model0 as 'Model',
           RAM.TotalPhysicalMemory0/1024 as [RAM (MB)], 
           processor.Name0 as 'Processor'
    from 
           v_r_system_Valid sys, 
           v_r_user usr,  
           v_R_System CS, 
           v_GS_OPERATING_SYSTEM OS,
           v_GS_COMPUTER_SYSTEM CU,
           v_GS_X86_PC_MEMORY RAM,
           v_GS_PROCESSOR Processor,
           v_GS_PC_BIOS BIOS,
      v_GS_WORKSTATION_STATUS wks
    where 
           sys.User_Name0 = usr.user_name0 and
    wks.ResourceID = cs.ResourceID and
           sys.Netbios_Name0 = CS.name0 and
           OS.ResourceID = CS.ResourceID and
           CU.ResourceID = CS.ResourceID and
           RAM.ResourceID = CS.ResourceID and
           Processor.ResourceID = CS.ResourceID and
           BIOS.ResourceID = CS.ResourceID and 
           CS.Operating_System_Name_and0 LIKE '%nt%workstation%' and CS.Client0 = 1
    Order by
           CS.name0, wks.LastHWScan
    If I remember right, the usr.department was a custom AD attribute we gathered, if you aren't gathering that information, might take out the lines that reference that to get it to work.

  • Material Ageing Report Through ABAP( MC46 Tcode Wise)

    Hi,
    I want to develop report for Material Ageing Report which is similar to the Tcode MC46 but the problem is functional consultant told me about this tcode only and there is no such information regarding the specified tables which are to be used. I had searched in SDN also but i did not got the desired  information.
    Edited by: nav009 on Mar 11, 2010 12:31 PM

    Hi,
    After comparing the tcodes MC46 and MC50,i am able to trace out that data is coming from the MBEW table but the problem is the ageing logic works on As On Date and the data to be *picked Less Than Equal to Posting Date *.
    There is no such field present on which i can made this logic succesful.. i tried to develop the report through different tables also(BSIM,MSEG and MKPF) but the quantites and the amount is coming accurate after comparing it with the above mentioned Tcodes.
    Is there any other table through which this problm can be solved....?
    Edited by: nav009 on Mar 12, 2010 5:42 AM
    Edited by: nav009 on Mar 14, 2010 12:21 PM

Maybe you are looking for