JTextArea never looses focus

I have a simple gui that is giving me problems, for some reason when I reset the componments one of my JTextAreas still has focus. If I go and click to write in JTextArea B, theres still another cusor in the A ..... ???? And when I go back to the A, and try to write in A, it appends in the B. Why would the cusor still thinks its in the other JTextArea, Basically now, I have two cusors in my Frame ......... Can any one help me ???
Thanks

Heres a sample of my code, cause the whole thing is way too long ....
     JPanel pEdit = new JPanel();
     static Document EDtaProbDoc;
     static Document EDtaInteDoc;
     static JScrollPane EDspProb           = new JScrollPane();
     static JScrollPane EDspInte           = new JScrollPane();
     static JLabel EDlbNoAppel                = new JLabel();
     static JLabel EDlbContact                = new JLabel();
     static JLabel EDlbNoCon                = new JLabel();
     static JLabel EDlbCli                = new JLabel();
     static JLabel EDlbTel                = new JLabel();
     static JLabel EDlbPost                = new JLabel();
     static JLabel EDlbDetEquip                = new JLabel();
     static JLabel EDlbDetProb                = new JLabel();
     static JLabel EDlbDetInte                = new JLabel();
     static JComboBox EDchNoAppel           = new JComboBox();
     static JTextField EDtfContact           = new JTextField();
     static JTextField EDtfTel           = new JTextField();
     static JTextField EDtfPost           = new JTextField();
     static JTextField EDtfAutre           = new JTextField();
     static JTextField EDtfCli                = new JTextField();
     static JTextField EDtfNoCon           = new JTextField();
     static JComboBox EDchDetEquip                = new JComboBox();
     static JTextArea EDtaDetProb                = new JTextArea();
     static JTextArea EDtaDetInte                = new JTextArea();
     static JButton EDbtSau                = new JButton();
/*********               ADDING TO PANEL ******************/
          pEdit.setLayout(null);
          EDlbNoAppel.setText("Number call");
          EDlbNoAppel.setBounds(new Rectangle(75, 38, 125, 23));
          EDlbContact.setText("Contact");
          EDlbContact.setBounds(new Rectangle(426, 38, 125, 23));
          EDlbNoCon.setText("No Contrat");
          EDlbNoCon.setBounds(new Rectangle(75, 75, 125, 23));
          EDlbCli.setText("Client");
          EDlbCli.setBounds(new Rectangle(75, 57, 125, 23));
          EDlbTel.setText("T�l�phone");
          EDlbTel.setBounds(new Rectangle(426, 58, 125, 23));
          EDlbPost.setText("Post");
          EDlbPost.setBounds(new Rectangle(426, 76, 125, 23));
          EDlbDetEquip.setText("Equipement");
          EDlbDetEquip.setBounds(new Rectangle(75, 110, 125, 23));
          EDlbDetProb.setText("Problem ");
          EDlbDetProb.setBounds(new Rectangle(75, 145, 125, 23));
          EDlbDetInte.setText("Intervention");
          EDlbDetInte.setBounds(new Rectangle(75, 300, 125, 23));
          EDchNoAppel.setBounds(new Rectangle(149, 41, 235, 20));
          EDtfContact.setBounds(new Rectangle(500, 44, 235, 20));
          EDtfNoCon.setBounds(new Rectangle(149, 79, 235, 20));
          EDtfCli.setBounds(new Rectangle(149, 61, 235, 20));
          EDtfTel.setBounds(new Rectangle(500, 62, 235, 20));
          EDtfTel.setToolTipText("Format (###)###-####");
          EDtfPost.setBounds(new Rectangle(500, 80, 235, 20));
          EDchDetEquip.setBounds(new Rectangle(186, 110, 550, 20));
          EDtaDetProb.setBounds(new Rectangle(77, 170, 657, 115));
          EDtaDetProb.setLineWrap(true);
          EDtaDetProb.setWrapStyleWord(true);
          EDspProb.setBounds(new Rectangle(77, 170, 657, 115));
          EDspProb.getViewport().add(EDtaDetProb, null);
          EDtaDetInte.setBounds(new Rectangle(77, 325, 657, 115));
          EDtaDetInte.setLineWrap(true);
          EDtaDetInte.setWrapStyleWord(true);
          EDspInte.setBounds(new Rectangle(77, 325, 657, 115));
          EDspInte.getViewport().add(EDtaDetInte, null);
          EDtaInteDoc = EDtaDetInte.getDocument();
          EDtaProbDoc = EDtaDetProb.getDocument();
          KeyStroke key = KeyStroke.getKeyStroke("ENTER");
          EDtaDetInte.getInputMap().put(key,"none");
          KeyStroke key1 = KeyStroke.getKeyStroke("ENTER");
          EDtaDetProb.getInputMap().put(key1,"none");
          EDbtSau.setText("Sauvegarder");
          EDbtSau.setToolTipText("Mise � jour de cet appel");
          EDbtSau.setBounds(new Rectangle(615, 450, 118, 30));
          EDbtSau.addActionListener(this);
          EDbtSau.setEnabled(false);
          EDtfCli.setEditable(false);
EDtfNoCon.setEditable(false);
EDchNoAppel.addItemListener(this);
EDchDetEquip.addItemListener(this);
          pEdit.add(EDchNoAppel, null);
          pEdit.add(EDtfContact, null);
          pEdit.add(EDtfNoCon, null);
          pEdit.add(EDlbNoCon, null);
          pEdit.add(EDlbContact, null);
          pEdit.add(EDlbNoAppel, null);
          pEdit.add(EDtfCli, null);
          pEdit.add(EDtfPost, null);
          pEdit.add(EDlbPost, null);
          pEdit.add(EDlbTel, null);
          pEdit.add(EDlbCli, null);
          pEdit.add(EDtfTel, null);
          pEdit.add(EDchDetEquip, null);
          pEdit.add(EDlbDetEquip, null);
          pEdit.add(EDlbDetProb, null);
          pEdit.add(EDtaDetProb, null);
          pEdit.add(EDtaDetInte, null);
          pEdit.add(EDbtSau, null);
          pEdit.add(EDlbDetInte, null);
/***********                ACTIONEVENT          *******************/     
          public void actionPerformed(ActionEvent e)
               Object obj = e.getSource();
               if (obj== EDbtSau)
                    setCursor(new Cursor(Cursor.WAIT_CURSOR));
                    if (ASGestAdm.SaveAs() == true)
                         emptyPanel("edit");
                         EDbtSau.setEnabled(false);
                    setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
     public void emptyPanel(String str)
               if (str.trim().equals("edit") )
                    EDtfCli .setText("");
                    EDtfContact.setText("");
                    EDtfNoCon.setText("");
                    EDchNoAppel.setSelectedIndex(0);
                    EDtfTel.setText("");
                    EDtfPost.setText("");
                    EDchDetEquip.removeItemListener(this);
                    EDchDetEquip.removeAllItems();
                    EDchDetEquip.addItemListener(this);
                    EDtaDetProb.setText("");
                    EDtaDetInte.setText("");
          PLUS I'M ONLY HAVING THIS PROBLEM ON THE SECOND RESET, THEN ON THE THIRD TIME THERE ARE CURSORS
          IN BOTH TEXTAREA ....
          THANKS AGAIN

Similar Messages

  • How a custom control is advised it gains or looses focus?

    Hey, at least I have a question to ask, instead of answering them... :-)
    Actually, I already asked it in another thread, in one of my answers: [onMouseClicked Event Is Failing To Fire|http://forums.sun.com/thread.jspa?threadID=5391008] but I fear it is lost in a rather lengthly message, so I ask it in its own thread, because I was to bring the attention of knowledgeable people (hello Sun people! :-D).
    The question is simple: In a custom control in JavaFX 1.2, with skin and behavior, how a control is advised when it gains or looses focus?
    The purpose is to let the skin to change the look of the component upon these events, like it is done for standard controls (eg. putting a border around the focused control).
    If the control is clicked, you know (unless it is disabled) that it will have the focus. But I see no way to see the lost of focus, nor when we gain (or loose) it with Tab/Shift+Tab (if it has focusTraversable to true).
    I looked for onFocus() and onBlur() events (or similar), but found nothing. No mixin, nothing related in javafx.scene.input.TextInput and friends, etc.
    I explored the Web but since 1.2 is still new, I found not much information. Only a fragment of source code in [Re: Further location optimizations|http://markmail.org/message/gsevtlkeq45rrdun] where I see scene.getFocusOwner() but this one isn't easily usable because it is package protected (and it is not an event, anyway).
    A possible solution would be to have a timer to inspect the state focused of the nodes, but it is so kludgy I didn't even tried to implement it!
    I hope I just missed the information... If there is no easy/official/working way in 1.2, I hope this will be corrected for next version!

    That's a very good remark, handling of focus highlight shouldn't be done at control (model)'s level. I hesitated to put it in behavior, but it feels more natural in the skin, so I did as you suggested.
    you'll need an interface, and JavaFX does not do thatYou have mixins. But I didn't used them here.
    focused variable never is set to trueHave you included the
    public override var focusTraversable = true;
    line?
    To support multiple skins, my control becomes:
    public class StyledControl extends Control
      // Data related to the control (the model)
      public var count: Integer;
      public override var focusTraversable = true;
      init
        if (skin == null)  // Not defined in instance
          // Define a default styler
          skin = ControlStyler {}
      package function Incr(): Void
        if (count < 9)
          count++;
    }quite bare bones (I intendedly keep the model simple).
    Note I still define a default skin in case user doesn't provide it: they shouldn't care about this detail unless they want to change it.
    I defined an abstract default skin, implementing most variables (particularly the public ones that can be styled) and the focus change:
    public abstract class DefaultControlStyler extends Skin
      //-- Skinable properties
      public var size: Number = 20;
      public var fill: Color = Color.GRAY;
      public var textFill: Color = Color.BLACK;
      public var focusFill: Color = Color.BLUE;
      package var mainPart: Node; // Decorations (id, focus) are kept out of layout
      package var focusHighlight: Node;
      package var idDisplay: Text;
      package var valueDisplay: Text;
      init
        behavior = ControlBehavior { info: bind control.id }
        node = Group
          //-- Behavior: call controller for actions
          onMouseReleased: function (evt: MouseEvent): Void
            (behavior as ControlBehavior).HandleClick(evt);
      postinit
        // Once defined by the sub-class, insert into the node
        insert [ mainPart, idDisplay, valueDisplay ] into (node as Group).content;
      public abstract function ShowIncrement(): Void;
      var hasFocus = bind control.focused on replace
        if (hasFocus)
          ShowFocus();
        else
          HideFocus();
      // Default handling of  focus display, can be overriden if needed
      public function ShowFocus(): Void
        insert focusHighlight into (node as Group).content;
      public function HideFocus(): Void
        delete focusHighlight from (node as Group).content;
      public override function contains(localX: Number, localY: Number): Boolean
        return mainPart.contains(localX, localY);
      public override function intersects(localX: Number, localY: Number,
          localWidth: Number, localHeight: Number): Boolean
        return mainPart.intersects(localX, localY, localWidth, localHeight);
    }and the concrete skins implement the mainPart, idDisplay, valueDisplay, focusHighlight nodes, override ShowIncrement with an animation, override getPrefWidth and getPrefHeight to set to mainPart size and might override ShowFocus or HideFocus (if we want it behind mainPart for example).
    The behavior is:
    public class ControlBehavior extends Behavior
      public var info: String; // Only for debug information...
      // Convenience vars, to avoid casting each time
      var control = bind skin.control as StyledControl;
      var csSkin = bind skin as DefaultControlStyler;
      public override function callActionForEvent(evt: KeyEvent)
        println("{info}{control.count}: KeyEvent: {evt}");
        if (evt.char == '+')
          Incr();
      package function HandleClick(evt: MouseEvent): Void
        control.requestFocus();
        Incr();
      function Incr(): Void
        control.Incr();
        println("{info}: Ouch! -> {control.count}");
        csSkin.ShowIncrement();
    }and knows only the abstract default skin (to apply feedback of user input to skin).
    I use it as follow:
    Stage
      title: "Test Styling Controls"
      scene: Scene
        width:  500
        height: 500
        content:
          HBox
            translateX: 50
            translateY: 100
            spacing: 50
            content:
              StyledControl { id: "Bar" },
              StyledControl { /* No id */ layoutInfo: LayoutInfo { vpos: VPos.BOTTOM } },
              StyledControl { id: "Foo" },
              StyledControl { id: "Gah" },
              StyledControl { id: "Bu", skin: AltCtrlStyler {} },
        stylesheets: "{__DIR__}../controlStyle.css"
    }BTW, I tried layoutY: 50 in place of the layoutInfo definition, but the control remained at default place. Am I reading incorrectly the ref. or is this a bug?

  • How to force a jtable to loose focus

    hi all
    i've got a jTextArea and a Jtable, and i want my jTable to loose focus when my JTextArea gains it
    i've the metod jTextAreaFocusGained(); what shall i write inside it to make the table loose focus?
    thanx
    sandro

    Hi,
    I guess, there is a missunderstanding in that, what you want to do and that, what you say, you want.
    The focus is a unique thing - only one component can have the focus at one time - so, when your textfield has gained focus, the component that formerly has had the focus, lost it already - so, there is nothing else to do.
    I guess, you want another thing, perhaps to clear the selection of the JTable or something like this.
    greetings Marsian

  • My windows keeps loosing focus when bluetooth goes active

    Hi, I have a problem with my bluetooth.
    When my bluetooth on my laptop goes active i.e. the "bluetooth B" in the bluetooth icon on the botton tray in Windows goes from white to green this problem accours. At that very moment, the current window I am working in goes inactive. If I am typing in a textbox for example and the bluetooth goes from "white to green", the textbox looses focus and I have to cklick it to resume my typing.
    How dow get rid of that problem and still have a reachable bluetooth device?
    Running on Windows XP Pro, laptop:
    Bluetooth Stack for Windows by Toshibe
    Version v4.42 (D)
    Bluetooth spec:
    Version 2.0, 1.2, 1.1
    Thanks!
    //Doman

    That could be the solution... but no luck..
    Now, I´m running with stack: v6.01.03(D)
    ...and the problem is still there.
    *More background:*
    I am using a SonyEricsson sync program, every morning I connect my mobile via this program. The program is set to autosync the first thing when it detecs the mobile via bluetooth. The laptop stays often in the it´s dock and when I leave it (with the mobile in my pocket) and come back, they find eachother again and the sync starts. This way I never need to start the sync by myself which I always forget otherwhise.
    The problem is that my computer sometimes checks if my mobile is still there (I suspect), and each time it starts to use the internal bluetooth device, the focus of current window I´m using is lost, this is of course very annoing when I´m writing something etc. This occurs regardless of the result of the search, ie regardless of it finds the phone or not.
    Is there any workaround without losing that my phone autoconnects with my computer and the sync starts?

  • Window looses focus seemingly at random

    This is very frustrating.  Whenever I am working in any application, the active window auto-magically looses focus.  I don't have a lot running by way of background processes and the computer is fairly new and running all latest software.  I can't figure out why.  Hoping someone from the Apple community can help out...
    Here is detailed information about my MacBook Pro:
    EtreCheck version: 1.9.11 (43) - report generated May 30, 2014 at 9:24:49 AM CDT
    Hardware Information:
              MacBook Pro (15-inch, Mid 2012)
              MacBook Pro - model: MacBookPro9,1
              1 2.3 GHz Intel Core i7 CPU: 4 cores
              8 GB RAM
    Video Information:
              Intel HD Graphics 4000 - VRAM: (null)
              NVIDIA GeForce GT 650M - VRAM: 512 MB
    System Software:
              OS X 10.9.3 (13D65) - Uptime: 0 days 17:58:47
    Disk Information:
              Crucial_CT240M500SSD1 disk0 : (240.06 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        disk0s2 (disk0s2) <not mounted>: 239.2 GB
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              MATSHITADVD-R   UJ-8A8 
    USB Information:
              Logitech USB Receiver
              Apple Inc. FaceTime HD Camera (Built-in)
              Apple Inc. BRCM20702 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Computer, Inc. IR Receiver
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
    Configuration files:
              /etc/sysctl.conf - Exists
    Gatekeeper:
              Anywhere
    Kernel Extensions:
              [kext loaded] com.Logitech.Control Center.HID Driver (3.9.1 - SDK 10.8) Support
              [kext loaded] com.Logitech.Unifying.HID Driver (1.3.0 - SDK 10.6) Support
              [kext loaded] com.epson.driver.EPSONProjectorAudio (1.30 - SDK 10.4) Support
              [kext loaded] com.pgp.iokit.PGPdiskDriver (10 - SDK 10.8) Support
              [kext loaded] com.pgp.kext.PGPnke (1.1.3 - SDK 10.8) Support
              [kext loaded] com.plantronics.driver.PlantronicsDriverShield (4.3 - SDK 10.8) Support
              [not loaded] com.symantec.kext.SymAPComm (12.2f1 - SDK 10.6) Support
              [kext loaded] com.symantec.kext.internetSecurity (5.2f1 - SDK 10.6) Support
              [kext loaded] com.symantec.kext.ips (3.5f1 - SDK 10.6) Support
              [kext loaded] com.symantec.kext.ndcengine (1.0f1 - SDK 10.6) Support
    Startup Items:
              ciscod: Path: /System/Library/StartupItems/ciscod
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist Support
              [loaded] com.barebones.authd.plist Support
              [running] com.cisco.anyconnect.vpnagentd.plist Support
              [loaded] com.google.keystone.daemon.plist Support
              [running] com.manageengine.desktopcentral.dcagentservice.plist Support
              [loaded] com.manageengine.desktopcentral.dcagentupgrader.plist Support
              [loaded] com.microsoft.office.licensing.helper.plist Support
              [loaded] com.oracle.java.Helper-Tool.plist Support
              [loaded] com.oracle.java.JavaUpdateHelper.plist Support
              [loaded] com.pgp.framework.PGPwde.plist Support
              [running] com.pgp.wde.pgpwded.plist Support
              [loaded] com.symantec.liveupdate.daemon.ondemand.plist Support
              [loaded] com.symantec.liveupdate.daemon.plist Support
              [not loaded] com.symantec.sep.migratesettings.plist Support
              [running] com.symantec.sharedsettings.plist Support
              [running] com.symantec.symdaemon.plist Support
              [not loaded] com.teamviewer.teamviewer_service.plist Support
              [loaded] com.tunnelbear.mac.tbeard.plist Support
              [loaded] com.wuala.WualaFS.KextLoaderHelper.plist Support
              [loaded] org.macosforge.xquartz.privileged_startx.plist Support
    Launch Agents:
              [loaded] com.cisco.anyconnect.gui.plist Support
              [loaded] com.google.keystone.agent.plist Support
              [running] com.Logitech.Control Center.Daemon.plist Support
              [not loaded] com.maintain.PurgeInactiveMemory.plist Support
              [not loaded] com.maintain.Restart.plist Support
              [not loaded] com.maintain.ShutDown.plist Support
              [running] com.maintain.SystemEvents.plist Support
              [loaded] com.oracle.java.Java-Updater.plist Support
              [running] com.pgp.pgpengine.plist Support
              [running] com.symantec.uiagent.application.plist Support
              [not loaded] com.teamviewer.teamviewer.plist Support
              [not loaded] com.teamviewer.teamviewer_desktop.plist Support
              [running] jp.co.canon.SELPHYCP.BG.plist Support
              [failed] org.gpgtools.gpgmail.enable-bundles.plist Support
              [loaded] org.macosforge.xquartz.startx.plist Support
    User Launch Agents:
              [loaded] com.adobe.ARM.[...].plist Support
              [loaded] com.citrixonline.GoToMeeting.G2MUpdate.plist Support
              [loaded] com.valvesoftware.steamclean.plist Support
    User Login Items:
              UNKNOWN
              Plantronics
              iTunesHelper
              Quicksilver
              Dropbox
              aText
              Box Sync
    Internet Plug-ins:
              JavaAppletPlugin: Version: Java 7 Update 55 Check version
              nplastpass: Version: 2.5.5 Support
              Default Browser: Version: 537 - SDK 10.9
              F5 SSL VPN Plugin: Version: 7080.2013.0319.1 Support
              AdobePDFViewerNPAPI: Version: 11.0.07 - SDK 10.6 Support
              FlashPlayer-10.6: Version: 13.0.0.214 - SDK 10.6 Support
              Silverlight: Version: 5.1.30317.0 - SDK 10.6 Support
              Flash Player: Version: 13.0.0.214 - SDK 10.6 Support
              QuickTime Plugin: Version: 7.7.3
              SharePointBrowserPlugin: Version: 14.4.2 - SDK 10.6 Support
              AdobePDFViewer: Version: 11.0.07 - SDK 10.6 Support
              MeetingJoinPlugin: Version: (null) - SDK 10.6 Support
    Safari Extensions:
              LastPass: Version: 3.1.21
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 2.0 - SDK 10.9
              AppleAVBAudio: Version: 203.2 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins:
              Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    User Internet Plug-ins:
              WebEx64: Version: 1.0 - SDK 10.6 Support
              CitrixOnlineWebDeploymentPlugin: Version: 1.0.105 Support
              f5 sam inspection host plugin: Version: 7060.2013.0312.1 Support
              Google Earth Web Plug-in: Version: 7.1 Support
    3rd Party Preference Panes:
              Flash Player  Support
              Java  Support
              Logitech Control Center  Support
              Plantronics  Support
              Symantec QuickMenu  Support
    Time Machine:
              Mobile backups: OFF
              Auto backup: YES
              Volumes being backed up:
              Destinations:
                        Time Machine [Local] (Last used)
                        Total size: 1 
                        Total number of backups: 16
                        Oldest backup: 2013-10-23 15:56:24 +0000
                        Last backup: 2014-05-27 20:27:27 +0000
                        Size of backup disk: Excellent
                                  Backup size 1  > (Disk size 0 B X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
    Top Processes by CPU:
                   3%          WindowServer
                   1%          Box Sync Monitor
                   1%          Box Sync
                   1%          fontd
                   0%          SystemUIServer
    Top Processes by Memory:
              246 MB          WindowServer
              197 MB          mds_stores
              169 MB          Airmail
              115 MB          Microsoft Outlook
              98 MB          Safari
    Virtual Memory Information:
              3.56 GB          Free RAM
              2.49 GB          Active RAM
              515 MB          Inactive RAM
              982 MB          Wired RAM
              1.74 GB          Page-ins
              40 KB          Page-outs

    ... I don't have a lot running by way of background processes
    There are many background processes running on that Mac. The following will determine its peformance without several that are likely to be causing the problem.
    Please determine if the problems also occur in "Safe Mode":
    Safe Mode or "Safe Boot" is a troubleshooting mode that bypasses all third party system extensions and loads only required system components. Read about it: Starting up in Safe Mode
    You must disable FileVault before you can start your Mac in Safe Mode.
    Starting your Mac in Safe Mode will take longer than usual, graphics will not render smoothly, audio is disabled on some Macs, and some programs (iTunes for example) may not work at all.
    Merely starting your Mac in Safe Mode is not intended to resolve the problem, it's to observe its performance without certain additional components.
    To end Safe Mode restart your Mac normally. Shutdown will take longer as well.

  • Find feature looses focus while typing a phrase, after typing the first space character.

    The find feature now looses focus while I am entering a phrase. After entering the first word of a phrase and the space character, the find box will reposition itself to a possible result on the web page on EVERY CHARACTER and I have to reposition the cursor BACK to the find box to enter every subsequent character in the phrase I am searching for. Is there a way I can turn this useless (for me) *feature* off?
    I used to be able to key the phrase I was looking for, and the box would turn red as I typed if the phrase did not exist. I would really appreciate being able to do this again. It now seems that Firefox 'jumps the gun' to find the phrase before I have completed typing it in.
    Thanks.

    *If you have many extensions then first enable half of the extensions to test which half has the problem.
    *Continue to divide the bad half that still has the issue until you find which one is causing it.

  • CS4 Exporting media Loosing Focus

    Hi
    When exporting media to the media encoder I am finding that I am loosing focus of the rendered file in flash.
    the original size of footage is 1920 X 1080 I have croped this to an area of the footage that I require 720 x 640 and changed the out put size to the same.
    when this is rendered out the image is blury.
    how can I change the settings to be in focus as the original footage is in focus.
    Thanks
    Rodney

    Hi Hunt
    the flash settings that I am using are
    using flash 8 and higher
    I am encoding using the alpha channel due to the footage is keyed out
    the frame rate is 1200
    I have resized to 640 x 720 from 1920 x 1080 and also croped the footage as well to the same size
    Thanks
    Rodney

  • Firefox looses focus - titlebar at top goes grey - if a new website is visited.

    If, say, the URL of a web site is put in the address bar and Firefox opens it in a new tab in the normal way then the firefox window looses focus, the window's bar at the top greys out. I have to click the page to restore focus.
    This has a much greater irritation value than it may sound.
    Same thing with clicking a website from, say, google.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    *Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Closing when loosing focus

    Hi, how should I do to close a JFrame when it looses focus? In my app, there are times when i have more then 2 JFrames open at the same time, and I need a way to close one of them whenever it looses focus.
    Hope you can help me.

    JFrame frame1 = new JFrame("Frame1");
    frame.addFocusListener(this);
    void focusGained(FocusEvent e)
    void focusLost(FocusEvent e)
    dispose();

  • Safari looses focus randomly

    when i use safari 7.0.4 in mavericks 10.9.3 on rMBP the window turns light gray (loosing focus) at random times. i click on the window and it comes right back up. i have no extensions turned on and removed the ones i did have as a troubleshooting step, did not fix issue. is anyone else having this issue? this only happens in safari, all other applications are not effected by this. this is an annoying issue but liveable. hopefully it will be fixed one day.

    Reset Safari.
    Click Safari in the menu bar.
    From the drop down select "Reset Safari".
    Click "Reset".
    Empty Caches.
    Safari > Preference > Advanced
    Checkmark the box for "Show Develop menu in menu bar".
    "Develop" menu will appear in the Safari menu bar.
    Click Develop and select "Empty Caches" from the dropdown.

  • ADF AutoSubmit True column Loosing Focus after hitting Tab

    Hi,
    I am on 11.1.2.2.0. I have implemented af:table component and inside table on few columns I have autoSubmit="true" immediate="true" . After entering values into those columns when I hit Tab (To go to next field in table) , it goes to next field and looses focus. Is there any work around or fix to overcome this issue ?
    Thanks and Regards,
    Jit

    Hi,
    Thanks for the links. My requirement is to set focus inside af:table. Inside table I have say 5 fields.
    3rd Field is LOV and 4th fields is Text. After entering LOV info in Field3 focus should go to field4(which is inputText).
    I tried
    Frank's Blog
    https://blogs.oracle.com/jdevotnharvest/entry/how_to_programmatically_set_focus
    AMIS Blog
    http://technology.amis.nl/2008/01/04/adf-11g-rich-faces-focus-on-field-after-button-press-or-ppr-including-javascript-in-ppr-response-and-clientlisteners-client-side-programming-in-adf-faces-rich-client-components-part-2/
    This works for ADF Form entry. When I tried implement this in table the field id(eg it4) is not picked.
    I found other blog for where it is mentioned field id dwill be different in case of Table.
    http://www.bartkummel.net/2009/11/oracle-adf-set-focus-to-input-field-in-data-table/#respond
    Do you have any idea how to get Table id or help in building this field id in Table ?
    Thanks and Regards,
    Jit

  • Focusable JTextArea not gaining focus.

    I am creating a JTextArea and want to give it the focus when it's created. THis happens twice in the program, and the first time it works, the second time the JTextArea is created but doesn't get the focus until I click on it.
    In both cases the code is called from the Swing event queue (see the output below). In both cases the class which creates the jTextArea is the same (an extension of JPanel), and is added to a new tab in a tabbed pane.
    Because I know that you need to make sure that the component's been created before it gets focus, the code to create it and give it focus is:
    private javax.swing.JTextArea jtaInfo;
    // Class constructor for outer class
      public PanelInfo(String s, boolean editable ) {
        initComponents();  // this is the NetBeans call which creates jtaInfo and a few buttons
        jtaInfo.setText(s);
        jtaInfo.setEditable(editable);
        setVisible(true);
        selectTextBox();
      public void selectTextBox() {
        UtilFunctions.tcaProgramInfoMessage("selectTextBox thread="+Thread.currentThread().getName());
        SwingUtilities.invokeLater(new Runnable() {
          public void run() {
            UtilFunctions.tcaProgramInfoMessage("Runnable thread="+Thread.currentThread().getName());
            UtilFunctions.tcaProgramInfoMessage("Info frame focusable: "+jtaInfo.isFocusable());
            if (!jtaInfo.requestFocusInWindow()) {
              UtilFunctions.tcaProgramInfoMessage("Failed to give info pane focus");
      }The UtilFunctions.tcaProgramInfoMessage call produces output with a timestamp.
    The output is:
    Sat Nov 11 11:25:38 GMT 2006: selectTextBox thread=AWT-EventQueue-0
    Sat Nov 11 11:25:38 GMT 2006: Runnable thread=AWT-EventQueue-0
    Sat Nov 11 11:25:38 GMT 2006: Info frame focusable: true
    Sat Nov 11 11:25:44 GMT 2006: selectTextBox thread=AWT-EventQueue-0
    Sat Nov 11 11:25:44 GMT 2006: Runnable thread=AWT-EventQueue-0
    Sat Nov 11 11:25:44 GMT 2006: Info frame focusable: true
    Sat Nov 11 11:25:44 GMT 2006: Failed to give info pane focus
    So it seems that the threads are OK, and the area is focusable, but I can't work out why one succeeds and the other fails. The program's too huge to post here - I may be able to cut it down to size. But is there anything obvious that I might be doing wrong?

    Because I know that you need to make sure that the component's been created before it gets focus,Actually the parent frame or dialog must be "realized" (maybe thats what you mean by "created") before a component can receive focus. This basically means that you've done a pack() or setVisible(true) on the frame. Using setVisible(true) on the actual component does nothing since by default all JComponents are visible.
    The program's too huge to post here - I may be able to cut it down to sizeI fail to see why its so difficult to create a short demo program showing the problem. The code you posted doesn't help because we don't know the context of how the code is executed.
    Below is a simple demo that shows an incorrect version and a correct version in 10 lines of code. So if this code doesn't help solve the problem you will now need to wait hours again until you post a version of your code that does demonstrate the problem. Whereas if you had spent 5-10 minutes to create a demo that doesn't work I may have been able to help you out right now.
    Simplify your problems and the answer will also be simpler.
    import java.awt.*;
    import javax.swing.*;
    public class FocusTest
         public static void main(String[] args)
              JTextField textField1 = new JTextField("One");
              JTextField textField2 = new JTextField("Two");
              JTextField textField3 = new JTextField("Three");
              JFrame frame = new JFrame();
              frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              frame.getContentPane().add(textField1, BorderLayout.NORTH);
              frame.getContentPane().add(textField2, BorderLayout.CENTER);
              frame.getContentPane().add(textField3, BorderLayout.SOUTH);
              // This doesn't work
              textField3.requestFocusInWindow();
              frame.pack();
              // This does work
    //          textField3.requestFocusInWindow();
              frame.setLocationRelativeTo(null);
              frame.setVisible(true);
    }

  • JTextArea not gaining focus

    I have a tabbed pane consisting of 2 JPanels. Each panel has a text area (within a scrollpane) on both.
    All I want is for the text area to gain focus when its tab has been clicked.
    I've tried adding a changelistener to the tabbedpane:
            tabbedPane.addChangeListener(new ChangeListener() {
                public void stateChanged(ChangeEvent e) {
                    if (tabbedPane.getSelectedIndex() == 0) {
                        textArea1.requestFocus();
                    else {
                        textArea2.requestFocus();
            });but the textareas don't get focus. They do when I press <TAB> but this isn't much use.
    Does anyone have any ideas how I can get the textareas to gain focus?

    import javax.swing.*;
    import javax.swing.event.ChangeListener;
    import javax.swing.event.ChangeEvent;
    import java.awt.*;
    public class TestFocusTabbedPane extends JTabbedPane {
         private JTextArea theFirstTextArea;
         private JTextArea theSecondTextArea;
         public TestFocusTabbedPane() {
              super();
              JPanel tabPanel = new JPanel(new BorderLayout());
              tabPanel.add(new JButton("just for test"), BorderLayout.NORTH);
              theFirstTextArea = new JTextArea();
              theFirstTextArea.setFocusable(true);
              tabPanel.add(new JScrollPane(theFirstTextArea), BorderLayout.CENTER);
              addTab("first", tabPanel);
              tabPanel = new JPanel(new BorderLayout());
              tabPanel.add(new JButton("just for test"), BorderLayout.NORTH);
              theSecondTextArea = new JTextArea();
              theSecondTextArea.setFocusable(true);
              tabPanel.add(new JScrollPane(theSecondTextArea), BorderLayout.CENTER);
              addTab("second", tabPanel);
              addChangeListener(new ChangeListener() {
                   public void stateChanged(ChangeEvent e) {
                        int index = getSelectedIndex();
                        if (index == 0) {
                             theFirstTextArea.requestFocus();
                        } else {
                             theSecondTextArea.requestFocus();
         public static void main(String[] args) {
              final JFrame frame = new JFrame(TestPressedButton.class.getName());
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.getContentPane().add(new TestFocusTabbedPane());
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        frame.pack();
                        frame.show();
    }This seems to work. I added the JButton just to show that it doesn't get the focus

  • How to use tab key with JTextArea to shift focus

    Hi
    My problem is simple as whenevr i use tab key in my JTextArea, instaed of shifting focus to next component, it adds a tab space to my text.
    How do i shift focus out of my JTextArea.
    Ashish

    you can also redefine the textarea's TAB Key behaviour. The tutorial has a good example for that - better than i would be able to describe :-)
    look at http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html

  • Loosing focus when quiting

    Hello,
    Can someone help me with the following problem? How can I force a JTextField to loose it's focus when I am quiting the program by clicking the x-icon?
    thanks
    Stef

    Hello.
    Add a mouse listener to your x-icon and in the mouse released method add this block
    component.requestFocus();
    which component can be any swing component like Jframe.

Maybe you are looking for

  • How to clear cache for items after submitting the page ?

    db11gxe , apex 4.0 , firefox 24 , hi all , i have a non enterable pop-up lov and a report in the same page , and i search with the pop-up item , but the problem is when i click the search button , the value in the pop-up is not deleted , and sure i w

  • Sun IdM - Remedy - Active Sync

    Hi, I'm trying to run Active Sync for Remedy system via RemedyResourceAdapter. The issue that I'm facing is when I run the active sync, it establishes the connection with the Remedy database but doesn't bring me the necessary attributes that I have s

  • Mesh Tool distorting artwork.

    After I finished doing my design using the "Mesh Tool" and reduced the size of the hole piece, the Mesh is converted from organic shapes into straight lines. Which makes all my work useless. Does any one knows how to fixe that?

  • Signing into iCloud with a new sign in.

    I have recently changed my AppleID and signed out of the Mac ICloud selecting "delete" on all the prompts.  I have signed in using the correct new AppleID and password but on the sign in screen the "loading circle" has been showing for the last hour.

  • Keyboard Layout files directory ?

    Hi all, I recently got an english/arabic keyboard. I've noticed a slight layout issue with the "Arabic-PC". It appears the best of the default arabic layouts. I can easily correct thing with using Ukelele. The issue is I'm unable to locate the Arabic