Moving a button - should be simple right?

I just can't eliminate the 'jumping' that is happening when I move a button using the mouseDragged event:
private void myBtnMouseDragged(java.awt.event.MouseEvent evt) {
myBtn.setLocation(evt.getX(),evt.getY());
The above call was added by this:
myBtn.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
public void mouseDragged(java.awt.event.MouseEvent evt) {
myBtnMouseDragged(evt);
It works, but the object jumps all around while moving (it does move with the mouse though). Also, it falls behind the mouse...shouldn't X and Y be tracking the mouse? I tried several different variations on this theme, but the 'jumping' was always a problem (realized some cool things though!).
I will keep looking through the forums...
Thanks for any replies, sorry for my ignorance!
JR

This is strange...if I use validate() after setLocation(), the button doesn't move at all:
public void myBtnMouseDragged(java.awt.event.MouseEvent evt) {
myBtn.move(evt.getX(),evt.getY());
validate();
jTextField1.setText("mouseloc " + evt.getX() + ", " + evt.getY());
The text field is showing me the X,Y of the mouse in real time though.
hmmmmmm...
There has to be something internally that is keeping track of the original location of the component, correct? So move(), and setLocation() are only temporary?
JR

Similar Messages

  • Just got mini. In mail I want to create a folder to save certain emails. I'll call the folder "Saved". Should be simple, right?

    Just got an iPad mini. In mail I want to create a folder to save certain emails. I'll call the folder "Saved". Should be simple, right?

    For IMAP mail like Gmail, you can use the Edit button to create new folder. It doesn't work for POP mail.
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%203/b854a6bf48a788257c1 b33ae4e628148.jpg

  • Just got an iPad mini. In mail I want to create a folder to save certain emails. I'll call the folder "Saved". Should be simple, right?

    Just got an iPad mini. In mail I want to create a folder to save certain emails. I'll call the folder "Saved". Should be simple, right?

    Yes ... and it is
    Since you're in the Mountain Lion forum, it is indeed simple to create a "Saved" folder on your Mac and save emails into it.  You should create the "Saved" folder using Finder.
    The fact that you just got an iPad mini is completely irrelevant to the discussion as it stands.

  • The HUD Inspector in Full Screen View seems to position at the right margin of the image as a default(?)  If I toggle the button in the top right of the HUD it 'unlocks' and I can drag it to where I prefer -- at the left margin; (for over a decade) my doc

    The HUD Inspector in Full Screen View seems to position at the right margin of the image as a default(?)  If I toggle the button in the top right of the HUD it 'unlocks' and I can drag it to where I prefer -- at the left margin; (for over a decade) my dock has resided at the right margin so all my slider manipulation over countless editing sessions in Aperture has been ingrained to work at the left margin -- but, the vast majority of the time, the HUD overlaps the image I am editing in this 'unlocked' mode. 
    Every occasionally I enter Full Screen View and it positions on the left margin *without* superimposition...(!) My great joy is modulated into aggravation, however, should my tracking cursor drift all the way 'out of bounds' -- to call in the hidden pane of adjacent images sequenced in the library... This dramatically shrinks the Full Screen display and re-locks the HUD; if I toggle the switch to re-xpand the image it re-positions at the right margin!!!!  I SOOoooooo wish I knew how to control the default 'locked' margin of the HUD in Full Screen View...

    Drag it over to the Left. Then lock it there.

  • When a pop up window comes up it is - search bookmarks and history window! I cannot log into my bank as login button should open new window to log in but I get the search page. I cannot see larger images as again I get the search bookmarks and history pa

    When a pop up window comes up it is - search bookmarks and history window! I cannot log into my bank as login button should open new window to log in but I get the search page. I cannot see larger images as again I get the search bookmarks and history page etc. Happens on all options that should open new page. I am so frustrated, this has been happening since Firefox updated itself 2 days ago to Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729; .NET4.0C) was fine before that. using windows vista. Can you please advise what I should do? Also can you go back to previous version? Error console eg
    Warning: Error in parsing value for 'cursor'. Declaration dropped.
    Source File: https://ib.nab.com.au/nabib/styles/menu_nab.css?id=009
    Line: 116
    ib.nab.com.au : server does not support RFC 5746, see CVE-2009-3555 and Warning: Selector expected. Ruleset ignored due to bad selector.
    Source File: https://ib.nab.com.au/nabib/styles/nabstyle.css?id=014
    Line: 837
    == This happened ==
    Every time Firefox opened
    == 2 days ago after update.

    Do you have that problem when running in the Firefox SafeMode?
    [http://support.mozilla.com/en-US/kb/Safe+Mode]
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this:
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • Why do the minimize, maximize, & close buttons in the top right corner disappear (turn to a black void) unless FF is maximized?

    I am running Windows 7 on my new laptop. When I bought it back in August, I installed Firefox version 5 (I think) Now that I have updated to version 6, the minimize, maximize, & close buttons in the top right corner disappear when the window is not maximized. It becomes a black space where the buttons should be.

    Hi Kossa,
    You can also check if the issue occurs in
    Clean Boot. If the issue disappears in the Clean Boot environment, you can continue to narrow down which entry is causing the issue.
    Besides, uninstall it and re-download
    a fresh copy of FireFox to check the result. If the issue still exists, create a new user account to see if it occurs.
    If the issue persists, you can contact Mozilla Support directly and use Internet Explorer (IE) during the time.
    J
    Please Note: The third-party product discussed here is manufactured by a company that is independent of Microsoft. We make no warranty, implied or otherwise,
    regarding this product's performance or reliability.
    Regards,
    Linda

  • Unable to view Device button in the upper-right corner

    When I connect my iphone to my laptop to sync the data from Itunes I am not able to view the Device button in the upper right corner of iTunes. Can you please help as to how to go about this.

    Sunzeus wrote:
    ..where the back up button should appear is empty for me...
    If there is No backup available... Set up as a New Device and Sync your Data/Information to the Device after the successful Restore.
    However... if your Device has been Modified... you are on your own.
    Unauthorized modification of iOS
    http://support.apple.com/kb/HT3743

  • I don't see the AirPlay button on the bottom right of my iTunes (v 10.6.3) window. Does anyone know why and how I can set it up? Thanks!

    I don't see the AirPlay button on the bottom right of my iTunes (v 10.6.3) window. Does anyone know why and how I can set it up? Thanks!

    You do not have to have an Apple TV, but you should have an AirPlay capable speaker on your network.

  • My calendar isn't working on my iPad. I can't add any event.  Someone said there is a "plus" button in the lower right corner and I have none.

    I have tried to add events on my calendar app (the one already on my iPad when I got it) and I can't figure out how to add event.  A friend said there should be a "plus" button on the lower right corner and I have none. 

    Was able to fix it.  Just enable iCloud via your settings on your ipad.  For some reason that allows Calendar to work properly.  Just another way Apple is trying to make you use ALL of their products, rather than just one...

  • My cellular data is going to slow on my iphone 4s,what should i do right now?

    my cellular data is going to slow on my iphone 4s,what should i do right now?

    a reset no data loss. hold down the home/sleep button together until you see the apple logo and then release.
    Or settings - general - reset - reset network settings.
    Or contact your cell phone provider.

  • I want to delete some songs from iTunes but no delete button appears when i right click or when i try to delete it from edit. what can i do?

    I want to delete some songs from iTunes but no delete button appears when i right click or when i try to delete it from edit. what can i do?

    If the songs are downloaded into your iTunes library (i.e. they don't have the cloud icon against them) then you should be able to delete them by selecting them and pressing the delete button on your keyboard.
    If they do have the cloud icon then they are in the cloud - you can turn off the showing of all icloud music via the 'Show iTunes in the Cloud Purchases' on the Store tab in iTunes > Preferences (command-comma), or you can hide individual tracks and/or albums so that they don't show in the cloud : iTunes Store: Hiding and unhiding purchases.

  • Print button should not perform its action in  report previewer

    Hi all,
    Report version 6i
    I am invoking a report from a form , the form has one status field ,the value can be NEW,APPROVED,CANCEL
    i just want take the print of the report if the status is approved , in all other cases the print button should be perform its action.
    that is , when user tries to print the report , its function should not happen.
    Please Guide.
    Thanks
    :8}
    Edited by: elegant on Jul 13, 2010 12:49 PM

    ADD_PARAMETER(param_list,'DISABLEPRINT','YES');
    ADD_PARAMETER(param_list,'DISABLEMAIL','YES');
    if you want to enable it give
    ADD_PARAMETER(param_list,'ENABLEPRINT','YES');
    ADD_PARAMETER(param_list,'ENABLEMAIL','YES');

  • While opening a screen none of the radio button should not selected

    Hi,
    i have three radio button on the screens.By default the first radio button is getting selected for each and every time when ever i'm opening the screen.i dont want the default select should happen and even i dont want any of the radio button should be selected.
    how i can acheive through dialog programming.
    kind regards,
    Poornima.

    Hi,
    You can have radio buttons with any one field selected from a group .
    ex:
    selection-screen begin of block b2 with frame title text-042.
    parameters:r_detail    radiobutton  group g2 user-command cmd default
    'X',
           r_sumry   radiobutton  group g2,
           r_totals    radiobutton group g2.
    selection-screen end of block b2.
    or
    selection-screen begin of block b2 with frame title text-042.
    parameters:r_detail    radiobutton  group g2 user-command cmd,
           r_sumry   radiobutton  group g2 default 'X',
          r_totals    radiobutton group g2.
    selection-screen end of block b2.
    or
    selection-screen begin of block b2 with frame title text-042.
    parameters:r_detail    radiobutton  group g2 user-command cmd,
           r_sumry   radiobutton  group g2 ,
          r_totals    radiobutton group g2 default 'X'.
    selection-screen end of block b2.
    Else you can opt for checkbox and have all of them not checked.
    Regards,
    Dep

  • Removal of the the Browse button at the lower right corner.

    Just would like to send out a request for apple to update the new iTunes 8.0 by re-adding the "Browse" button at the lower right hand corner, along side of the new genius button. I found the feature in the drop down view section on the top bar, but I'm sure users will be lost and have a hard time finding it.

    You can send feedback/feature requests directly to Apple at this link: Apple Product Feedback
    You can also use a keyboard command to open and close the browser. Hold down the Command and B keys together.

  • I lose the minimize, restore and close down buttons in the top right corner when removing the Menu Bar.

    I am using Firefox 28.0 on my Windows 7 64-bit PC. I would like to remove ONLY the menu bar and keep the orange Firefox tab. But when I uncheck the Menu Bar box, I not only lose the menu bar, I lose the three buttons on the very right of the screen as well - the minimize button, the maximize/restore down button, and the red 'X' close button. The space where these buttons ought to be is black. When I recheck the Menu Bar box, those three buttons on the right of the screen reappear!
    I would like to know how I am to remove the Menu Bar but keep the minimize button, the maximize/restore down button and the red 'X' close button.
    Eagerly waiting for your reply! Thanks much! ♥

    Hello again, cor-el,
    Thank you again for keeping up with me on this! I really appreciate your time!
    I tried your suggestions of using Safe Mode and a different Windows theme (2 different ones to be exact), but neither solved the problem. Each time I tried disabling the Menu Bar, the same 3 buttons disappeared and I got nothing but black space. It doesn't even fill the space with any background I may have. It's just black.
    Additionally, disabling all my personas did not help, either. :(
    I've been using Firefox for years now and I've never had this issue. It's always worked flawlessly for me.

Maybe you are looking for