Arrow key wrapping---PLEASE!

The #1 hing I HATE about JDeveloper's text editor is its stunning inconsistency with virtually ALL modern text editor interfaces wrt the Arrow Keys.
Left arrow at the beginning of a line should wrap to the end of the prior line, and right arrow at the end of a line should wrap to the beginning of the next line! And when using up or down arrows there should be "memory" of where the last user-specified horizontal position (column) was...JDeveloper pinches it to the end of whatever line gets traversed.
And I'm not talking about the BIZZARRE cursor past EOL option. Is there a hidden option that forces JDeveloper to behave like any normal text editor on Windows does?

heheh..
That's the #1 thing? How about doing a cut using ctrl-C... and having JDev cut text from a location in your source not visible on the screen...without you knowing about it...randomly... in addition to the source you are actually cutting? ( 3.1, and yes.. there were actually lines between what I wanted to cut and what JDev additionally cut that were just fine! )
I've had to restore source from my backups several times as JDev "lost" sections of source I wasn't even working near.
Or for that matter.. the problem of simply typing text... and having it "pause" while it enters the text you are typing to some other location off screen no where NEAR your cursor? ( The only way I find out about this is when I compile and it errors out at some odd spot ).
I vote that the Developers solve those self-destructive sorts of issues before getting the back arrow to function in a reasonable manner. grin.

Similar Messages

  • Tiger & Safari 2.0 - Can't Use Arrow Keys in Password Fields

    Since installing Tiger and using the new Safari 2.0, password fields in online forms are not allowing the use of arrow keys. I can't go back one character or to the beginning of the •••••••• typed in the password field. In fact I can't even use the mouse to click anywhere other than the end of this field. It's forcing me to type it straight through, which is not how I type or re-type passwords (* See Example Below). I need to be able go back and edit sometimes, and the arrow keys helped in previous versions, but not now. All form text fields should allow the use of the arrow keys and the mouse to change the cursor's insertion point. Internet Explorer does not do this. But to my dismay the Mac OS X Login Window does! So maybe this is part of the OS rather than just Safari. I hope Apple is listening and fixes this issue in future versions of Safari & Tiger
    * Example of how to make secure passwords via the Arrow Keys:
    Take two or three easy to remember words or numbers. For example I'll use "steve" "jobs" and the date Apple Computer was formed 4/1/1976 or "4176" for our purposes here. First you type in the first word...
    steve
    Second you move the cursor with the arrow keys (which you can't do in Safari 2.0) to the beginning using the up-arrow, then alternate typing the second word "jobs" with a right-arrow key interspersed between each letter. So you would then type "j right-arrow o right-arrow b right-arrow s", which combined with what we already typed in step one should look like this...
    jsotbesve
    Things are looking secure, no one would think of typing that. But we'll go to a third step and just repeat what we did before adding "4176" to the mix, which would then look like this...
    4j1s7o6tbesve
    No one or thing would guess that password. but it's so easy to remember with the help of Arrow Keys. Now this is just one method. You could use the left-arrow key to go backwards with it, using two left-arrow key clicks...
    stsebv6o7e1j4
    maybe use 1, 2, and 3 right-arrow clicks...
    4j1so7teb6ves
    Simple, easy to remember words or numbers made into secure unguessable passwords with the simple help of the Arrow Keys. Please Apple, make them usable in the password fields again.

    Still looking for help here.
    And now in addition the above-listed issue, this browser has bogged down and is loading pages so slowly it just grinds to a halt.
    At this point, I'd settle for instructions on how to fully uninstall Safari and re-install it and start over. This is flat unacceptable, and at this point I'm wondering why in the world I elected to pay for Tiger, only to be "blessed" with this disaster.
    Please don't tell me to go back and reinstall the entire operating system. Not unless Apple would like a bill for the hours of my time it will take to do that, re-port all my files and re-install all my other software.

  • Question: Inadvertently a visiting toddler gained access to my computer during a visit. He's obviously fiddled with something as I can no longer use my arrow keys to navigate through my albums or events on iPhoto. Please help!

    Question: Inadvertently a visiting toddler gained access to my computer during a visit. He's obviously fiddled with something as I can no longer use my arrow keys to navigate through my albums or events on iPhoto. Only one pic shows up in the album view - I can't see any thumbnails. To see the other pics I have to use the scroll bar on the right hand side of the window. Please help!

    Depeding on your version of iPhoto: On the left (iPhoto 11) or right (earlier versions) of the lower frame of the iPhoto Window you'll see a slider. Drag it left.
    Regards
    TD

  • I am having a problem moving across cells in Microsoft Excel. When I use the arrow keys, the sheet moves, instead of moving to the next cell. Would anyone have any thoughts on this, please?

    I am having a problem moving across cells in Microsoft Excel. When I use the arrow keys, the sheet moves, instead of moving to the next cell. Would anyone have any thoughts on this, please?

    Hi,
    Did you find a way to solve your problem ? We have exactly the same for one application and we are using the same version of HFM : 11.1.2.1.
    This problem is only about webforms. We can correctly input data through Data Grids or Client 32.
    Thank you in advance for your answer.

  • How to change the presets in pop-up menus (CS6 or CR 7, example Photo Filter) with arrow keys?

    How to change the presets in pop-up menus (CS6 or CR 7, example Photo Filter) with arrow keys an see at the same time the changes on the photo?
    It worked under Windows, now I use OS 10.8 and have to apply a preset with a click or Return button but after that the pop-up menu close so I have to open it once again to change a preset. Please help. Thank you!

    The filter panel is a shortcut for the content panel and it only effects the content of that window. So if you have a folder it will only see this as a folder and not with its content. (a Stack behaves about the same, being different in only counting the first file in the filter panel criteria but not what is in the stack itself)
    You have a view work arounds, first is use menu view / show items from subfolders (this can take some time especially if you have not used caching before on this content) and this builds visible thumbs for all content and that can be used for filtering.
    Or use the find command (Edit / find) and inhere specify the source and fill in the criteria include subfolders and this will give you the correct result.
    When you create a smart collection the find command also pops up given you the same opportunity to get the results in a collection, but since a collection is only a bunch of aliases referring to the originals you might be a bit careful with editing and deleting.

  • In Dreamweaver CC code view, how do I reenable shift-control+arrow keys to select words?

    In previous versions of Dreamweaver (for Windows but presumably for other operating systems as well) and in pretty much any other text editor (except maybe for vi/m but including the one I'm using to write this message in now). I can select characters using shift plus the arrow keys and select words by pressing shift-control plus the arrow keys. It seems you now have to use shift-alt to select words. I don't want to have to undo about 25 years of habit just for Dreamweaver.
    Please say this is an easy setting I can uncheck somewhere! Thanks!

    That is an issue that has come up a lot lately...
    Make sure to add your voice to the others here: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform and hopefully in the next release they'll put it back to normal.

  • My arrow keys start start repeating without touching them and a string of periods are displayed in an entry field (e.g. credential to log in). Or if I type an arrow key, they immediately start repeating in perpituity. It's like a ghost in the machine.

    After the last OS X update (a security update I think), two things happened:
    my iMac would not boot (gray screen) or if it did boot, the mouse wasn't recognized and I couldn't mouse to the PW field to log in - nor did tabbing or any keystrokes get me there. I fixed this by unpludding peripherals (back up drive), but know I can't boot unless they are unplugged and it makes using TimeMachine a pain in the arse.
    My wired, extended mac keyboard now types without me, primarily, as far as I can tell, the arrow key(s). .................................... So, for example, those periods you see here are because I touched the right arrow key and off it went until I pressed ESC. Also, sometimes they just start going off on their own. For example, I can be in sleep mode and all of a sudden the screen will wake and the PW field will start filling with periods, just like you see above. ***?
    Seriously, you would think that apple would have a response for this. I have searched their support site and NOTHING. I've seen some older threads on reseting certain things. Does anyone have any summer 2013 updates?
    Thank You!!!

    kaeandcolesmon,
    If you open the recovery drive (partition) it should only have a single folder (Recovery).
    To make sure that your not saving restore points to that drive.
    See:
    Start, Control Panel, System, System Protection tab. Make sure the D drive partition is set to OFF so that it does not save there.
    I am a volunteer. I am not an HP employee.
    To say THANK YOU, press the "thumbs up symbol" to render a KUDO. Please click Accept as Solution, if your problem is solved. You can render both Solution and KUDO.
    The Law of Effect states that positive reinforcement increases the probability of a behavior being repeated. (B.F.Skinner). You toss me KUDO and/or Solution, and I perform better.
    (2) HP DV7t i7 3160QM 2.3Ghz 8GB
    HP m9200t E8400,Win7 Pro 32 bit. 4GB RAM, ASUS 550Ti 2GB, Rosewill 630W. 1T HD SATA 3Gb/s
    Custom Asus P8P67, I7-2600k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX660 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Custom Asus P8Z77, I7-3770k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX670 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Both Customs use Rosewill Blackhawk case.
    Printer -- HP OfficeJet Pro 8600 Plus

  • Up and Down Arrow Keys Not Working

    I have had the HP Pavilion g6t-1b00 CTO Notebook PC for a year or two now. I've been having a couple of problems with internet connectivity and putting my computer on "sleep".
    However, few days ago, my keyboard randomly started acting weirdly. When I would try to type certain letter/numbers, they would come out differently. 
    Ex. pressing the space bar would show up " ./M" instead
    I tried restarting my computer many times and installed a BiOS update which fixed all of my issues except for my up and down arrow keys. As of now, they have no function; I can't scroll with them and they don't seem to be taking on the role of another key. I have tried using the keys on different programs. Using the touch pad to scroll works but I still can't use the up and down keys.
    Is there anyway to get the up and down arrow keys to work again?
    This question was solved.
    View Solution.

    Hello Larasoft,
    I understand you’re up and down arrow keys are not functioning, is that accurate? I will do all I can to help you with this issue.
    I want you to access the setup menu to test the keys out, see instructions below.
    1.       Shut down the computer.
    2.       Locate the F10 key across the top.
    3.       When you turn the computer back on immediately start tapping the F10 key repeatedly.
    4.       If successful you should be on setup utility screen. What’s different about this is you can only use you arrow keys to navigate.  
    5.       Try working the arrow keys  up and down on different menus and see if they work.
    6.       Once you tested it press F9 to setup defaults and then press F10 to save and exit.
    If I have been helpful or if you’d like to say thanks you can click the white star under my name to give me Kudos.  I really appreciate it.
    Please respond at your earliest convenience with you results.
    Thanks
    Clicking the White Kudos star on the left is a way to say Thanks!
    Clicking the 'Accept as Solution' button is a way to let others know which steps helped solve the problem!

  • Up and down arrow keys are not working properly when using SQL CLI on Linux

    Every time I hit up, down, left, and right arrow keys to return to a previous sql command I got ^[[D, please any hints to fix this issue?
    The backspace works fine with me. I tried to use stty to fix this issue with no luck.
    Thanks
    Mohamed                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Which SQL client and Linux version are we talking about?
    Assuming you are using the Oracle sqlplus client... it does not support command line editing and history using the arrow keys. For this to work you will have to install a product called Readline Wrapper. See my answer at the General Database forum:
    sqlplus command line editing

  • How to implement JSF text input down-arrow key = next record navigation?

    Hi All,
    I've got a small query which you experts might be able to help me through. I would not be surprised if such questions would already have been raised in this forum.
    Formerly, I've created an Oracle Form that allow user to quickly insert data in bulk. It only has three 3 fields - first name, second name and address. Because of the flexibility of the Oracle Form, by pressing the down arrow key, user is able to create record when the last record is detected. And vice versa by hitting the up arrow key, it will move to the previous record when the current record is not the first record. So basically, the form is very 'key-driven' and without the use of the mouse, a lot of data can be inserted very quickly and efficiently.
    I've successfully converted such form to an ADF BC JSF page using the JHeadstart toolkit. But when I showed it to my users for comment, they were really disappointed with the number of mouse interactions they need to click every time to navigate between records as well as creating new records. My question is can I build some sort of ADF JSF event handler on any of the text items to perform the following tasks:
    1.) When 'down arrow key' is pressed AND not the last record THEN
    Go to the next record.
    2.) When 'down arrow key' is pressed AND is the last record THEN
    Go to the next blank record.
    3.) When 'up arrow key' is pressed AND not the first record THEN
    Go to the previous record.
    4.) When 'up arrow key' is pressed AND is the first record THEN
    Do nothing.
    If all the four above tasks are achievable in ADF JSF, can you please guide and brief me on the steps to implement them. Or these functionalities are already available somewhere in other open source toolkits. Your help is much appreciated. Thank you and have a nice day.
    Kind Regards,
    John

    Hi Steven,
    I've tried to incoporated attached link's codes with the JHeadstart generated code inside the jspx but I still cannot get it to work. There is a lot of Javascript error and is impossible to debug.
    Regards,
    John

  • My up and down arrows as well as page up and page down no longer work properly only when using firefox. Page up and down function more like the "home" and "end" keys as do the arrow keys.

    Honestly I'm not sure if these began just after I updated FF to the current release, but it's been happening for at least 2 weeks. The arrow keys and page up and page down keys all work as if I'm pressing the 'home' and 'end' keys on my keyboard. This is only when using FF. Please contact me if you need more clarification. Thanks in advance!

    Sounds that you have switched on caret browsing.
    * http://kb.mozillazine.org/accessibility.browsewithcaret
    You can press press F7 (on Mac: fn + F7) to toggle caret browsing on/off.
    * Tools > Options > Advanced : General: Accessibility: [ ] "Always use the cursor keys to navigate within pages"
    * http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    * http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • I have a Belkin bluetooth keyboard attached to my Ipad 3. I would like to know if there is any way to have the arrow keys scroll down when browsing web pages?

    I just got my Ipad 3rd generation a few days ago and for my case I got the bulky BELKIN Bluetooth keyboard. I notice that when I press down the arrow keys it does not seem to scroll down when searching a web browser or looking up web pages. However it works fine when scrolling down on office apps such as Pages. I'm wondering if is there a way to make the arrow keys on the keyboard scroll down when on an internet web page like my Mac does.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Moving shape with arrow keys

    Hello,
    How would I click on one of the circles I've created and move them using the arrow keys. The circles move just fine with the drag of the mouse but now I want to use the arrow keys. Can somebody help me please? I would really appreciate the assistance.
    Michael
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class DragBallPanel extends JPanel implements MouseListener, MouseMotionListener, KeyListener
    private static final int BALL_DIAMETER = 50; // Diameter of ball
    private static final int BALL_DIAMETER2 = 50;
         //--- instance variables
    /** Ball coords. Changed by mouse listeners. Used by paintComponent. */
    private int _ballX     = 50;   // x coord - set from drag
    private int _ballY     = 50;   // y coord - set from drag
    private int x2 = 200;               // starting x coord for 2nd ball
         private int y2 = 200;               //starting y coord for 2nd ball
         private int x3 = 75;
         private int y3 = 150;
    /** Position in ball of mouse press to make dragging look better. */
    private int _dragFromX = 0;    // pressed this far inside ball's
    private int _dragFromY = 0;    // bounding box.
    private int xInsideBall = 0;     //coordinates of where the mouse is pressed inside second ball
         private int yInsideBall = 0;     //is pressed inside second ball
         private int x3InsideBall = 0;     //coordinates of where the mouse is pressed inside second ball
         private int y3InsideBall = 0;     //is pressed inside second ball
    /** true means mouse was pressed in ball and still in panel.*/
    private boolean _canDrag  = false;
         private boolean _canDrag2  = false;
         private boolean _canDrag3  = false;
         /** Constructor sets size, colors, and adds mouse listeners.*/
    public DragBallPanel()
              setPreferredSize(new Dimension(400, 400));
    setBackground(Color.ORANGE);
    setForeground(Color.BLUE);
    //--- Add the mouse listeners.
    this.addMouseListener(this);
    this.addMouseMotionListener(this);
    }//endconstructor
         /** Ball is drawn at the last recorded mouse listener coordinates. */
    public void paintComponent(Graphics g)
    super.paintComponent(g); // Required for background.
    g.fillOval(_ballX, ballY, BALLDIAMETER, BALL_DIAMETER);
              g.setColor(Color.RED);
              g.fillOval(x2, y2, BALL_DIAMETER2, BALL_DIAMETER2);
              g.setColor(Color.BLACK);
              g.fillOval(x3, y3, BALL_DIAMETER2, BALL_DIAMETER2);
         }//end paintComponent
         public void mousePressed(MouseEvent e)
    int x = e.getX(); // Save the x coord of the click
    int y = e.getY(); // Save the y coord of the click
    if (x >= ballX && x <= (ballX + BALL_DIAMETER)
    && y >= ballY && y <= (ballY + BALL_DIAMETER))
    _canDrag = true;
    dragFromX = x - ballX; // how far from left
    dragFromY = y - ballY; // how far from top
              else
    _canDrag = false;
              //clicked on 2nd ball
              if(x >= x2 && x <= (x2 + BALL_DIAMETER2)
                        && y >= y2 && y <= (y2 + BALL_DIAMETER2) )
                   _canDrag2  = true;
                   xInsideBall = x - x2;
                   yInsideBall = y - y2;
              else
    _canDrag2 = false;
              if(x >= x3 && x <= (x3 + BALL_DIAMETER2)
                        && y >= y3 && y <= (y3 + BALL_DIAMETER2) )
                   _canDrag3  = true;
                   x3InsideBall = x - x3;
                   y3InsideBall = y - y3;
              else
    _canDrag3 = false;
         }//end mousePressed
         public void mouseDragged(MouseEvent e)
    // True only if button was pressed inside ball.
    //--- Ball pos from mouse and original click displacement
              if (_canDrag)
    ballX = e.getX() - dragFromX;
    ballY = e.getY() - dragFromY;
    //--- Don't move the ball off the screen sides
    ballX = Math.max(ballX, 0);
    ballX = Math.min(ballX, getWidth() - BALL_DIAMETER);
    //--- Don't move the ball off top or bottom
    ballY = Math.max(ballY, 0);
    ballY = Math.min(ballY, getHeight() - BALL_DIAMETER);
    this.repaint(); // Repaint because position changed.
              if (_canDrag2)
                   x2 = e.getX() - xInsideBall;
                   y2 = e.getY() - yInsideBall;
                   x2 = Math.max(x2, 0);
                   x2 = Math.min(x2, getWidth() - BALL_DIAMETER2);
                   y2 = Math.max(y2, 0);
                   y2 = Math.min(y2, getHeight() - BALL_DIAMETER2);
                   this.repaint(); // Repaint because position changed.
              if (_canDrag3)
                   x3 = e.getX() - x3InsideBall;
                   y3 = e.getY() - y3InsideBall;
                   x3 = Math.max(x3, 0);
                   x3 = Math.min(x3, getWidth() - BALL_DIAMETER2);
                   y3 = Math.max(y3, 0);
                   y3 = Math.min(y3, getHeight() - BALL_DIAMETER2);
                   this.repaint(); // Repaint because position changed.
    }//end mouseDragged
    public void keyPressed(KeyEvent ke)
         //int x = e.getX(); // Save the x coord of the click
    //int y = e.getY(); // Save the y coord of the click
              int dx = 10;
              switch (ke.getKeyCode())
              case KeyEvent.VK_LEFT: // move x coordinate left
              _ballX -= dx;
              ballX = Math.max(ballX, 0);
              break;
              case KeyEvent.VK_RIGHT: // move x coordinate right
                   _ballX += dx;
              ballX = Math.min(ballX, getWidth() - BALL_DIAMETER);
              this.repaint();
    public void mouseMoved (MouseEvent e) {} // ignore these events
    public void mouseEntered (MouseEvent e) {} // ignore these events
    public void mouseClicked (MouseEvent e) {} // ignore these events
    public void mouseReleased(MouseEvent e) {} // ignore these events
    public void mouseExited (MouseEvent e) {}     // ignore these events
         public void keyReleased (KeyEvent ke) {} // ignore this junk
         public void keyTyped     (KeyEvent ke) {} // ignore this junk
    }//endclass DragBallPanel

    A couple of notes:
    - That code did not add the keyListener to anything.
    - At the moment (in the altered code below), only the blue circle moves, and only left/right. It is left as an exercise to the OP to 'take it from there'.
    - It only took four more lines of code to turn that code into an SSCCE*, which will generally get more help.
    - Please use code indentation, and the code formatting delimiters, when posting code. It makes code a lot easier to read and understand.
    * The SSCCE is described at..
    <http://www.physci.org/codes/sscce.html>
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class DragBallPanel extends JPanel
      implements MouseListener, MouseMotionListener, KeyListener
      private static final int BALL_DIAMETER = 50; // Diameter of ball
      private static final int BALL_DIAMETER2 = 50;
      //--- instance variables
      /** Ball coords. Changed by mouse listeners. Used by paintComponent. */
      private int _ballX = 50; // x coord - set from drag
      private int _ballY = 50; // y coord - set from drag
      private int x2 = 200; // starting x coord for 2nd ball
      private int y2 = 200; //starting y coord for 2nd ball
      private int x3 = 75;
      private int y3 = 150;
      /** Position in ball of mouse press to make dragging look better. */
      private int _dragFromX = 0; // pressed this far inside ball's
      private int _dragFromY = 0; // bounding box.
      private int xInsideBall = 0; //coordinates of where the mouse is pressed inside second ball
      private int yInsideBall = 0; //is pressed inside second ball
      private int x3InsideBall = 0; //coordinates of where the mouse is pressed inside second ball
      private int y3InsideBall = 0; //is pressed inside second ball
      /** true means mouse was pressed in ball and still in panel.*/
      private boolean _canDrag = false;
      private boolean _canDrag2 = false;
      private boolean _canDrag3 = false;
      /** Constructor sets size, colors, and adds mouse listeners.*/
      public DragBallPanel()
        setPreferredSize(new Dimension(400, 400));
        setBackground(Color.ORANGE);
        setForeground(Color.BLUE);
        //--- Add the mouse listeners.
        this.addMouseListener(this);
        this.addMouseMotionListener(this);
        // add the keylistener!
        this.addKeyListener(this);
        // make sure the panel is focusable
        setFocusable(true);
      }//endconstructor
      /** Ball is drawn at the last recorded mouse listener coordinates. */
      public void paintComponent(Graphics g)
        super.paintComponent(g); // Required for background.
        g.fillOval(_ballX, _ballY, BALL_DIAMETER, BALL_DIAMETER);
        g.setColor(Color.RED);
        g.fillOval(x2, y2, BALL_DIAMETER2, BALL_DIAMETER2);
        g.setColor(Color.BLACK);
        g.fillOval(x3, y3, BALL_DIAMETER2, BALL_DIAMETER2);
      }//end paintComponent
      public void mousePressed(MouseEvent e)
        int x = e.getX(); // Save the x coord of the click
        int y = e.getY(); // Save the y coord of the click
        if (x >= _ballX && x <= (_ballX + BALL_DIAMETER)
        && y >= _ballY && y <= (_ballY + BALL_DIAMETER))
          _canDrag = true;
          _dragFromX = x - _ballX; // how far from left
          _dragFromY = y - _ballY; // how far from top
        else
          _canDrag = false;
        //clicked on 2nd ball
        if(x >= x2 && x <= (x2 + BALL_DIAMETER2)
          && y >= y2 && y <= (y2 + BALL_DIAMETER2) )
          _canDrag2 = true;
          xInsideBall = x - x2;
          yInsideBall = y - y2;
        else
          _canDrag2 = false;
        if(x >= x3 && x <= (x3 + BALL_DIAMETER2)
          && y >= y3 && y <= (y3 + BALL_DIAMETER2) )
          _canDrag3 = true;
          x3InsideBall = x - x3;
          y3InsideBall = y - y3;
        else
          _canDrag3 = false;
      }//end mousePressed
      public void mouseDragged(MouseEvent e)
        // True only if button was pressed inside ball.
        //--- Ball pos from mouse and original click displacement
        if (_canDrag)
          _ballX = e.getX() - _dragFromX;
          _ballY = e.getY() - _dragFromY;
          //--- Don't move the ball off the screen sides
          _ballX = Math.max(_ballX, 0);
          _ballX = Math.min(_ballX, getWidth() - BALL_DIAMETER);
          //--- Don't move the ball off top or bottom
          _ballY = Math.max(_ballY, 0);
          _ballY = Math.min(_ballY, getHeight() - BALL_DIAMETER);
          this.repaint(); // Repaint because position changed.
        if (_canDrag2)
          x2 = e.getX() - xInsideBall;
          y2 = e.getY() - yInsideBall;
          x2 = Math.max(x2, 0);
          x2 = Math.min(x2, getWidth() - BALL_DIAMETER2);
          y2 = Math.max(y2, 0);
          y2 = Math.min(y2, getHeight() - BALL_DIAMETER2);
          this.repaint(); // Repaint because position changed.
        if (_canDrag3)
          x3 = e.getX() - x3InsideBall;
          y3 = e.getY() - y3InsideBall;
          x3 = Math.max(x3, 0);
          x3 = Math.min(x3, getWidth() - BALL_DIAMETER2);
          y3 = Math.max(y3, 0);
          y3 = Math.min(y3, getHeight() - BALL_DIAMETER2);
          this.repaint(); // Repaint because position changed.
      }//end mouseDragged
      public void keyPressed(KeyEvent ke)
        System.out.println("key PRESSED");
        //int x = e.getX(); // Save the x coord of the click
        //int y = e.getY(); // Save the y coord of the click
        int dx = 10;
        switch (ke.getKeyCode())
          case KeyEvent.VK_LEFT: // move x coordinate left
            _ballX -= dx;
            _ballX = Math.max(_ballX, 0);
            break;
          case KeyEvent.VK_RIGHT: // move x coordinate right
            _ballX += dx;
            _ballX = Math.min(_ballX, getWidth() - BALL_DIAMETER);
        this.repaint();
      public void mouseMoved (MouseEvent e) {} // ignore these events
      public void mouseEntered (MouseEvent e) {} // ignore these events
      public void mouseClicked (MouseEvent e) {} // ignore these events
      public void mouseReleased(MouseEvent e) {} // ignore these events
      public void mouseExited (MouseEvent e) {} // ignore these events
      public void keyReleased (KeyEvent ke) {} // ignore this junk
      public void keyTyped (KeyEvent ke) {} // ignore this junk
      /** Add a main(), to make this an SSCCE. */
      public static void main(String[] args) {
        DragBallPanel dbp = new DragBallPanel();
        JOptionPane.showMessageDialog(null, dbp);
    }//endclass DragBallPanel

  • Arrow Keys?

    The new keyboard/mouse pane in Tiger's System Preferences now allows one to change application shortcuts. I am left-handed and wish to change the 'Back' and 'Forward' menu commands to the left and right arrow keys in selected applications. I was able to do this without problem on both my G4 Dual and Mac Mini (both with Apple external keyboards). My iBook, however, will not take the change. When I try to set the shortcut, the 'no way' bell rings. Can anyone help?

    I am sorry, but to get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial product. You can do this HERE.
    HP ProBook 4730s Notebook PC Support
    TwoPointOh
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Backspace, Del, Arrow keys, Tab not working in Firefox when applying validation

    Hi,
    I am developing a webpage with some textboxes requiring only alphabets or alphanumeric text to be accepted. I am using DevExpress controls and following is the javascript code that executes on keypress
    function fn_allowAlphabetspace(s, e) {
    var theEvent = e.htmlEvent || window.event;
    var key = theEvent.keyCode || theEvent.which;
    debugger;
    key = String.fromCharCode(key);
    var regex = /[a-zA-Z ]/;
    if (!regex.test(key)) {
    theEvent.returnValue = false;
    if (theEvent.preventDefault)
    theEvent.preventDefault();
    All the browsers except firefox allow Backspace, Del, Tab, Arrow keys, Home, End key to work perfectly. Firefox does not allow any of these to work on the textboxes.
    Thanks
    Shitiz

    Hi,
    I tried to solve it by debugging the javascript and found the below code to be working for firefox as well as on other browsers IE10, Chrome and Safari without any issues
    //validation function to allow only alphabets and space
    function fn_allowAlphabetspace(s, e) {
    var searchSpecial = '$Backspace$Del$Home$Tab$Left$Right$Up$Down$End$';
    if (searchSpecial.indexOf('$' + e.htmlEvent.key + '$') < 0) {
    var theEvent = e.htmlEvent || window.event;
    var key = theEvent.keyCode || theEvent.which;
    key = String.fromCharCode(key);
    var regex = /[a-zA-Z ]/;
    if (!regex.test(key)) {
    theEvent.returnValue = false;
    if (theEvent.preventDefault)
    theEvent.preventDefault();
    Please not that parameter '''''e''''' passed in the function provide the details of the keypress function. I am using DevExpress ASPxTextBoxes. Anybody who wants to use this function need to make changes in the above code as per the control used
    Thanks
    Shitiz

Maybe you are looking for

  • Reg : Advancing With Workitems

    Hi All, I am working in 4.6 with Purchase Requisition Workflow (Overall Release - BUS2105). The requirement is when the user rejects & saves the PR in ME54 I'm supposed to give a pop-up screen to enter rejection text. I tried various options like usi

  • How to get real value from selectOneChoice with javascript?

    Hi, How to get real value from selectOneChoice with javascript? The event.getNewValue() only gets me the index of the selected item, not the value/title. JSF page: <af:resource type="javascript"> function parseAddress(event) alert("new value: " + eve

  • Help with HP Instant Ink

    Dec 8, 2014  32 pages     Dec 10, 2014  3 pages     Dec 11, 2014 15 pages     Dec 13, 2014  8 pages I was having problems wth my printer and on Dec 8th kept trying different solutions to print the 32 pages were not usable and now I am close to my pag

  • Report to display record

    I have report that have 1000 records and we have 3 types of user user1,user2,user3 I want when user1 run the report the only 100 record idisplayed rest 900 is not dislayed. when user2 run the report then on 200 record displayed rest and 800 record is

  • Opening document made in a newer version

    A supplier of mine has sent me an In Design document that has been made in a newer version to what I have (I have CS).  The document has possibly been made in CS4 or CS3. Is it possible to save the document so that it can be opened in an older versio