Forcing ComboBox to lose its focus when isPopupVisible()==false

Hi,
I'm in a situation where I need to force my comboBox to lose its focus, in a case when user clicks the comboBox to pull down the popup but does not click any value inside the comboBox popup. In such a situation I need to force the comboBox to lose its focus.
I looked for some method like setFocus in comboBox api, but did not find anything such.
appreciated..

import javax.swing.*;
import javax.swing.table.*;
public class JTableComboSSCCE extends javax.swing.JFrame {
    JTable table;
    DefaultTableModel model;
    public JTableComboSSCCE() {
        initComponents();
        createTable();
    public void createTable() {
        model = new DefaultTableModel();
        model.addColumn("Name");
        model.addRow(new Object[]{"Julia"});
        model.addRow(new Object[]{"Sara"});
        model.addRow(new Object[]{"David"});
        model.addRow(new Object[]{"Mauricio"});
        model.addRow(new Object[]{"Tina"});
        table = new JTable(model);
        scrollPane.setViewportView(table);
        TableColumn firstColumn = table.getColumnModel().getColumn(0);
        JComboBox comboBox = new JComboBox();
        comboBox.addItem("Snowboarding");
        comboBox.addItem("Teaching high school");
        comboBox.addItem("None");
        firstColumn.setCellEditor(new DefaultCellEditor(comboBox));
    void updateTable() {
        model.removeRow(4);
    private void initComponents() {
        scrollPane = new javax.swing.JScrollPane();
        jButton1 = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosed(java.awt.event.WindowEvent evt) {
                formWindowClosed(evt);
        jButton1.setText("Update Table");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
        jLabel1.setText("1- Click the last row, but do not pick any value, then click outside the table");
        jLabel2.setText("2- Click Update Table button, then click any row to edit cell");
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(scrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 670, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 469, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 52, Short.MAX_VALUE)
                .addComponent(jButton1)
                .addGap(29, 29, 29))
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(24, 24, 24)
                        .addComponent(jButton1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addContainerGap(37, Short.MAX_VALUE)
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel2)
                .addGap(15, 15, 15)
                .addComponent(scrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE))
        pack();
    private void formWindowClosed(java.awt.event.WindowEvent evt) {
        this.dispose();
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
        updateTable();
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new JTableComboSSCCE().setVisible(true);
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JScrollPane scrollPane;
}

Similar Messages

  • Forcing JFrame to lose its focus programatically

    Hello everyone,
    I have a JFrame with a button over it. Now I wants that when I click on the button,
    my JFrame should lose its focus.
    Can anybody tell me whether it is possible in java or not?
    Thanks in advance.

    It depends upon the underlying OS
    On Windows XP it goes to the last application which was in focus.
    For eg- If I first open up a notepad and after that my java application the once my application loses its focus it should go to notepad.
    But i think that will be handled by the OS itself because when you minimizes an application then the application which had the focus before this one will automatically get the focus.

  • Adobe LiveCycle loses its mind when generating the XML source

    Could somebody tell me what is causing Adobe LiveCyle to lose its mind and generate hundreds of lines that are merely repeats of this:
    <?templateDesigner StyleID aped0?>
    Here's an example of what it looks like for one field on a form.  The tag is border. 
    <border presence="hidden">
    The line is repeated 250 times !! 
    Is this a LiveCycle bug or did I do something screwy to cause this? 
    Could I just delete the duplicate lines from the XML?
      <field minH="8.2042mm" minW="33.02mm" name="CPN" x="99.1101mm" y="8.2042mm">
    <ui>
    <textEdit>
    <border presence="hidden">
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?>
    <?templateDesigner StyleID aped0?></border>
    <margin/>
    </textEdit>
    </ui>
    <font typeface="Arial" weight="bold"/>
    <margin bottomInset="0.254mm" leftInset="1mm" rightInset="1mm" topInset="1mm"/>
    <para vAlign="middle"/>
    <caption placement="top" reserve="2.54mm">
    <font baselineShift="0pt" size="5.8pt" typeface="Arial"/>
    <para marginLeft="0pt" marginRight="0pt" spaceAbove="0pt" spaceBelow="0pt" textIndent="0pt" vAlign="middle"/>
    <value>
    <text>4. COMPLAINT NO</text>
    </value>
    </caption>
    <border>
    <edge presence="hidden"/>
    <corner presence="hidden"/>
    <edge/>
    <edge/>
    <edge presence="hidden"/>
    <corner/>
    <corner/>
    <corner presence="hidden"/>
    </border>
    <event activity="enter">
    <script contentType="application/x-javascript">if (testscripts.enterFld(this)) {
    var back="parent.Ten98";
    var next="parent.IncidentNature";
    jscripts.setTab(this,next,back);
    jscripts.boxEdges(this);
    }</script>
    </event>
    <event activity="exit">
    <script contentType="application/x-javascript">if (testscripts.exitFld(this)) {
    this.rawValue = IncidentNumber.formatIncNum(this.rawValue);
    MNPD.Form130.MNPDTrackingNumber.rawValue = TrackingNumber.createTrackingNumber("AFR-FORM130",
    MNPD.ND_Host.rawValue,
    MNPD.ND_atsEmployeeNumber.rawValue,
    this.rawValue);
    console.println(MNPD.Form130.MNPDTrackingNumber.rawValue);
    xfa.resolveNode("MNPD.#pageSet[0].PageArea1.CPN").rawValue = this.rawValue;
    var r = testscripts.validateFld(this);
    jscripts.unboxEdges(this);
    testscripts.stepFld(this,r);
    }</script>
    </event>
    <event activity="change">
    <script contentType="application/x-javascript">xfa.resolveNode("MNPD.#pageSet[0].PageArea1.CPN"). rawValue = this.rawValue;</script>
    </event>
    <bind match="none"/>
    </field>

    That was a bug in ES and was fixed in SP2..
    http://blogs.adobe.com/ADEP/2009/03/post.html
    Either you can manually delete those statements or upgrade your Designer with SP2.
    Thanks
    Srini

  • Firefox loses window focus when I switch Windows user accounts

    If I have Firefox running in one Windows account and switch to another account (where I don't use Firefox) and then switch back to the account where Firefox is running, and then I open a new Firefox window, Firefox loses focus (in other words, I cannot use the new window unless I first bring it back into focus on the Desktop.) ...and, no, it is not a Windows issue, as other program behave a expected. It's just Firefox that does this. Highly annoying, btw.
    [Oh, and, mods, please reopen my previous thread, I wasn't done with it, thanks.]

    Threads are automatically locked after 6 months and that older thread was started Sunday January 19, 2014.
    This thread was archived:
    *[[/questions/983798]]
    We moderators can't reopen such an archived thread, but can add a link to a new thread if necessary.
    How do you open that new window?
    Is that by clicking the Firefox desktop shortcut or via the Firefox File menu or a toolbar button?

  • Illustrator CS6 loses keyboard focus when using an extension panel

    OS10.8.2 CS6. When clicking a button on any extension panel (even supplied Kuler), it seems that Illustrator can't get keyboard focus until something else on the screen is clicked. Anyone know a way to fix this? I need to be able to use the keyboard to copy or delete a selected object right after running script....
    Tried running a javascript inline with app.activate() command. Didn't work. Help!!!!

    I noticed the problem too. Is there any fix or workaround? Friends using Windows say that all is ok.
    Linux x86_64 (Gentoo), Firefox 3.5.1, jre 1.6.0.15.

  • Is there a way to force SpeedGrade to update its display when it fails to?

    I'm on a Retina MacBook Pro, and I've turned of GPU acceleration for SpeedGrade per Adobe's instructions, so it won't crash immediately every time I try to open any sequence.
    But I still have a problem: when I draw a mask on the Primary layer, and click the "Apply grading layer to the inside of the mask" button, most of the sliders I use don't have any effect at all. Until, eventually, the screen updates to show what I've done. But sometimes it just never does.
    And I'm definitely using SpeedGrade correctly; it's just that the display only sometimes updates. I mean, I can drag Input Saturation ALL the way to the right, then toggle the Primary layer on and off a few times...and then suddenly the person's face turns orange. But only after I click around for a while and wait.
    What's wrong? Will these problems go away once GPU acceleration is fixed for Intel Iris graphics on the Retina MacBook Pro? Or...?
    I have to say, frankly, that while I love the idea of SpeedGrade, between (months ago) very, very long waits (literally ten minutes) to open a project via Dynamic Link, to the frequent crashes, to this problem now, that I've never been able to simply use SpeedGrade as intended. Every single time I've opened it in the last year, I've had a string of problems. Meanwhile, while I've had some issues with Premiere, it's generally been reliable and a pleasure to use, just like Media Encoder and many other parts of the suite. So when is SpeedGrade going to get the same bugfixing love the other apps get?
    And in the meantime, what can I do to get SpeedGrade working??

    Speedgrade uses some of similar back-coding to PrPro, but much of it is quite different. So the melding of the two within a Direct - to - Sg link workflow (as it seems you are using) is a bit ... complicated. And clearly still uses more and in some cases specific resources than would be used in either program run alone. That said, there's a couple things that might help you.
    First ... after the "handoff", when you are looking at a Speedgrade UI with your project loaded, close down ALL other apps open, including but ESPECIALLY PrPro. Sg will start up PrPro for you when you click on the icon to save & return to PrPro. This helps a lot of the time.
    Second ... realize that masking within a DL session is ... difficult ... for the program to handle and may overtax your laptop's capabilities. They've improved the abilities of masks to function in DL operation, but it's still not nearly the same as say Sg can do if in a "native" mode ... working your footage within say an EDL style session, where Sg is working on it's own project file, an " ircp-dot" file. A bit more complicate & time consuming to prep for, but might actually work while doing your grading.
    Neil

  • Firefox loses window focus when flash reloads

    This is an old problem that has NOT been solved by Mozilla/Adobe. If you load a flash web page, do nothing involving flash for a few minutes, and then load a new flash page in a different FF window, application focus will get yanked to the OLD window (the one you haven't touched in minutes). This problem was documented here as far back as June 2012. But for some reason the thread was closed even though the issue has not been fixed.
    This issue has nothing to do with extensions or outdated plugins, as I can replicate it with a fresh copy of FF on a brand new Win7 machine with no options changed on FF. Yes, I am using the very latest Flash plugin, which works fine with the exception of this persistent and annoying issue. The issue does not exist with Chrome, and therefore it should be a priority for Mozilla to work with Adobe to fix it ASAP.

    Sorry, solutions to problems such as that don't come from this support forum. Bugzilla is the place to report Bugs like that. <br />
    https://bugzilla.mozilla.org/ <br />
    First search for an existing Bug, then if none is found file your own report providing as much information as you can about your issue.
    https://developer.mozilla.org/en/Bug_writing_guidelines

  • Firefox frequently loses window focus

    It seems that Firefox frequently loses window focus when I open a new page. It may be a bookmark, a link opened into a new tab via CTRL+Left-Click, or whatever. The following scenario always results in the window losing focus (for me).
    # Open Firefox.
    # [http://www.foxnews.com Open this link and bookmark it].
    # Close and reopen Firefox.
    # Open the page just bookmarked using the bookmark list and don't touch the window.
    I read this page daily, so when I start Firefox and open the page, I have to click in it so as to scroll, etc..
    Firefox 13, Windows 7 Home Premium 64-bit
    I wish this site had "Preview" for its posts. Geez Louise.

    Oh please fix this ******* issue, it is driving me mad.
    ''Edited by a moderator due to language. See the [http://support.mozilla.com/kb/Forum+and+chat+rules+and+guidelines Rules & Guidelines] .''

  • Powershell terminal loses its mind

    Hello All,
    I have been experiencing a very frustrating condition on powershell that I can't find an answer for nor a remedy against it.
    I am hoping you all will be able to help me identify the issue and a resolution for it.
    Goal: write a script that contains an array of hosts. The goal is to mount a drive to the remote system, then grep (select-string) for a particular pattern and return the results.
    Situation: When mounting to a foreign remote host, if the host doesn't exist, or 'the network path is not found' the powershell terminal will lose its mind and any subsequent mounting of other hosts in the array will fail. This failure continues even if
    I were to stop the script and run it against hosts that have previously been successful. Only by terminating the powershell terminal and restarting the script will it successfully mount to the remote system and retrieve the grep results.
    Since the same code works on a previously unsuccessful host after the reinitialization of the powershell terminal I am confident it is not due to my code.
    foreach ($hostCheck in $arrHostsToCheck) {
         net use z: /delete
         # first check and make sure the target system is up and alive
         $ping = Get-WmiObject win32_pingstatus -computername 127.0.0.1 -Filter "address='$hostCheck' AND buffersize=3"
         #host was not up
         if ($ping) {
              if ($ping.StatusCode -ne 0 -OR $ping.StatusCode -eq $null) {
                   $patternCheckResult = $hostCheck+"`t`t IS NOT RESPONDING, COULD NOT BE CHECKED, SKIPPING..."
                   # write the result to the output file
                   $patternCheckResult | Out-File -append $outputFile  
                   # skip to the next iteration of the foreach loop
                   continue      
         else {
              # skip to next iteration of the foreach loop
              continue
         # if alive, go ahead and map out the drive to retrieve the logs ( i had to remove the /\\$hostCheck inorder to post this)
         net use z: "$hostCheck\C$\ProgramData\Vendor\Appdirectory1\Appdirectory2\Appdirectory3\Logs"
         # determine which log file is the current log
         $mostRecentLogFile = Get-ChildItem -path z: | Sort-Object LastAccessTime `
                                         -Descending | Select-Object -First 1
         $getThisFile = "z:\"+$mostRecentLogFile              
         # grep the contents of the log file to find the desired text
         $patternCheckResult = Get-Content $getThisFile | Select-String -pattern $searchPattern
    ... result manipulation and formatting ...
         # print the results to a file
         # clean up (remove mount point, and remove variables so next loop iteration is starting off fresh).
         net use z: /delete
         Remove-Variable patternCheckResult
         (more removals...)
    #good run result for hostX
    hostCheck =  hostX
    PingStatusCode =  0
    mounting Z drive to hostX
    The command completed successfully.
    mostRecentLogFile =  Router-20141102-152527.log
    getThisFile =  z:\Router-20141102-152527.log
    #for one reason or another, the script can't establish the mount point with hostY and hostZ, all subsequent attempts fail even if the other systems should connect.
    hostCheck =  hostY
    PingStatusCode =  0
    mounting Z drive to hostY
    mostRecentLogFile = 
    getThisFile =  z:\
    aliasFlag =  0
    patternCheckResult(post) = 
    hostCheck =  hostZ
    PingStatusCode =  0
    mounting Z drive to hostZ
    mostRecentLogFile = 
    getThisFile =  z:\
    ####   so now, if I kill the script, and start it again, hostX was previously successful, but now fails after the powershell terminal lost its mind)
    hostCheck =  hostX
    PingStatusCode =  0
    mounting Z drive to hostX
    The command completed successfully.
    mostRecentLogFile = 
    getThisFile =  z:\
    aliasFlag =  0
    patternCheckResult(post) = 
    z: was deleted successfully.
    ### close the powershell terminal and rerun the script and hostX will return successfully
    Questions:
    (1)  Why does powershell lose its mind when it can't mount to a remote computer, or if the directory mount point may not exist on the system?
    (2)  Why wouldn't the powershell terminal be able to fail gracefully for that bad host or path and then the subsequent hosts that are correct be successful?
    (3)  What can I do to remediate this flaw when I am dealing with a list of systems that possibly may not have the file path installed or the system isn't accessible?

    Thanks for the pointers,
    But in looking over your script versus mine, I see a bit more finese.
    Test-connection versus my ping check with a WMIObject. (good to know).
    The most important addition you gave was identifying the unnecessary net use mounting aspect.
    I didn't know you could do it the way you did it, but once the mount was complete the commands were basically identical.
    Grep the pattern and write it to an output. Our network had some oddities that I had to account for but all in all I wouldn't say my script was crap. Just not as finesed as yours.
    YOU DID provide me with the key to eliminating the nagging problem of mounting the drive so thanks. Much appreciated.
    It still doesn't answer the question. If the code works for and produces the desired results obviously it has the right basic components. If it encounters some oddity on one of the hosts and the terminal crashes without any notification, without
    any error messages, and subsequent hosts (even known previous successful ones) fail.
    It doesn't give you much to base your analysis on? Where it is failing is under the covers. it is PFM at that point. So i would expect it to fail gracefully or at least give some adequate feedback to assist the developer in determining
    where they went wrong.
    I never implied I was perfect. What I was implying, that for certain cases the script does as expected. Therefore once it has encountered its unrecoverable oddity, and no warnings or other notifications were forthcoming, I would expect it to be able
    to continue and handle other 'good' hosts. Or at a miniumum give me some type of notification of what it doesn't like.

  • Mouse loses Bluetooth connection when left idle

    I am suddenly having an issue where the bluetooth mouse which works off the preinstalled Toshiba bluetooth stack,
    loses its connection when left idle for a little while.
    This was not happening before.
    What could cause this?
    I just changed the batteries in the mouse so that is not the issue.
    Any ideas?

    That doesn't matter. If you can get a newer version for your band then use it.
    If not, install the Toshiba one and see if it works. Afterwards install your old one again,
    but ensure during the uninstallation that you do not remove the old Bluetooth setup configurations (The uninstaller asks for it).
    In this case the newer driver remain on your system. Maybe it solves your problem.

  • When placing a png in indesign the png changes/loses its orginal color.

    When placing a png in indesign the png changes/loses its original color. Ex. the very clear blue that I am using turns dark and "dirty". ( my RGB is : 5,125, 255  -  when I type this I get a " out of gamut warning" a little yellow icon. When I click on it indesign automatically changes the RGB into: 67, 117, 187)
    I have worked with indesign for 6 years and never experienced this before. I am guessing it has something to due with that the png is in RGB and indesign in cmyk, but I have no idea what to do about it?

    Out of Gamut means the color cannot be printed in your current workspaces using CMYK inks. You would see a preview of the converted color if you move into Overprint Preview, use Proof Colors, or there is transparency and the blend space is set to CMYK.
    If this is destined for screen use, then the color doesn't matter, but you should be sure the blend space is set to RGB.

  • After recent update to ff 10 my ff loses focus when opening non-active window. ALready tried everything. Any sugestions?

    After update to ff10 widnows lose focus when migrating to a different window. tried all possible options and still the same even after recent update to 11. Any suggestions?

    After update to ff10 widnows lose focus when migrating to a different window. tried all possible options and still the same even after recent update to 11. Any suggestions?

  • TextBox losing its text when focus changed?

    Hi all,
    Im developing a plugin in Illustrator CS3 using VisualStudio 2005.
    I design my dialog using ADM in VS.
    The textbox losing its text when focus is changed.
    In my dialog i have a textbox,checkbox and a ok and cancel button.
    In case, if i enter the text and press tab or the checkbox (before moving the focus to ok or cancel button) the text remains uncleared.
    But if i enter the text and move the mouse to ok or cancel button the text box value gets cleared.
    Please someone guide me to solve this problem.
    Thanks in advance,
    Poovili

    Yeah its working when removing the setdrawproc..
    But we need this setdrawproc..Because we save the project settings and next time we load the project the values'll automatically come up using this dialogdrawproc in setdrawproc..the following is our dialogdrawproc code
    static void ASAPI DialogDrawProc( ADMDialogRef dialog,ADMDrawerRef drawer)
        ADMItemRef ItemRef;
        if(dialog==g->qcCheckDialog )
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtOverprint);
            sADMItem->SetText(ItemRef,g->BlackValues);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtTintValues);
            sADMItem->SetText(ItemRef,g->TintValues  );
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtRuleThickness);
            sADMItem->SetText(ItemRef,g->RuleThickNess  );
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtDashGap1);
            sADMItem->SetText(ItemRef,g->DashGapValues  );
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtPatterns);
            sADMItem->SetText(ItemRef,g->PatternValues  );
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtLeadTextSize);
            sADMItem->SetText(ItemRef,g->LeadTextSize  );
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtSuperscript);
            sADMItem->SetText(ItemRef,g->SupValue );   
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtSubscript);
            sADMItem->SetText(ItemRef,g->SubValue );
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtBitmapResFrom);
            sADMItem->SetText(ItemRef,g->BitmapResFrom);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtGrayScaleResFrom);
            sADMItem->SetText(ItemRef,g->GrayscaleResFrom);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtCMYKResFrom);
            sADMItem->SetText(ItemRef,g->CMYKResFrom);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtBitmapResTo);
            sADMItem->SetText(ItemRef,g->BitmapResTo);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtGrayScaleResTo);
            sADMItem->SetText(ItemRef,g->GrayscaleResTo);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtCMYKResTo);
            sADMItem->SetText(ItemRef,g->CMYKResTo);
            //-------------TYPE AREA---------------------------------
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtAreaWD);
            sADMItem->SetText(ItemRef,g->TAreaWD);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtTAHeight2);
            sADMItem->SetText(ItemRef,g->TAAreaHt);
                            //column size
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtColumn1Height);
            sADMItem->SetText(ItemRef,g->Column1Height);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtColumn1Width);
            sADMItem->SetText(ItemRef,g->Column1Width);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtColumn2Height);
            sADMItem->SetText(ItemRef,g->Column2Height);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtColumn2Width);
            sADMItem->SetText(ItemRef,g->Column2Width);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtColumn3Height);
            sADMItem->SetText(ItemRef,g->Column3Height);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtColumn3Width);
            sADMItem->SetText(ItemRef,g->Column3Width);
            //sADMDialog->Draw(drawer);
            //admDialog->Draw(drawer);
            //-------------SAVE SETTINGS--------------------------------
        if(dialog==g->LoginSaveSettingsDialog)
            ItemRef=sADMDialog->GetItem(g->LoginSaveSettingsDialog ,txtLSSUser1);
            sADMItem->SetText(ItemRef,g->TxtLSSUser1);
            ItemRef=sADMDialog->GetItem(g->LoginSaveSettingsDialog ,txtLSSPassword);
            sADMItem->SetText(ItemRef,g->TxtLSSPassword);
        //-----------------ADD NEW USER-----------------------------------
        if(dialog==g->AddNewUserDialog)
            ItemRef=sADMDialog->GetItem(g->AddNewUserDialog ,txtLogin1);
            sADMItem->SetText(ItemRef,g->TxtLogin1);
            ItemRef=sADMDialog->GetItem(g->AddNewUserDialog ,txtPassword);
            sADMItem->SetText(ItemRef,g->TxtPassword);
        if(dialog==g->AddingUsertoDBDialog)
            ItemRef=sADMDialog->GetItem(g->AddingUsertoDBDialog ,txtNeuUser);
            sADMItem->SetText(ItemRef,g->TxtNeuUser);
            ItemRef=sADMDialog->GetItem(g->AddingUsertoDBDialog ,txtCreateNewPassword);
            sADMItem->SetText(ItemRef,g->TxtCreatePassword);
        //-------------------------Change Password-----------------------
        if(dialog==g->ChangePasswordDialog)
            ItemRef=sADMDialog->GetItem(g->ChangePasswordDialog ,txtCPLogin);
            sADMItem->SetText(ItemRef,g->TxtCPLogin1);
            ItemRef=sADMDialog->GetItem(g->ChangePasswordDialog ,txtCPOldPass);
            sADMItem->SetText(ItemRef,g->TxtCPOldPass);
            ItemRef=sADMDialog->GetItem(g->ChangePasswordDialog ,txtCPNewPass);
            sADMItem->SetText(ItemRef,g->TxtCPNewPass);
            ItemRef=sADMDialog->GetItem(g->ChangePasswordDialog ,txtCPConfirmPass);
            sADMItem->SetText(ItemRef,g->TxtCPConfirmPass);
        if(dialog==g->SelectProjDialog)
             if (CyanToMagBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            /*else if(RasterColorsBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            else if(RasterColorsBool==true)
                dialog = sADMItem->GetDialog(ItemRef);
                if (ItemRef==sADMDialog->GetItem(dialog, txtAssessmentPath1))
                    sADMItem->GetText(ItemRef,g->ConversionFolderPath ,1024);
                    sADMItem->SetText(ItemRef,g->ConversionFolderPath );
                    //MessageBox(NULL,g->BlackValues,"Txt",0);
           else if(SaveAdvancedAssessBool == true)
               ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->AssessmentFolderPath);
            else if(ConvertSwatchBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath);   
            else if(DrawBBBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtBBSpacing);
                sADMItem->SetText(ItemRef,g->BBSpacing );
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtBBStrokeWidth);
                sADMItem->SetText(ItemRef,g->BBStrokeWidth );   
            else if(ConvertGradientBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            else if (PantoneToCyanBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            else if (QceraBatchConversionBool1==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            else if (PantoneToMagentaBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            else if(SaturationBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            else if(ColorOverprintBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            //else if(ColorsBatchBool==true)
            if(sADMItem->GetBooleanValue( sADMDialog->GetItem( g->SelectProjDialog, CHK_CheckColors1 ))==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            else if (ConvertFontsBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
                else if(FontCorrectionBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            else if(ScalingBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            else if(SaveAssessBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->AssessmentFolderPath);
                //MessageBox(NULL,g->AssessmentFolderPath,"Assess",0);
    //MessageBox(NULL,g->ConversionFolderPath,"Assess",0);
        if(dialog==g->CleanDialog)
            if(CleanArtBatchConversionBool==true)
            ItemRef=sADMDialog->GetItem(g->CleanDialog ,txtLeadingValue);
            sADMItem->SetText(ItemRef,g->leadingValue  );
            ItemRef=sADMDialog->GetItem(g->CleanDialog ,txtBlackValues);
            sADMItem->SetText(ItemRef,g->ApplyBlackValues  );
            ItemRef=sADMDialog->GetItem(g->CleanDialog ,txtCleanArt_SpecifyFolder1);
            sADMItem->SetText(ItemRef,g->CleanArtFolderPath );
    Let me know if i'm not clear. Thanks in advance..

  • My brand new iMac loses its WiFi connection when it goes to sleep, does anyone have a proven fix?.

    I have a MacBook that is about 4 years old and a brand new iMac both are running the most up to date version of Lion.  My old MacBook has no issues; however, my iMac loses its WiFi connection every time it goes to sleep.  There are some discussions about this already out there but does anyone have a proven fix.  This is very frustrating.

    I was having the same problem for a long time.  I tried everything but nothing seemed to make it stay connected.  It was very frustrating.  I just got a new Airport Extreme.....bang!.....all better.  Problem gone. 

  • UIX LOV loses modal focus

    Hi,
    I have written a LOV in UIX and call it with MarlinCore.js' openWindow function. It works fine. But... When it starts up it has "modal focus". I cannot set the focus back to the calling window, as expected. However when I refresh the LOV, or in fact submit any request from it (such as pressing a "query" button, wich would be quite basic functionality for a LOV), it loses the modal focus, meaning that the calling window can be made active while the LOV window is still visible. Has anybody got a working LOV that keeps its focus, even after firing requests from the LOV?
    I have noted that when I create a LOV with a faulty url and my webserver opens a LOV window and serves some 404-page I have defined in web.xml to it, this window will indeed keep its focus, even after a refresh. Very strange indeed.
    Am I missing some fundamental javascript knowledge here? Are
    Pls help.
    -Martijn

    Adam,
    Not really sure I understand your post, but in answer to your question, this is how I raise the LOV:
    From uix page:
      <image source="../images/lov.gif"
             onClick="javascript:   openWindow(top,
                                              ,'<someUrl>
                                              ,'lovWindow'
                                              ,{width:600,height:600}
                                              ,true
                                              ,'dialog'
             />As I wrote in an earlier post, the lov uix code reads:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <document xmlns="http://xmlns.oracle.com/uix/ui"
              xmlns:data="http://xmlns.oracle.com/uix/ui"
              xmlns:html="http://www.w3.org/TR/REC-html40"
              xmlns:cqj2ee="http://xmlns.cumquatit.com/uix/ui">
      <metaContainer>
        <head title="SomeTitle" >
          <contents>
            <script data:source="JS_LIB@cqj2ee:appInfo"/>
          </contents>
        </head>
      </metaContainer>
    <contents>
      <dataScope>
        <contents>
          <!-- IMPORTANT: DO NOT INCLUDE A BODY TAG HERE. THIS WILL LEAD TO MODALLES LOVs!
        Long postings are being truncated to ~1 kB at this time.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for