Old topic..but i read previous and applied still cant work

i got a panel,i need the button to be press when i just enter anyhow.i tried b4
getRootPane().setDefaultButton(changeButton); somesort like this..but still cant work..can give me a hints how to do tat?
this is part of my code to build the panel..the button i wan it to perfrom as enter is 'b1',so can teach me how?the panel is my main panel,and i got a panel for my button call buttonButton which contain the 'b1'.pls
private void createGui() {
          setLayout(new BorderLayout());
          JComponent panel = buildPanel();
          buildButton();
          add(panel, BorderLayout.CENTER);
          add(buttonButton,BorderLayout.SOUTH);
     }

Do you mean to say that enter key doesn't work on the JButton? If YES then try below
KeyStroke enterKeyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false);
<your button>.registerKeyboardAction(<action Listener>,enterKeyStroke ,JComponent.WHEN_FOCUSED);

Similar Messages

  • HT4623 I downloaded new 6.0 software and lost my apps on my 3gs. under itunes when I try and redo it to old settings it keeps 6.0 and I still cant download my apps. What to do?

    I downloaded new 6.0 software and lost my apps on my 3gs. under itunes when I try and redo it to old settings it keeps 6.0 and I still cant download my apps. What to do?

    Connect to iTunes on the computer you usually Sync with and “ Re-Sync “...

  • New i tunes up date will not load says have to remove old bonjour but i tried that and my internet stopped working

    new itunes up date will not down load says i have older version bonjour can not be removed tried removing bonjour with revo uninstaller takes bonjour off but then my internet will not work

    iOS: Unable to update or restore

  • Read, Modify and Apply Report XML using Java Script

    Hi Guys,
    Is there any way that we can Pragmatically Read, Modify and Apply Report XML using Java Script or some other way.
    Thanks
    Kaushik
    Edited by: Kaushik K on Jun 20, 2012 8:36 PM

    Requirement ::
    Users should be able to add Column to the Report Dynamically at Runtime.
    (There are around 1000+ Users, Answers Approach is not acceptable)
    So we are planning to provide a Multi Select / Shuttle Box Option for Users to add Columns dynamically. (Only for Table View)
    What we planned to DO ::
    Create a Presentation Variable Prompt, Which reads the Metadata Table (Presentation Table.Column Name, populated using the Metadata Dictionary)
    And Create a report with One Column and the Column Fx like @{var_dynamic_columns}{'"Time"."Year","Time"."Month"'}
    With this, OBIEE is rewriting the Logical SQL Currently as "Select "Time"."Year","Time"."Month" from "A - Sample Sales" "
    But getting an error
    The number of columns returned in retrieving column metadata was invalid (expected: 1; received: 2)
    So we want to see, if we can rewrite the Advanced XML of the Report to have dynamic columns based on the Values from the Presentation Variable.
    Please help me if this is a viable solution or any other better solution.

  • Downloaded this game, "Where's My Water 2" and before I can even start it asks for my age but freezes and wont move. I've rebooted, turned off, removed and reinstalled and it still wont work but on all my previous iPhones it worked fine.

    Downloaded this game, "Where's My Water 2" and before I can even start it asks for my age but freezes and wont move. I've rebooted, turned off, removed and reinstalled and it still wont work but on all my previous iPhones it worked fine.

    Sorry if I sound stupid but how do I contact the developer? Where would I find that information?

  • I've deleted Adobe Reader 11 and rebooted and reinstalled Adobe Reader 11 and I still get the error message that 'Adobe Reader is blocked because it is out of date'. Using Windows XP with the latest updates (SP3).

    I've deleted Adobe Reader 11 and rebooted and reinstalled Adobe Reader 11 and I still get the error message that 'Adobe Reader is blocked because it is out of date'. Using Windows XP with the latest updates (SP3).

    Screenshots attached to email replies will not make it back to the forum; you need to login to the forum and post it in your topic using the camera icon in the editor.
    Google Chrome is a problem:
    if you use Chrome's own PDF viewer, the results are unpredictable.
    if you use the Adobe Reader plugin with Chrome, it may reject (block) it if it is not the latest version.  Reader 11.0.08 is the latest version for Windows XP, but Chrome may insist on the current version 11.0.10.
    My suggestion; use a different browser!

  • Hi , i have a 4th gen ipod touch and it runs on 4.3.5 but it wont let me update it to 5.1.1! everytime i try to install it..it says "sorry your network timed out" and wont let me! i tried so many times and it still wont work.. what to do?

    hi , i have a 4th gen ipod touch and it runs on 4.3.5 but it wont let me update it to 5.1.1! everytime i try to install it..it says "sorry your network timed out" and wont let me! i tried so many times and it still wont work.. what to do?

    Disabling the computer's security software (firewall and antivirus) usually resolves that error.

  • Inbuilt isight camera is detected in system profiler but no image is being detected only a black screen shows up. I have tried all of the troubleshooting instructions and it still wont work. The iMac im using is OS X 10.6 and was an ex-floor model

    inbuilt isight camera is detected in system profiler but no image is being detected only a black screen shows up. I have tried all of the troubleshooting instructions and it still wont work. The iMac im using is OS X 10.6 and was an ex-floor model

    Hi,
    I would try a Safe Boot first.  (This will take longer than a normal Boot and you will need to Restart afterwards).
    If it were an older OS I would also suggest going to System Preferences > Displays and making sure the display is set to Millions.  (My MacBook Pro does not have this option in Snow Leopard so I did presume Snow Leopard does not have it).
    With some laptops there have been some issues with the cable up the back of the screen pulling loose with regular and frequent use of the lid, but this will not apply to you based on your specs.  (it does take time to appear and is also somewhat rare). However it seems enough contact with the camera can make it appear in System Profiler and power it on but not give a pic.
    If a Safe Boot does not work I would also try a PRAM reset.
    Shut down the computer.
    Restart it holding down Apple/CMD (or ⌘)+ALT( ⌥)+P+R Keys until you have heard three Start Up Bongs.
    This is actually "less" destructive in that it clears less memory items than Safe Boot but they are different enough to warrant trying.
    Do you have an older version of iGlasses installed ?
    The one for Leopard does not work for Snow Leopard.
    Do you have  Web Browser open ?
    This may point to  Google Video Chat Plug-in and Flash Conflict.  It would be rare to allow another app to access the camera even if not displayiong a Pic. 
    (Chrome Installs the Plug-in as does the standalone download).
    Knowing  what "any application" exactly you are trying might help us pin it down.
    Any additional downloaded  apps that can use the camera ?
    Do you happen to have something balck in front of the camera ?
    8:20 PM      Sunday; October 9, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • I can't hear anything when making calls no dailing tone or anything but when I try and audioface time it works fine please help

    I can't hear anything when making calls no dailing tone or anything but when I try and audioface time it works fine please help

    Hi Nfrith1,
    Please take a look at the article referenced below, the same as in my original reply.  The receiver on the iPhone does not have anything to do with the speakers on the bottom of the phone nor your microphone.
    Clear the receiver
    The iPhone receiver won't work properly if it's blocked or dirty. Here's where the receiver is:
    Follow these steps, testing after each:
    Make sure nothing is blocking the receiver, such as a case or film.
    If you have a new iPhone, remove the plastic film on the front and back of the device.
    Check the receiver opening to see if it's blocked or dirty. If necessary, clean the receiver opening with a clean, small, dry, soft-bristled brush.
    While you're on a call, turn on speakerphone. If you still can't hear, then your network or reception could be the issue. Try calling again later or from a different location.
    Restart and update
    Restart your iPhone and test again.
    If there's still no sound or poor sound quality, update to the latest version of iOS.
    Get more help
    If you've tried these steps and there's still no sound or poor sound quality from your iPhone, contact Apple Support.
    Learn what to do if other people can't hear you on a call.
    If you can't hear a person on a call or voicemail or if the sound quality is poor on iPhone
    Take care,
    Alex H.

  • Error Message reads: this application has failed to start because MSVCR80.dll was not found. Re-installing the application may fix this problem.  I have re-installed, SO many times and I still cant open iTunes.

    Hi Support,
    I am becoming anxious because no matter what I try it doesnt seem to allow me to open itunes.
    Error Message reads: this application has failed to start because MSVCR80.dll was not found. Re-installing the application may fix this problem.
    I have re-installed, SO many times and I still cant open iTunes.
    Please help!!

    Click here and follow the instructions.
    (98888)

  • I have turned off my read recipients and it still is coming up in my messaging as read. What is wrong?

    I have turned off my read recipients and it still is coming up in my messaging as read. What is wrong?

    bbramer_14 wrote:
    I have turned off my read recipients and it still is coming up in my messaging as read. What is wrong?
    The read receipts you are seeing are for the other person when they have read your messages.
    On their iPhone they have Settings > Messages - Send read receipts to On.
    The settings on your iPhone are for sending a read receipt to others. With this Off, they will not get a read receipt when you read their messages.

  • I'm using windows 8 and when I open premiere pro then it says i need application manager, so i get it and that says i need adobe support advisor but that is discontinued and now i cant use adobe premiere pro

    I'm using windows 8 and when I open premiere pro then it says i need application manager, so i get it and that says i need adobe support advisor but that is discontinued and now i cant use adobe premiere pro. what do i do now?

    Do a clean (re)install:
    * Download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    * Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    * Don't remove personal data when uninstalling.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    You can initially skip the step to create a new profile, that may not necessary for this issue.
    See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • Ive tried almost EVERYTHING and i still cant track my iPod that was recently stolen. Ive called apple been all over the website and still no way of tracking it. What are some other ways!?

    Ive tried almost EVERYTHING and i still cant track my iPod that was recently stolen. Ive called apple been all over the website and still no way of tracking it. What are some other ways!?

    Only the old fashioned way, like if you lost a wallet or purse.
    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it unless you had iOS 7 on the device. With iOS 7, one has to enter the Apple ID and password to restore the device.
    - Apple will do nothing without a court order                                                        
    Reporting a lost or stolen Apple product                                               
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • HT1430 When charging my Ipad mini, it turned off and its still not working, what do i do pls??

    When charging my Ipad mini, it turned off and its still not working, what do i do pls??

    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  It could take well over an hour!  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod.  As before, say "yes."  Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time.  If that happens, only the apps that are part of the IOS will appear on your device.  Corrective action is simple -  choose manual "Sync" from the bottom right of iTunes.
    If you're unable to do the Restore, go into Recovery Mode per the instructions here.

  • My ipod nano 6th gen screen is white ive tried the hard disk mode with the power and volume buttons and it still wont work any suggestions?

    my ipod nano 6th gen screen is white ive tried the hard disk mode with the power and volume buttons and it still wont work any suggestions?

    You can try Restoring it in iTunes but I believe you will end up needing to have it serviced.

Maybe you are looking for

  • Pop up text on clicking link on a sql report

    Hi I'm using apex 3.2 I've a sql report like below taskId(edit) Task_details Notes owner ..... What I want to do is if I click on taskId which is edit link ,pop up text box should open where I can add notes to that row. How can I achive this? Thanks

  • Strange symbol while trying to get 4g - Iphone 5, Strange symbol while trying to get 4g - Iphone 5

    Each day I go into work, the signal on my Iphone 5 will drop from 4g to E when I get into the elevator.  We have great 4g signal in the building,except in the elevator, understandable.  But anyway...when I exit the elevator, the iphone seems to strug

  • PTE file imports with different versions of ALUI?

    Hi, I am wondering if anyone knows of any issues with the import/export of data in ALUI via the PTE file from one version of ALUI to another. For example, are there any issues with exporting data from v6.5 of ALUI and importing it into v6.0 or v6.1.

  • Cannot connect 2nd lap top to the internet

    Hello, I have the Linksys BEFW11S4 router.  The 2nd lap top in my home cannot get connected to the internet for some reason.  Any suggestions?  Thanks

  • Desk stand for the 11" Air

    I own the mid 2011 MacBook Air 4,1. It's the 11" model. When working at my desk, I have it hooked up to an external monitor, keyboard and mouse. I'm looking for a desk stand that would suit elevating the system to a comfortable eye height. Could anyo