Scroll menu out of control problem

Guys
I have created a scroll menu, everything seems ok except when you click on the arrows, it never stops. I tried everything but can not find which component gets the event. Any suggestion will be appreciated.
Thanks
import javax.swing.JList;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JScrollPane;
import javax.swing.WindowConstants;
public class NewJFrame extends javax.swing.JFrame {
     private JMenuBar menuBar;
     private JMenu menu1;
     public static void main(String[] args) {
          NewJFrame inst = new NewJFrame();
          inst.setVisible(true);
     public NewJFrame() {
          super();
          initGUI();
     private void initGUI() {
          try {
               setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
               String[] petStrings = { "Bird", "Cat", "Dog", "Rabbit", "Pig",
                         "Fish", "Horse", "Cow", "Bee", "Skunk" };
               JList list = new JList(petStrings);
               JScrollPane scrollPane = new JScrollPane(list);
               menuBar = new JMenuBar();
               setJMenuBar(menuBar);
               menu1 = new JMenu();
               menuBar.add(menu1);
               menu1.setText("menu1");
               menu1.add(scrollPane);
               pack();
               setSize(400, 300);
          } catch (Exception e) {
               e.printStackTrace();
}

Works fine on JDK1.4.2 on XP as well.
I don't know why you would be having a problem with JDK1.5. Try deleting all your .class files. Maybe you have a garbage class file lying around that is causing problems.

Similar Messages

  • IPhoto scrolls out of control

    I'm really getting #$%&* off at iPhoto. I'm organizing a semi large library of just over 1000 images in approximately 120 rolls. Here's the problem: when I drag and drop images from one roll to another, at some point which I can't exactly determine, iPhoto kicks into overdrive and scrolls so fast that I can't see the rolls. If I try to reverse (inevitable as it's impossible to stop where you want when iPhoto is in Warp speed), all the while still holding down the click button on my mouse, iPhoto goes in reverse just as fast. It's impossible to stop and drop the image where I want. What usually happens is I just drop it somewhere and then have to re drag and drop to the correct roll.
    Is there anyway of controlling the speed iPhoto scrolls at? When I first start dragging an image, iPhoto scrolls at an appropriate speed and slowly accelerates. Then, all of a sudden, like I said, it kicks in the afterburners and essentially becomes useless.
    Any help?

    TD.
    Thanks, that's a useful article. I'll check out the USB overdrive and see if it has some functions I'd like.
    But again, for me it's not a mouse issue. Unlike the article, I never have this problem outside of the library in iPhoto.
    It happened again yesterday, so let my try to describe it more carefully.
    I had just uploaded some pictures from a camera card into iPhoto. They were put in a new roll (as always). I wanted to move them up to an existing roll with pictures from the same card. I selected the new roll. Then I began to drag them up to the roll where I wanted them. I had perfect control with the mouse as I moved the drag image up the screen. But the target roll was above it, off screen. When I moved to the top where iPhoto begins to scroll the rolls downward, it was fine at first. I even am very careful to just let it scroll a little at a time, to keep it from accelerating (Notice that the mouse dosn't move much here, it's iPhoto moving the rolls to put them on screen.) I had no trouble getting my target roll onscreen, highlighting the roll name, and dropping in the first set of imports.
    But when I uploaded more pictures on another new roll and tried to move them, iPhoto freaked out. Again I selected the new roll and dragged it up to the top of the window. With the mouse just inside the top of the window, where it activates iPhoto to move the rolls down, I could see the open target roll approaching as rows of thumbnails lowered on the screen. BUT, when it got to where the roll name should have been, iPhoto moved into warp speed and skipped a whole screenful of rolls in a flash. The target roll was now off screen below the window. So I had to move the mouse down and let iPhoto begin scrolling the rolls up. Nice and slow, a few rolls at a time (I keep the rolls I'm not using closed.) Then JUMP - iPhoto goes into hyperspeed again and scrolls the rolls up so that the target roll is again off screen above the window. Again, I moved up to the top so iPhoto would scroll the rolls down. Back and forth, up and down, it kept flying past my target roll. With the target roll open, I could get the rows of thumbnails on screen nice and slow. But I have to reach that roll name, or my photos won't drop into the roll. It's the roll NAME that keeps getting flown past. (As if iPhoto is rejecting more changes to that roll.) If I close the target roll, I can't come within 2 or 3 rolls from it before iPhoto goes warp. Eventually I managed to get the target roll on screen while the mouse was at the top and iPhoto was scrolling down. It scrolled very quickly, but I managed to catch it before it moved off the bottom of the screen. Then I moved my mouse slowly down toward the target roll, one roll at a time (dragging all the while, never releasing) and was finally lucky enough to have the roll name of my target roll stay put and become highlighted. I dropped in the new roll, and it was correctly added to the target roll.
    The third time I uploaded and tried to move was even more difficult. It took even longer to catch the target roll on screen. Lots more up and down. All of my imports yesterday (3 newly created rolls) were placed into the same roll.
    Jailer Joe, is this what happens to you?
    Has anyone else seen or heard of this? Any thoughts as to why iPhoto's roll scrolling goes out of control?

  • Possible fix for no audio & grayed-out volume control

    Hi, I just thought I'd post this fix I found for my Mac Mini losing audio and also having the volume control grayed-out as if permanently muted.
    I have had this problem a couple of times on my Intel 2 GHz Core 2 Duo Mac Mini. I have tried some of the software solutions found on the web such as zapping PRAM, deleting certain Plists, etc. But in my experience the fix that has worked is to open the Mac Mini and unseat and then reseat the orange Foxconn ribbon audio cable where it connects from the Mini's audio board to what I assume is the main circuit board. Then when you reassemble and turn on your Mac, audio will be back.
    My theory is that unplugging and re-plugging USB and audio cables on the back of the Mini near the audio board eventually loosens the internal ribbon cable and causes the audio to stop working. My latest attempt at a permanent solution is to have USB and analog 2.5mm stereo audio 'extender' cables plugged in on the back of my Mini, which loop forwards over the top of the Mini where they are all taped down securely. This allows me to plug and unplug cables without ever disturbing the actual USB and audio ports on the back of the Mini.  I am hoping this will help avoid the lost audio & grayed-out volume control problem in the future since the connection of the internal audio ribbon cable is less likely to be disturbed. It is a somewhat ugly solution but seems to be working so far.  I'll post later on if the volume control gets grayed out again even with these measures.

    Not on mac though

  • My 4th generation ipod touch is not turning off when i hold the wake button for few seconds the Voice Control Function Starts Automatically.Please help me to get out of this problem.

    My 4th generation ipod touch is not turning off when i hold the wake button for few seconds the Voice Control Function Starts Automatically.Please help me to get out of this problem.

    Sorry i mistakenly made this question. It was alright. No Problem At ALL

  • I am using my ipad 2 ( bought in USA)  for about 3 years. 2 weeks back the touch gesture was completely out of control and the screen  was jumping automatically to so many applications. I attempted to get original settings through settings menu, but unfor

    I am using my ipad 2 ( bought in USA)  for about 3  years. 2 weeks back the touch gesture was completely out of control and  the screen  was jumping automatically to so many applications. I  attempted to get original settings through settings  menu, but unfortunately while resuming when I typed a pass code the  touch gesture , without control it  typed unknown passcode and while  confirming the passcode as well same thing happened.
    Now my Iapd2 is disabled and itunes also not recognizing my ipad.
    I kindly request you to help me to fix the issue. 

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • I can't connect to Wi-Fi - keeps timing out. No problem connecting from other laptops / phones. Stopped working after I did a system upgrade. What can I do?

    I can't connect to Wi-Fi - keeps timing out. No problem connecting from other laptops / phones. Stopped working after I did a system upgrade. What can I do? I am on OS X Yosemite.

    Take each of the following steps that you haven't already tried, until the problem is resolved. Some of these steps are only possible if you have control over the wireless router.
    Step 1
    Turn Wi-Fi off and back on.
    Step 2
    Restart the router and the computer. Many problems are solved that way.
    Step 3
    Change the name of the wireless network, if applicable, to eliminate any characters other than letters and digits. You do that on your router via its web page, if it's not an Apple device, or via AirPort Utility, if it is an Apple device.
    Step 4
    Run the Network Diagnostics assistant.
    Step 5
    In OS X 10.8.4 or later, run Wireless Diagnostics and fix the issues listed in the Summary, if any.
    Step 6
    Back up all data before proceeding.
    Launch the Keychain Access 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 and start typing the name.
    Enter the name of your wireless network in the search box. You should have one or more "AirPort network password" items with that name. Make a note of the name and password, then delete all the items. Quit Keychain Access. Turn Wi-Fi off and then back on. Reconnect to the network.
    Step 7
    You may need to change other settings on the router. See the guidelines linked below:
    Recommended settings for Wi-Fi routers and access points
    Potential sources of interference
    Step 8
    Make a note of all your settings for Wi-Fi in the Network preference pane, then delete the connection from the connection list and recreate it with the same settings. You do this by clicking the plus-sign icon below the connection list, and selecting Wi-Fi as the interface in the sheet that opens. Select Join other network from the Network Name menu, then select your network. Enter the password when prompted and save it in the keychain.
    Step 9
    Reset the System Management Controller (SMC).

  • Iphone 4s out of control..

    Last night I was looking at my emails on my iPhone 4ssuddenly exited the emails and went to music and scrolled through the music andthen went to the itunes store. It was about to purchase something from thatwhen I turned the iphone off and back on. It worked normally for a coupleminutes then went back to randomly doing whatever it wanted. I restored it andthat didnt help. Now it randomly goes on my messages and starts typing randomcrap and scrolls through my contacts as well as through my music, settings,notifications, youtube, and itunes store. I have had an otter box on my phonesince I got it and havent dropped it or spilled anything on it. Apple Support isnt working so maybe someone here can help me with my problem.. Thanks for the help

    I am facing the same problem. I am using iphone 4. I was checking my emails and suddenly something got installed on my phone and it went out of control and kept on opening different things. I restore it through itunes but it did'nt help.
    Please provide me with some solution.
    Thanks

  • How can one increase or zoom the size of the menu bar tabs/control items? They are tiny at HD resolution.

    i have a large monitor and i have it set to high res. This makes everything small. I bring it up with no squint but this does not work on the upper menu/tool bar/control/tabs or their drop down menus, leaving me squinting again. There needs to be a no squint feature for this area of the browser

    '''''NoSquint''''' changes only the web page display, not the Firefox user interface.
    Try this Add-on:
    *'''''Theme Font and Size Changer''''' -->https://addons.mozilla.org/en-US/firefox/addon/theme-font-size-changer/
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.org/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *'''''Adobe PDF Plug-In For Firefox and Netscape''''': [https://support.mozilla.org/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.org/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.org/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • User Account Control Problems with Premier Elements 7 32 bit in 64 Bit Windows 7

    I found User Account Control Problems in other forums but didn't see much in Premiere Elements, so I hope this helps others who may be having problems with 32 bit programs in a 64 bit computor. When I first got my 64 bit I didn't have problems.
    Back in February I bought a Quad Core Desktop with Windows 7 64 bit. Haven't been on the forum for 7 months since I wrote in regarding importing video with the Pyro AV Link (Premiere Elements Tips and Tricks). I was having problems importing video which started after March 28 sometime, as that was the last time I didn't have a problem importing VHS. Took me a few months off and on to find out what worked.
    I started uninstalling Windows updates and any programs I had installed back to that point in time. Checked after uninstalling each item. The capture screen would come up on a delayed basis but clicking on capture did nothing. Although no driver is required for IE1394 (so they say) I read where some people using the Legacy driver had fixed some problems, so I switched to the Legacy. Seemed to work great (for a few minutes).
    I had even uninstalled and reinstalled PE7 but no difference. Finally I noticed a shield in the PE7 Desktop icon. Thats weird. Never had that before. Just decided to show up after I had done all of the stuff I mentioned. Turns out at some point in time since I've had the computor Windows 7 decided to flag my 32 bit program as misusing the 64 bit system. User Account Control. I never bothered too much with UAC and just clicked on the yes box wen it popped up asking if I wanted this or that to take control of my computor. I tried using the minimum setting for safety reasons, and then finally turned User Account Control off. Bingo! PE7 capture works again and still working.
    While I am not recommending that people arbitrarily turn UAC off, this appeared to be my problem. I would recommed that they try turning it off before uninstallin a bunch of stuff. Having a restore point may or may not have been a fix for me. I think one of the Windows Updates caused the problem but I am not going to uninstall any more stuff at this point, I have not been back on the internet or installed any more updates in my desktop. I am going to use my laptop for internet and used the desktop for video.
    I am guessing this could be a problem for any 64 bit systems trying to use 32 bit programs. IE: XP,Vista,Windows 7 64 bit. In Vista there is also Data Execution Prevention (DEP) which you can turn on or off, supposedly to prevent misuse of memory (as I understand it), but Win7 either doesn't have it or I haven't found where it's located.
    Maybe this has been covered in the forum somewhere and I missed reading it. Hope I am not too confusing. Anyway, whatever feedback you guys have would be great.  

    John,
        Thanks for your answer, and I did check out the link you suggested. However, I have Windows 7 Home Premium as most people have I think, and the XP program was not available. I started with Vista and now have Win 7. I never could navigate around in XP anyway so am content to just leave User Account Control off.
        Interesting side note to turning UAC off is that my desktop seemed to be using more of the CPUs, where half of them were "Parked" as I wrote in also about 7 months ago when I 1st got my desktop. I am pleased to say that video processing seems to go quicker with UAC off. Have to observe things some more to confirm.
        I just thought if others were having problems after installing Windows Updates and leaving UAC off worked then they could possibly pinpoint a problem.

  • I am looking at online tutorials about parallax scrolling websites but I have a fully updated version via Adobe Cloud. I'm on Windows 8.1 but my Muse doesn't have the 'fill/scroll' menu. Why? Is it only a Mac option?

    I want to create and offer a scrolling website for a restaurant client but I am confused by online tutorials that show a drop down menu with either fill or scroll.  I have checked for updates but I am fully up to date.  Does anyone know why I cannot access this scrolling menu please?

    Hi Vivek,
    Thank you for your kind advice which I greatly appreciate.  However, I think I have solved most of my problems by signing up with Train Simple on a $9 per month technical learning course.  Within a few minutes I was able to locate the fill - scroll menu by simply clicking on the actual text of fill - which for some reason I didn't know about!.  I stayed with the Muse fundamental course all day today and covered everything to do in Muse in great detail.  I am now looking forward to the single page website learning experience with scrolling!

  • In my mac i dont create icloud keychain but it is asking password please help me to get out of this problem

    In my mac book pro i don't create icloud keychain. But it is asking password.Please help me to get out of this problem.In OS X Mavericks

    Hi, nportillo,
    The next time you attempt to reach Skype Customer Service, try again using a different web browser and choosing a different path through the various drop-down menu options presented.  Do not choose the obvious - you have already established that path is not working.  Also, look to approve a pop-up dialogue box which would connect you to start an instant message chat with a customer service agent. If you have pop-ups blocked in your browser settings, this will also impede reaching an agent.
    Skype is aware of problems reaching their customer service unit via the website, however people are getting through.  I have flagged your report for follow-up by those to whom I report.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Scroll bar in table control without wizard

    Dear All,
    I have made a module pool program for gate pass. In which i have taken a TABLE CONTROL WITHOUT WIZARD. Now my problem is , the table control does not have the SCROLL BAR  functionality. It is not showing the scroll bar also. So can any one of you can help with the code that i can use to bring that scroll bar.
    Table control is without wizard.
    Thanks & Regards
    Vijju

    Hi,
    In PBO module write the code as,
        data:  fill TYPE i.
        DESCRIBE TABLE itab LINES fill.
      flights-lines = fill.
       Flights is the table control name in screen and itab is the internal table name.
    Regards
    Haritha
    Edited by: Haritha Teegala on Jan 6, 2012 7:53 AM

  • Safari out of control in yosemite

    Ever since updating imac, the Safari browser is out of control.  The advertisements are overwhelming and a new tab constantly opens for  mackeeper or other ads.  I am also getting a series of adobe flash player errors saying to change settings to 32-bit mode.  Not sure what to do.

    There is no need to download anything to solve this problem.
    You may have installed the "Downlite" or "VSearch" ad-injection malware. Follow the instructions on this Apple Support page to remove it.
    Back up all data before making any changes.
    Besides the files listed in the support article, you may also need to remove this item in the same way:
    ~/Library/Internet Plug-Ins/ConduitNPAPIPlugin.plugin
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those. If Safari crashes on launch, skip that step and come back to it after you've done everything else.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, then you may have one of the other kinds of adware covered by the support article. Follow the rest of the instructions in the article.
    The problem may have started when you downloaded and ran an application called "MPlayerX." That's the name of a legitimate free movie player, but the name is also used fraudulently to distribute VSearch. If there is an item with that name in the Applications folder, delete it, and if you wish, replace it with the genuine article from mplayerx.org.
    This malware is often found on illegal websites that traffic in pirated content such as movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates
    if it's not already checked.

  • Scrolling menu with indpendent static text

    I was hoping someone would be able to help me, im not very
    experienced, but i learn pretty quickly.
    This
    is a screenshot of my menu, it is a horizontal scrolling menu. Upon
    rollover, the icons glow red. I copied the actionscript from
    something i found online.
    I need static text to appear in the bottom section when each
    icon is selected, thus labeling the icon. I've tried different
    things, but each time the text would move horizontally as the icons
    do. I need the text to exsist independently from the menu, but i
    have no idea how to do this. Any help would be greatly appreciated.
    I can provide the FLA file if needed.
    this is the action script i have placed on the menu, i dont
    know if it will help
    xm = 0;
    //function to set the xpos of the movieclip
    function xpos(bar_length,mul)
    hpos = 0;
    scroll_length = 490;
    incr = bar_length/scroll_length;
    xm = _xmouse;
    if(_xmouse <= 10){xm = 10;}
    if(_xmouse >= 400){xm = 400;}
    scroll_x = hpos - xm;
    scroll_x = scroll_x * mul;
    x_pos = scroll_x * incr;
    x_pos = x_pos + hpos;
    return x_pos;
    _root.onEnterFrame = function ()
    // call function xpos
    x_pos = xpos(700,.20);
    with (bar)
    _x += (x_pos - _x)*.4;
    // call function xpos
    x_pos = xpos(950,.75);
    with (menu)
    _x += (x_pos - _x)*.4;
    thanks it advance

    you will need to create a 'dynamic' text field in the
    position that you want there, and then assign text to the field on
    rollOver of the button clip. You can control the text assignment
    from within the onRollOver and onRollOut handlers. Something like
    this from the main timeline:

  • Scrolling menu with independent static text

    I was hoping someone would be able to help me, im not very
    experienced, but i learn pretty quickly.
    This
    is a screenshot of my menu, it is a horizontal scrolling menu. Upon
    rollover, the icons glow red. I copied the actionscript from
    something i found online.
    I need static text to appear in the bottom section when each
    icon is selected, thus labeling the icon. I've tried different
    things, but each time the text would move horizontally as the icons
    do. I need the text to exsist independently from the menu, but i
    have no idea how to do this. Any help would be greatly appreciated.
    I can provide the FLA file if needed.
    this is the action script i have placed on the menu, i dont
    know if it will help
    xm = 0;
    //function to set the xpos of the movieclip
    function xpos(bar_length,mul)
    hpos = 0;
    scroll_length = 490;
    incr = bar_length/scroll_length;
    xm = _xmouse;
    if(_xmouse <= 10){xm = 10;}
    if(_xmouse >= 400){xm = 400;}
    scroll_x = hpos - xm;
    scroll_x = scroll_x * mul;
    x_pos = scroll_x * incr;
    x_pos = x_pos + hpos;
    return x_pos;
    _root.onEnterFrame = function ()
    // call function xpos
    x_pos = xpos(700,.20);
    with (bar)
    _x += (x_pos - _x)*.4;
    // call function xpos
    x_pos = xpos(950,.75);
    with (menu)
    _x += (x_pos - _x)*.4;
    thanks in advance

    you will need to create a 'dynamic' text field in the
    position that you want there, and then assign text to the field on
    rollOver of the button clip. You can control the text assignment
    from within the onRollOver and onRollOut handlers. Something like
    this from the main timeline:

Maybe you are looking for

  • Tiger upgrade- wife cant open ical

    Hi- I recently updated to tiger from panther, then updated to 10.4.2. Have been consist in running disk permissions. I have seperate user accounts for my wife and I (I'm the admin). Since updating to tiger, Ical bounce onces when she clicks on it and

  • New to IT

    Yes, I am working. I work for a 3rd party insurance company as a work at home agent. I have attempted on several try to shadow some one in the IT department at the company on my on time and that was not granted. I have sent out several resumes applyi

  • HT5312 I forgot my security ?'s!!! What do I do?? (Your answer will be greatly appreciated)

    I need help! I forgot my security ?'s! Any ideas? Thanks

  • Editor Tag for Typewriter Tool

    How can I turn on the pop-up of who made a document modification with the Typewriter tool. I have one computer that when you put the mouse over an edit with the typewriter tool, it will give a pop-up showing who made the edit. Another machine I have,

  • Text not translating into another language

    Hi! When I'm working in Robohelp HTML, and I select topic langauge and change to another language, it does not change the text. I've even tried just selecting a paragraph and changing the language there, but still nothing happens. I'm not sure if som