JCheckBox and focus issue

hi.
i am usign a JCheckBox as a button (legacy code) as it is a JToggleButton underneath.
it is in a row of 3 buttons and it iis in the middle. for some reason, i cna't seem to give it default focus. i have tryed setting hte focus, and setting hte default button, and adding it first in a BorderLayout.
is there anythign i can do?
thanks
-annA

You can only request focus on a component when it is visible.
Or you can add a WindowListener to the window and implement the windowOpened() method to request focus.
Or, you can override the addNotify() method of the component to request focus.

Similar Messages

  • Adobe Flash Pro CS6 -- cursor and focus issues

    This is OS specific as it works fine in the Snow Leopard.
    I am having issues with nearly everything involved with switching between apps / focusing on text windows / getting the cursor to appear where I click / etc since upgrading to Mountian Lion/Mavericks while using Flash Professional CS6. 
    Example problems:
    I click on the Flash icon in the menu bar (twice because the new Mac OS's have focus problems in the dock with mission control enabled) the OS will sometimes switch to the space containing Flash (sometimes not but let's focus on the Flash focus issues). I hover over the code window, I scroll with the mousewheel down the page to where I want to edit the code, I CLICK exactly where I want to paste it, hit cmd+C -- then it pastes the code NOT THERE but instead where the cursor was before (at the top of the page)... So essentially I have to double or triple click everything in Flash all the time. I just click like crazy anymore on everything all the time, but in Flash it's really unpredictable.
    This happens on both of my work computers (both 10.8.5)
    and my Mac Pro (10.9) but not my MacBook Pro that is still extremely fortunate enough to have 10.6 on it.

    What you need is an inner Graphic symbol. What I mean by Graphic symbol is when you select all your letters and hit "F8", choose "Graphic" instead of "MovieClip." In the properties panel, you'll see that one of the sections is called "Looping." Select"play once" (the default is "Loop"). Inside that graphic should be the animation of the letters moving in from left to right.
    On the outer timeline, put a keyframe at the same frame number where the Graphic's animation ends. Change the Looping to "Single Frame" and then type in the frame number of the last frame. You can then create a motion tween that animates the graphic symbol upward at its final frame.

  • Samsung Galaxy Note 3 Camera Flash and Focus Issues

    I have 2 issues with the Camera on my Note 3:
    1) The camera flash stops working on my Note 3 even when using another application like Flashlight. I need to turn off my phone and turn it back on for it to start working.
    2) The Camera takes a long time to take pictures and the pictures are often out of focus.
    Anyone else have these issues and know a solution?

        Hello Tazman4u, a working phone is super important! My apologies for the issues plagueing your device. Please test the phone in safe mode: http://vz.to/1aFxLK8 If issue persists, you will want to backup contacts, pics, and files to perform a hard reset: http://vz.to/1kpmPp0
    WiltonA_VZW
    VZW Support
    Follow us on twitter @VZWSupport 

  • Zoom, Crop and Focus Issue

    I took some pictures of my family zip lining.  I've cropped the pictures so that the zip liners fill most of the picture.  They are a bit blurry when I do this.  When I zoom in just a tad using iPhoto they come into focus.  No matter how close I crop the photo, however, they are never in focus.  Any ideas?

    Of course, doing a tight crop on a telephoto action shot might not be the sharpest to begin with!
    Remember the rule of thumb that the shutter speed should be 1/35-mm effective focal length, which might not be enough for action shots. (IS won't help you here!)
    Cropping effectively increases the focal length which makes the problem worse.

  • Lightroom and Windows mouse focus issues.

    In one aspect Lightroom have been always behaving different from other Windows application: Its speed of grabbing mouse focus and moving window to the foreground is exaggerated. This problem will be observed only by people using their WinXP computers in "X11 mode", like with Unix, what allows to perform interaction with processes associated with windows without ever clicking on, or raising such window. Should you be working on large computer clusters as I do, this focusing feature its a blessing.
    This how you can reproduce: Use Tweak UI to adjust the mouse behavior. Select "Mouse," step down to "X=Mouse" and check "Activation follows mouse." Do not select "autoraise."
    Now your WinXP will behave similar to the real X11 xterm with mouse having the "no raise selection" policy. Its not quite identical to xterm, but it really works perfectly in most cases.
    Except... well, except with Lightroom. Lightroom grabs the pointer and pushes the window to the foreground in splits of a second. For example, go to
    "Help|About Adobe Lightroom" to see the credit window. It appears than as usual, but since the help menu will be dismisses, the pointer stands on the main Lightroom window, what makes the credits window vanish in split of a second. No chance to see it!
    Another case: Assume that Lightroom uses almost the entire desktop down to the task bar, and your browser window is smaller. Select the browser on the taskbar and try to move mouse to it. No chance! Lightroom will take over and pop itself to the foreground again. The only solution is to minimize Lightroom. And than sometimes something happens that Lightroom will not restore itself anymore! The "Restore" operation is grayed out, one can only Maximize it. We have reported this numerous times before.
    I am aware that this problem relates only to WinXP users with X11 mouse mode, but with Lightroom reaching now a high degree of maturity, maybe we could take a look at this problem as well?

    In order to overcome most of the known navigation and/or focus issues you need to be using the following:
    <li>Forms 10.1.2.3 or newer (latest is 11.1.2). If/when you are using 10.1.2.3 you would also need to install patch ID 9593176 as this contains additional fixes for focus issues.
    <li>JRE 1.6.0_26 or newer (latest is 1.6.0_30). The latest is always recommended as it contains the most up to date fixes for both technical issues and security issues.
    Patches are only available on MyOracleSupport: http://support.oracle.com

  • Plazmic CDK 4.6 caret and focus button issues

    I hope I'm posting in the right thread? This is regarding the Plazmic CDK 4.6 for Blackberry - to create your own themes.
    Ok. I think I some what get the hang of Plazmic CDK 4.6 except for a few things.
    I use ArcSoft PhotoStudio to make color changes to certain things. However, in the Today style, when I try to change the 'caret' color, which is that selection bar, no matter how much I resize it, it always looks really thick, almost covering the top of the 2nd line (see image below).
    Also, when I try to change the focus circle, I open it with PhotoStudio and it changes the circle to this circle with a box around it, so when I try to change the color, it turns out like this (see picture below)
    I also have issues with using a transparent background if I upload and make minor changes to an icon (see picture below). So I found this american flag icon, altered the pic to make the colors darker, then it adds this white background instead of keeping it transparent.
    Is there a better program I could be using? Or any idea how to make these changes with this program? Or where can I find 'caret' and 'focus' icons so I don't have to worry about changing the colors.
    Sorry if I sound confusing, hopefully someone understands what I'm saying?
    Thanks!

    you can only use Plazmik, sorry.
    about transparency, when you use your drawing software and save the images, do you use a format that supports transparency ? There are two : GIF and PNG. All others add an opaque background color.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • JDesktopPane / JInternalFrames and Focus

    Hi,
    I am running into a confusing focus issue with JDesktopPane and JInternalFrames. The problem is that when I close a JInternalFrame that has the keyboard focus, the DesktopPane will activate another internal frame, but that internal frame doesn't get the keyboard focus. I thought that some of my extension classes might be screwing this up, but I can recreate the problem using just the basic JDesktopPane and JInternalFrame objects. Has anyone run into this before? If so, how have you gotten around it? I'm using JDK 1.5 and the default Metal LAF.
    I have included a little application that demonstrates the issue. Click on one frame, then click on another frame and close this frame. The first frame will be active (ie highlighted), but it doesn't own the keyboard focus. Acutally the first frame gains the focus and then immediately looses the focus.
    Thanks for any help,
    -Yeath
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class DesktopTest extends JFrame
       private JDesktopPane desktop_pane;
       private int number;
       public DesktopTest()
          super( "DesktopTest Application" );
          this.desktop_pane = new JDesktopPane();
          this.number = 0;
          this.getContentPane().setLayout( new BorderLayout() );
          this.getContentPane().add( this.desktop_pane, BorderLayout.CENTER );
          JMenuBar menu_bar = new JMenuBar();
          JMenu file_menu = new JMenu( "File" );
          file_menu.add( new AbstractAction( "New Frame", null )
             public void actionPerformed( ActionEvent e )
                newFrame();
          menu_bar.add( file_menu );
          this.setJMenuBar( menu_bar );
          for( int i = 0; i < 4; i++ )
             newFrame();
       private void newFrame()
          final JInternalFrame jif = new JInternalFrame( "Frame " + Integer.toString( number + 1 ), true, true, true );
          jif.getContentPane().setLayout( new BorderLayout() );
          JTextField jtf = new JTextField();
          jif.getContentPane().add( jtf );
          jif.setBounds( number * 30, number * 30, 150, 100 );
          jtf.addFocusListener( new FocusListener()
             public void focusGained( FocusEvent e )
                System.out.println( jif.getTitle() + " has gained the focus" );
             public void focusLost( FocusEvent e )
                System.out.println( jif.getTitle() + " has lost the focus" );
          this.desktop_pane.add( jif );
          jif.setVisible( true );
          this.number++;
       public static void main( String[] args )
          DesktopTest desktop = new DesktopTest();
          desktop.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
          desktop.setSize( 800, 800 );
          desktop.setVisible( true );
    }

    Thanks for the replies,
    This sounds very much like the bug that has already been reported. But the work around doesn't seem to solve the problem. I catch the internalFrameClosed() event, and have the newly selected frame request the keyboard focus. But still I run into the situation where the frame gets the focus and immediately looses it again. If you look at the debug statements when executing the app, you'll see what i mean.
    Here is my updated newFrame function
    private void newFrame()
       final JInternalFrame jif = new JInternalFrame( "Frame " + Integer.toString( number + 1 ), true, true, true, true );
       jif.getContentPane().setLayout( new BorderLayout() );
       final JTextField jtf = new JTextField();
       jif.getContentPane().add( jtf );
       jif.setBounds( number * 30, number * 30, 150, 100 );
       jif.addInternalFrameListener( new InternalFrameAdapter()
          public void internalFrameActivated( InternalFrameEvent e )
             jtf.requestFocusInWindow();
          public void internalFrameClosed( InternalFrameEvent e )
             JInternalFrame selected = desktop_pane.getSelectedFrame();
             if( selected != null )
                selected.requestFocus();
       jtf.addFocusListener( new FocusListener()
          public void focusGained( FocusEvent e )
             System.out.println( jif.getTitle() + " has gained the focus" );
          public void focusLost( FocusEvent e )
             System.out.println( jif.getTitle() + " has lost the focus" );
       this.desktop_pane.add( jif );
       jif.setVisible( true );
       this.number++;
    }When I run this, and close a frame, I get the following debug output: It is as if nothing owns the keyboard focus after closing a frame.
    Frame 2 has lost the focus
    Frame 1 has gained the focus
    Frame 1 has lost the focusThanks for your help,
    -Yeath

  • Firefox 3.6.8 and memory issues

    After the last update to 3.6.6, I disabled plugin-container per the instructions given on the forum, and my RAM problems went away. However, after the automatic update to 3.6.8, the memory problems came back, with memory usage going up to 92%. I downgraded to 3.6.4, and turned plugin-container off again; while memory usage is currently at 84%, it is not as low as it was before the upgrade to 3.6.8. (79-80%) (There is very little difference in the websites being opened on the various tabs.)
    == This happened ==
    Every time Firefox opened
    == I upgraded to 3.6.8

    ffs guys. It's a free browser. It's cool. We love it. But can we do something about memory issues? Almost every release has huge memory leaks.
    How about halving the release points and focus on memory issues for the other half of the time. I am a long time user since way back in the day and it seems to me that instead of trying to release so many versions, we should be focused more fixing the current release.
    I say put a moratorium on new features until bloat can be fixed. These experiences are starting to give me a hardon for IE again.
    Screw new features. I can deal with plain old tabs like they are. I don't need more bells and whistles. This browser has been kicking ass and taking names for a loonnnggggg time. We don't need more bloat. Keep the security fixes coming but everything else can wait. Take a breath. Stop and smell the roses for a few weeks.

  • SUGGESTION TO ADOBE: PLEASE CREATE A PROPER FORUM FOR SUBSCRIPTION AND BILLING ISSUES

    I think and many will agree, that it is about time that Adobe would create a forum just for subscription or billing issues.
    There are so many people looking for help that taking this issues to a specific forum, would help in reducing the signal to noise ratio and keep a focus on specific topics. Yes, Adobe should fix these issues and I am sure they are being address but creating proper channels would speed up support, from Adobe staff and from people that, for crazy reasons, volunteer here.
    I try to help, but sometimes just the Creative CLoud forum is like a raging river of people looking for help and if it was divided in some topics, it would be a great help. So:
    - Create a Creative Cloud membership and Billing issues: It is about time
    - How-to and technical issues are still well served by the topics.

    Hi Luis,
    Welcome to Adobe Forum,
    I completely apprehend your point of view, the billing issues deal with credit card information which are highly secured information, there is only one authorized group taking care of billing issues.
    Regarding Invoice issues, please feel free to raise it here, we do try to resolve them at the earliest.
    The direct link to Adobe Support is http://adobe.ly/yxj0t6
    Regards,
    Rajshree

  • Mouse Focus Issues

    hi,
    Are there any known mouse focus issues in r12 (r12.6) ?
    we have couple of users who have these problems. this isn't with all but few of them.
    thanks,
    jazz

    Jazz,
    Review the following documents, and see if it helps.
    Note: 457136.1 - On R12 Application, Randomly The Mouse Navigation Stops Working
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=457136.1
    Note: 468724.1 - Rel 12 : Mouse Cursor Is Frozen (Loss Of Focus In Applet) After Minimizing And On Restoring the Form To Normal Size
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=468724.1
    Note: 824000.1 - Unable to Use Mouse Cursor After Accessed on Folder Tools box
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=824000.1
    Regards,
    Hussein

  • Using webutil causes focus issues

    Hello,
    Many of us are familiar with the sporadic focus issue that can occur whereby you can use the keyboard to tab around a form but not the mouse. We have an existing function in our application which uses calls to Webutil functions (WEBUTIL_FILE.FILE_SAVE_DIALOG, WEBUTIL_FILE_TRANSFER.IS_AS_READABLE, EBUTIL_FILE_TRANSFER.AS_TO_CLIENT) to mediate a CSV export of data. We've noticed, since upgrading to 10.1.2.3 and the Sun JVM, that after performing this action, the focus problems occur i.e. mouse navigation no longer works.
    Has anyone else encountered this problem..? Or even better, have a suggested solution?
    Regards,
    James
    Apps Server: Forms and Reports Server 10.1.2.3
    JVM: Sun 1.6.0_14

    I face this problem and finally get the the solution it is:
    1- make keyboard navigable property for the blob item 'no' .
    2- create any item in the block of this blob and make it navigable 'yes' and visible 'yes' and width '0' and height '0'.
    and try and isa mouse navigation will work
    Feel free to contact me to inquire anything .

  • Should I spend the $280.00 to have Canon fix my 70D auto-focusing issue?

    Should I spend the $280.00 to have Canon fix my 70D auto-focusing issue? Or just return back to my very much trusted Rebels?
    Solved!
    Go to Solution.

    MelekalsCanon wrote:
    Very much appreciate your taking time to send a response. As a new user I wasn't sure if anyone would bother. Allow me to add a little more to my first post. I fit in that niche between amateur and a person with clients. For over 10 years I have covered events for a non-profit agency capturing the look and feel of 20+ events per year and was given permission to purchase a few cameras over the year. My decision from the beginning was to use the Canon Rebel. Images were spot on and only once did I have an issue with one of them (after shooting outside events in 105 degree temps for 3 days).
    So, when I retired a year ago it was for me a pretty simple choice to get a Canon for myself - especially since at that time the 70D was on the cover of magazines and was very highly touted. I also did a lot of desktop publishing and photo editing which helped me realize I wanted the best sensor, sharpness, resolution and lens I could afford - the 70D. My post was actually a result of reading many online responses including your very informative replies about the 70D focusing issues. My biggest concern is that I will spend several hundred dollars and maybe, just maybe get back a camera which captures better focused images, but still not as sharp as the lower end Rebels I was using. I had hoped to purchase my first "L" lens and really get excited - not repair the most expensive camera I've bought to date.
    Thanks again and before it gets noted by someone...yes, I should have pushed this issue sooner and then at least the warranty would have covered the cost. An expensivve lesson learned. But I will have to add that at least one authorized Canon repair dealer told me they have had several folks feel like I did - that it was the photographer/me as a new user having the issue and not the camera. I now know it's my camera.
    Let me clarify that I don't own a 70D, so anything I say about it is from watching what others have said, mainly in this forum. But it is disconcerting to see so much complaint about a camera that's supposed to have an innovative focusing system. One is strongly tempted to suspect that they went overboard in trying to make the camera serve both still  photographers and videographers.
    That said, I'm not a great fan of the Rebel line, because they lack autofocus microadjustment and I have at least one otherwise excellent Canon lens that would be useless without it. (The 70D does have AFMA, a point in its favor.)
    As far as spending the $280 for the repair, I understand why it's a hard call. If I were in your shoes and were convinced that Canon understands the issue and would fix it correctly and permanently, I guess I'd go for it. If you don't think they do, but fell that you need something a cut above the Rebels, this may be a good time to buy a leftover or refurbished 7D. Even though I now have a 5D3, I still use my 7D's a fair amount and have been very happy with them. And the 7D2 has gotten such a favorable reception that's it's almost bound to make more 7D's available at a decent price.
    Bob
    Boston, Massachusetts USA

  • Is there a fix for 5d ii focus issue

    Hello,  I just purchased the 5Dii used but the owner said the camera was working perfectly. I notice that when I take photos the photos do not look sharp. I am shooting in raw and using fast enough settings that they should be sharp. I tried different lenses and a tripod still same results when viewed at 100%. So I have been reading about the 5d ii having focus issues and was wondering if there is a fix to this problem? Also, I read that with 21 mp the photos won't look sharp in the view finder or when viewed at 100% has anyone else heard this?  Any suggestions would be helpful. I am thinking I need to return the item which is a shame, I was so excited to get the 5d ii and very disappointed to be having this issue.  

    I don't suggest using the viewfinder to judge quality of photos -- it's too small.  
    There are no focus "issues" with a 5D II -- it's an excellent camera.  It doesn't have the advanced focus system of the 5D III but if the focus points on your 5D II tell you that something is correctly focused then it should be correctly focused.
    There are NUMEROUS things that can cause problems (none of which are defects.)
    1)  If you allow the camera to auto-select it's focus point, remember that the camera will always pick the focus point which can lock focus at the closest focusing distance.  Suppose you're taking a photo of someone's face, but on the side of the frame there's a bush -- and that push is in far enough that one of the focus points is on the bush.  The camera will focus on the bush and NOT on your subject's face.  Usually you will want the camera to focus on the nearest subject, but when shooting shots with distracting elements in the frame which are closer then your intended subject, you need to pick the focus point you want the camera to use rather than allow it to auto-select the point.
    2)  If focusing at a particularly low focal ratio (especially at close distances) the depth of field can get REALLY thin.  If you want focus on your subject's eyes -- you will need to carefully position the focus point and lock focus on your subject's eyes -- otherwise you may end up getting a focus lock on their nose (as an example) and the eyes will be slightly soft.
    3)  In the default "one shot" mode, the camera will focus prior to taking the shot.  When focus lock is achieved the camera will stop adjusting focus.  If either you or your subject move after that point, the camera will NOT re-adjust -- you'll get  a soft shot.  With moderate f-stops usually a small movement wont change focus distance enough to matter -- this is mostly an issue at shallow f-stops.  But if shooting action where you KNOW your subject is moving and focus distance is changing, you need to use the "AI Servo" mode which continuosly updates focus.
    4)  Your 5D II allows you to adjust the focus accuracy of a lens.  Some lenses will routinely focus just slightly in front or behind your intended focus distance.  When you detect that you have a lens that does this, the camera can compensate.  This adjustment requires that you set up an accurate focus test to determine if an adjustment is needed and how much.  Do not attempt to make an adjustment by using regular every-day shots... use a carefully controlled focus target, tripod, etc.  There's a procedure for doing this.
    5)  If you suspect inaccuracy with focus points (and you really need to be careful to use controlled circumstances before arriving at such a conclusion) you can test by switching to "live view" mode to see if you get different results.  Live view mode does not use the phase-detect auto-focus points... it uses contrast-detection focus instead.  Contrast detection is slower but in theory should be able to provide more accurate focus as long as you have a subject with some decent contrast.  If live view is consistently outperforming the standard phase-detect AF mode then you may need to perform focus adjustment on your camera (this is specific to each lens you own... this is because each lens can behave differently.)
    Lastly... your camera records which AF points were used when it takes a photo.  This data can be displayed IF you use the Canon EOS Utility (which should have come with your camera).  It'll put the familiar focus array overlaying your photo and highlight the active point(s).  Just be aware that if you did a "focus and recompose" that the camera is going to report which focus point was used to lock focus but wouldn't know you recomposed the shot.  If you're not recomposing and your subject distance wasn't changing then the utility should be accurate.
    Incidentally, Apple's "Aperture" software also allows you to view the Canon focus point data.  As far as I'm aware, this is not available in Lightroom or Photoshop.
    Tim Campbell
    5D II, 5D III, 60Da

  • Firefox focus issues

    Hi!
    I have a sometimes very irritating problem with Firefox. I have a Logitech G7 mouse with a tiltable wheel that I've set up to change tabs in forefox, and a sidebutton that I use to close tabs with. I'm just using xbindkeys to bind the mouse buttons to ctrl+page up, ctrl+page down and ctrl+w. The thing is that firefox sometimes seems to loose focus, and ignores keyboard commands. For example when I close my current tab with my mouse or by pressing ctrl+w, and then try to close the next tab too, it doesn't work. I have to click on another window or on the desktop to make firefox loose focus, and then click on firefox again. Then it starts working temporarily again.
    I'm using Firefox 3.0b2 from AUR right now, but I had the same problem with Firefox 2 from extra too. I use gnome with metacity. I also have a couple of plugins installed, but I have tried without any plugins too. I also have the same problem on my laptop, and both my computers use Arch64.
    So, does anyone know a solution to this? It's not such a big deal really, but I gets really annoying sometimes.

    arnuld wrote:
    Aha... and I thought I am the only with Firefox issue
    I use "wmii" and my Firefox always looses focus. In wmii, you can change to different TAGS (like Desktops in GNOME) using "ALT-#" If i have 3 tags opened and Firefox is running on tag-2 and I go to tag-3 to check my messages in pidgin and come back with "ALT-2" I do not see Firefox. I see only border of Firefox and between the border i see my background wallpaper . Clickign with mouse does not bring the focus in anyway..... Quite funny though.. It is happening very frequently , nearly all the time, even if I kill Firefox using <killall firefox-bin> or <kill -9 PID> , the problem remains as it is when I start Firefox again :\
    This also seems to be a different problem from what I'm experiencing, but it seems like there are lots of different firefox focus issues. From your description it almost seems like firefox has crashed for you, since it is no longer drawing itself. Have you tried running firefox from a terminal, to see if you get any error messages?

  • Swing Applet - Internet Explorer - Focus issue - tool tips

    Hi ,
    We are using Swing applet in IE Browser , except this swing component rest of the components in the browser are HTML/DHTML components.
    and we are having issue focus issue with this swing components ,
    once immediately after launching the swing applet , the UI components are having some focus issue , if I bring the mouse on top of the swing UI components , we couldn't able to see the tooltips(flyover text) of those Swing UI components.
    However if we click some where on the Swing applet frame , we are able to see these tooltips(flyover text) .
    It looks like a kind of compatibility issue between swing and IE browser .
    I am trying to find a solution for this issue , so that once after launching the applet , tooltips will work without need to click on the applet bar.
    Can somebody share some thoughts on this issue??
    Thanks,
    Bonthu.

    As a wild guess you are mixing Swing and awt components which is a big no-no and among other things can cause repainting, refreshing issues.
    If you want more help then that you need to post some code that shows us what you are doing.

Maybe you are looking for