Swing JTextFeild is not getting focus -  Using jdk-7u17-windows-i586

Hi All
Recently I upgraded my Application with Java 1.7 (using jdk-7u17-windows-i586) from java 1.6. Swing component JTextfeilds used to get focus when using java1.6. But after up-gradation to Java 1.7 in few scenarios JTextFeild is not getting focus and I am unable to do any thing with keyboard. Again I have to click on some button with Mouse and need to keep focus using mouse in the textfeild.
OS : Windows
Used Java Version : jdk-7u17-windows-i586
Issue : JTextFeild is not getting focus

993277 wrote:
Hi All
Recently I upgraded my Application with Java 1.7 (using jdk-7u17-windows-i586) from java 1.6. Swing component JTextfeilds used to get focus when using java1.6. But after up-gradation to Java 1.7 in few scenarios JTextFeild is not getting focus and I am unable to do any thing with keyboard. Again I have to click on some button with Mouse and need to keep focus using mouse in the textfeild.
OS : Windows
Used Java Version : jdk-7u17-windows-i586
Issue : JTextFeild is not getting focusThat's an incomplete bug report, not a question. This is a forum, not a bug tracking system. Try bugs.sun.com. And you may want to include a small sample program in the bug report that demonstrates the problem.

Similar Messages

  • Tab not getting focus on left-click after suspend in Windows 7 64-bit.

    When I left-click on a tab in Firefox 4 rc 2 after my pc wakes up from suspend in Windows 7 64-bit the tab is not getting focus. I have to use the hotkeys in order to move to that tab. My mouse works fine in other programs.

    I have an imac
    I have an magic pad (same thing as the touch pad on a macbook really)
    I have an usb mouse I use both in windows and osx
    if your trackpad somehow was registered as actived for some reason it would seem as if it was the mouse
    had some *** situations both in windows and osx when my cat sit on the magicpad

  • Toolbar icons are not getting focus

    The buttons on the toolbar are not getting focus when I move the mouse over the buttons. I am facing this problem if I use JRE 1.5.0_15 but it is working fine in JRE 1.6.0_6.
    But I need solution in JRE1.5.0_15.
    Can anybody please help me out is there any work around in JRE 1.5.0_15.
    Regards
    Venkat

    I found the solution, We need to change
    some coding style by giving conditions for particular version , foe example we should make changes in color initialisation. Insteatof color.red , use [RGB,1,0,0] and many.........

  • SQLite encrypted Database does not get attached Using Adobe Air,Why?

    Hi,
    Any one knows the solution, am trying to attach the encrypted SQLite database adobe air-adobe flex bulder , it does not get attached using sqlconnection.attach throws error, though the given key is correct, but it gets open using sqlconnection.open with the same key, any one knows the solution, how to attach the encrypted data base, since am using two data base one is opened and another must be attached to the existing ,thanks in advance. using adobe air- flex related. i use the following code
                   databaseFile1 = File.applicationStorageDirectory.resolvePath("Sample_1.sqlite");
                   databaseFile2 = File.applicationStorageDirectory.resolvePath("Sample_2.sqlite");
    dbConnection.open(databaseFile1, SQLMode.CREATE, false, 1024, secKey);
    dbConnection.attach("db2",databaseFile2,null,secKey);
    got the following error.
    ERROR #3125 Unable to open the database file.

    And I would say more "this is the issue" !
    It should be possible as it is clearly stated in the doc :
    public function attach(name:String, reference:Object = null, responder:Responder = null, encryptionKey:ByteArray = null):void
    with 
    encryptionKey:ByteArray (default = null) — The encryption key for the database file. If the attach() call creates a database, the database is encrypted and the specified key is used as the encryption key for the database. If the call attaches an existing encrypted database, the value must match the database's encryption key or an error occurs. If the database being attached is not encrypted, or to create an unencrypted database, the value must be null (the default).
    so with a same encryptionkey, I (and this should be the same for FinalTarget) can open the encrypted db but not to attach it... quite strange.

  • I just signed the creative cloud, and I'm not getting to use the purchased software. thank you

    I just signed the creative cloud, and I'm not getting to use the purchased software. thank you

    Rodrigo_1405 do you receive any specific error messages?  For information on how to install the Adobe Creative applications included with your membership please see Creative Cloud Help | Install, update, or uninstall apps.

  • How to make a JScrollPane not getting Focus?

    How to make a JScrollPane not getting Focus?
    When i tab out from a textfield inside a scroll pane focus is going to ScrollPane .And if i press tab once more then only focus is going to other textField which is outside the scrollpane.
    For me when i press tab from a text field inside a scrollPane ,i should go to textfield out side the scroll pane.
    satish

    Hi,
    I've the same problem, that I have to double click on tab
    to step from a textfield with a scrollpane to the next textfield in my panel.
    I tried to implement a FocusListener on my JScrollPane, but without success.
    Can you tell me in detail how to implement this listener ?
    Kind regards
    Andy Kanzlers

  • [OpenBox] Window not getting focus if skip_taskbar is set to 'yes'

    I have bound gmrun to ALT-F2. When I have skip_taskbar set to yes in rc.xml, gmrun does not get focus. This is quite annoying as I have manually click on it to get the focus.
    <application name="gmrun">
    <position>
    <x>center</x>
    <y>center</y>
    </position>
    <focus>yes</focus>
    <layer>above</layer>
    <skip_taskbar>yes</skip_taskbar>
    </application>
    If, however, I remove skip_taskbar as shown below, gmrun get its focus when launched.
    <application name="gmrun">
    <position>
    <x>center</x>
    <y>center</y>
    </position>
    <focus>yes</focus>
    <layer>above</layer>
    </application>
    * Same issue with mplayer/terminal - Doesn't get focus when skip_taskbar is set to 'yes'.
    Last edited by keerthi (2008-10-03 19:45:36)

    I have the same problem, but, and this part is really bad, I also mostly don't have this issue.
    So I can't help except to say I run OB 3.4.7.2 and [sometimes!] have the same issue as you.
    -dav7
    Last edited by dav7 (2008-10-04 03:49:06)

  • I have an ipod nano 7th generation and can not get it recognised by my Windows 8.1 laptop (it appears briefly on My computer, then disappears). This happened after I updated iTunes to the latest version. Does that have something to do with it?

    I have an ipod nano 7th generation and can not get it recognised by my Windows 8.1 laptop (it appears briefly on My computer, then disappears). This happened after I updated iTunes to the latest version. Does that have something to do with it?

    Hello there, kiwilucea.
    The following Knowledge Base article offers up some in-depth steps for troubleshooting your issue:
    iPod not recognized in My Computer and in iTunes for Windows
    http://support.apple.com/kb/ts1369
    Keep in mind if you get to Step 12 Reinstall iTunes, those steps need to be followed exactly as outlined for the reinstall to be effective.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Keynote:  I'm attempting to tweak a presentation I did on my old PC in ppt.  When I click build inspector, then build, I do not get an effects drop down window.  Please advise

    Keynote:  I'm attempting to tweak a presentation I did on my old PC in ppt.  When I click build inspector, then build, I do not get an effects drop down window.  Please advise

    Here's the Keynote forum:
    https://discussions.apple.com/community/iwork/keynote

  • Start Menu Configuration not being saved using BootCamp in Windows 7

    On a couple nearly identical MacBook Pros (ordered and built within the last couple months) I've encountered an issue where my Start Menu configuration is not being saved using BootCamp in Windows 7. Only the 64 bit version was tested, I don't have a 32 bit handy.
    "Stickying" icons on the top of the shortcuts seems to hold, but changing the display to small icons, adding "administrative tools", menu displays from opening folders to showing lists, or even just telling it to not highlight newly installed programs are lost on a reboot. The changes do appear to work at first, but again, are lost on reboot.
    Fwiw I'm using the machine in an Active Directory environment. If you need any additional information or further details just ask.

    On a couple nearly identical MacBook Pros (ordered and built within the last couple months) I've encountered an issue where my Start Menu configuration is not being saved using BootCamp in Windows 7. Only the 64 bit version was tested, I don't have a 32 bit handy.
    "Stickying" icons on the top of the shortcuts seems to hold, but changing the display to small icons, adding "administrative tools", menu displays from opening folders to showing lists, or even just telling it to not highlight newly installed programs are lost on a reboot. The changes do appear to work at first, but again, are lost on reboot.
    Fwiw I'm using the machine in an Active Directory environment. If you need any additional information or further details just ask.

  • Jdk-7u75-windows-i586.exe is not a valid Win32 application

    Hello all,
    I am having trouble in installing jdk on my window vista which is 32-bits. I have downloaded jdk from download.oracle.com/otn-pub/java/jdk/7u76-b13/jdk-7u76-windows-i586.exe.
    I have tried all things mention in discussion jdk-7u3-windows-x64 installation issues
    I will appreciate any help.
    Thank you in advance.

    Can you elaborate on the type of trouble you are having while installing? Error codes?
    -Roger

  • "Error 1721" when trying to install jdk-6u3-windows-i586-p.exe ??

    When I try to install the just downloaded jdk-6u3-windows-i586-p.exe
    = Java SE 6 upd 3 Development Kit on my WinXP computer at first everything seems fine.
    I can choose the installation options (all except the Java DB).
    and selected the installation folder and start the process.
    The progress bar reaches approx. 80%.
    Then suddenly it stops and a popup appears:
    "Error 1721. There is a problem with this Windows installer package. A program required for this install to complete could not be run".
    What's wrong ?
    BTW: Upd 2 could be installed without problems.

    Hi, Try reregistering the Windows Installer service.. For that restart you system in safe mode then
    Open command prompt and excecute the below commands
    1 msiexec /unregister
    2 msiexec /regserver
    Restart the system normally and check if it works.
    If it doesn't work try using some registry cleaner like CCCleaner to clean your registry.
    Hopw this will work ..

  • Jdk-6u10-windows-i586-p

    I down-loaded the jdk-6u10-windows-i586-p and installed it on my computer. But there was a fatal error, now it won't let me reinstall it or remove it. Can anyone tell me what to do?
    Thanks
    Drenda

    if you're running Xp then chances are you are a member of admin group. If it is only saying a "fatal error has occurred" and add/remove programs is not working then i would just delete the java file from C:\program files\ and then restart the machine and reinstall.

  • Custom TextInput itemEditor not getting focus.

    I have an AdvancedDataGrid that has a custom itemEditor on an amounts field. If I do an inline textInput itemEditor everything works fine, but if I separate out the textInput itemEditor into it's own component then when I click on the amounts column it doesn't seem to get focus. What happens is I click once and it appears like the text box has appeared, but there is not cursor, so I can't start typing my amount. I need to click a second time in the cell for the cursor to appear.
    Here are my datagrid columns:
    <datagrids:columns>
            <mx:AdvancedDataGridColumn dataField="Customer" headerText="Cust" editable="false"/>
            <mx:AdvancedDataGridColumn dataField="Balance" headerText="Bal" editable="false"/>
            <mx:AdvancedDataGridColumn dataField="paymentAmountString" headerText="Amount"
                               editable="true" textAlign="right"
                               editorDataField="amountText" itemEditor="com.ihcfs.flex.renderers.AdvancedAmountTextInputRenderer">
            </mx:AdvancedDataGridColumn>
        </datagrids:columns>
    Here is my custom renderer/editor, I've tried both a spark TextInput and an mx:TextInput. They both have the same behavior.
    <?xml version="1.0" encoding="utf-8"?>
    <s:MXAdvancedDataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
                                      xmlns:s="library://ns.adobe.com/flex/spark"
                                      xmlns:mx="library://ns.adobe.com/flex/mx"
                                      focusEnabled="true">
        <fx:Script>
            <![CDATA[
                public var amountText:String;
            ]]>
        </fx:Script>
        <s:TextInput id="amountTextInput"
                     width="100%" height="100%"
                     textAlign="right"
                     change="amountText = amountTextInput.text;"
                     focusEnabled="true"
                     editable="true"
                     restrict="[0-9][.]"/>
    </s:MXAdvancedDataGridItemRenderer>
    If I do an inline item editor it works just fine, it's when I move it out to a reusable component that this behavior happens.
    Inline:
    <datagrids:columns>
            <mx:DataGridColumn dataField="customer" headerText="Cust"
                               editable="false" textAlign="center"/>
            <mx:DataGridColumn dataField="balance" headerText="Bal"
                               editable="false" textAlign="center"/>
            <mx:DataGridColumn dataField="paymentAmountString" headerText="Amount"
                               editable="true" editorDataField="text" textAlign="right">
                <mx:itemEditor>
                    <fx:Component>
                        <mx:TextInput width="100%" height="100%" textAlign="right"
                                      focusOut="textinput1_focusOutHandler(event)"
                                      focusIn="textinput1_focusInHandler(event)">
                            <fx:Script>
                                <![CDATA[
                                    import mx.controls.Alert;
                                    import mx.controls.Text;
                                    import mx.events.FlexEvent;
                                    import mx.formatters.CurrencyFormatter;
                                    [Bindable]
                                    private var originalAmount:Number;
                                    private var amountFormatter:CurrencyFormatter = new CurrencyFormatter();
                                    protected function textinput1_focusOutHandler(event:FocusEvent):void
                                        var e:TextEvent = new TextEvent("amountEntered", true);
                                        var textField:TextField = event.target as TextField;
                                        var newAmount:Number = 0;
                                        if(!isNaN(parseFloat(textField.text))){
                                            newAmount = parseFloat(textField.text);
                                        e.text = new String((newAmount - originalAmount) + "");
                                        dispatchEvent(e);
                                    protected function textinput1_focusInHandler(event:FocusEvent):void
                                        var textfield:TextField = event.target as TextField;
                                        if(!isNaN(parseFloat(textfield.text))){
                                            originalAmount = parseFloat(textfield.text);
                                        } else {
                                            originalAmount = 0;
                                ]]>
                            </fx:Script>
                        </mx:TextInput>
                    </fx:Component>
                </mx:itemEditor>
            </mx:DataGridColumn>
        </datagrids:columns>
    Thanks for the help!

    I attempted to do as you said using the following code:
    override public function setFocus():void{
         stage.focus = amountTextInput;
         amountTextInput.setFocus();
    I also tried adding an event handler to my renderer to capture the focus in event and try the same thing:
    <s:MXAdvancedDataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
                                      xmlns:s="library://ns.adobe.com/flex/spark"
                                      xmlns:mx="library://ns.adobe.com/flex/mx"
                                      focusEnabled="true"
                                      focusIn="mxadvanceddatagriditemrenderer1_focusInHandler(event)">
    protected function mxadvanceddatagriditemrenderer1_focusInHandler(event:FocusEvent):void
         amountTextInput.setFocus();
    Neither of these solutions work. I could just go back to using the inline code, but I'd prefer to not copy and paste that code into several different grids.
    Thanks again for the help.

  • Why my textfield can not get focus?

    I put a textfield on the first tab of a tabbed panel. I need this textfield to get the focus when I open the first tab. I tried to use grabfocus() method in the constructor of class, but it does not work. Does anybody know why? and how can I solve it?
    Thanks!

    No, I didn't call grab/requestFocus on the event thread.
    My code is like this:
    public class GeneralPane extends JPanel {
    JPanel ltPane;
    private JTextField txtCountry;
    public GeneralPane() {
    initComponents();
    private void initComponents(){
    setLayout(new BorderLayout());
    //Add another Panel to contain Labels and Text fileds
    ltPane = new JPanel();
    FocusListener mFL = new FL();
    txtCountry = new JTextField("US", 20);
    //this listener is used to store the data in the textfield into a variable
    txtCountry.addFocusListener(mFL);
    // add the textfield into ltPane
    mUtil.insertTextPane(txtCountry,ltPane);
    //txtCountry got focus
    //txtCountry.setFocusable(true);
    ltPane.requestFocus();
    //txtCountry.requestFocusInWindow();
    Then in the main program, I create an instance of this class and then use addTab(...) function into the my tabbedPanel.
    The logic is simple, but the textfield still couldn't get focus when I open the tabbedPanel.

Maybe you are looking for