Ensuring stateChanged fires whenever componentRemoved fires in JTabbedPane

Hello,
I have a question on how to ensure that a ChangeEvent fires (once and only once) every time a tab is removed.
I have a JTabbedPane that has a ChangeListener and ContainerListener hooked to it. What I've concluded is that:
-if a tab is added to an empty JTabbedPane:
1.) componentAdded fires,
2.) stateChanged fires
-if a tab is added to a JTabbedPane already containing panes:
1.) componentAdded fires
-if a tab is removed from a JTabbedPane:
1.) componentRemoved fires
2.) stateChanged fires only if there are no tabs to the right of the tab being removed and the index must shift left.
Problem scenario:
I have a 5 tabbed JTabbedPane in an extended class with a variable to hold the previously selected tab. The third tab is removed and the 2 tabs to the right shift left. The selectedIndex is no longer pointing to the same pane, and stateChanged doesn't fire in this case. I need to know that this has occurred so that I can properly update the preivously_selected variable and an application state holding object.
I've tried calling the stateChanged method from the componentRemoved call (which is fired by removeTab()), but by this time the selectedIndex has already changed, so I can't properly test the (JTabbedPane.getSelectedIndex() == JTabbedPane.getTabCount()) condition before calling stateChanged(). I need this information to update the previously_selected index.
Does anyone know of a better approach than the one I'm using, or is there another listener that would notify me of this change?
Thanks,
j64thnotes

This is how I do it:
tabbedPane = new JTabbedPane()
     public void remove(int tab)
          super.remove( tab );
          int after = getSelectedIndex();
          //  The selected tab remained the same after this remove, consider
          //  it a state changed
          if (after == tab)
               fireStateChanged();
};

Similar Messages

  • Add button to JTabbedPane to add new tab

    Does anyone know how to add a JButton to a JTabbed pane (in the tab bar) so that it is always at the end of all the tabs and when it is clicked it will add a new tab into the tabbed pane.
    The functionallity I am looking for is the same as that provided by the button in the tab bar for Firefox and Internet Explorer.

    Along the line of what TBM was saying:
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    class NewTabDemo implements Runnable
      JTabbedPane tabs;
      ChangeListener listener;
      int numTabs;
      public static void main(String[] args)
        SwingUtilities.invokeLater(new NewTabDemo());
      public void run()
        listener = new ChangeListener()
          public void stateChanged(ChangeEvent e)
            addNewTab();
        tabs = new JTabbedPane();
        tabs.add(new JPanel(), "Tab " + String.valueOf(numTabs), numTabs++);
        tabs.add(new JPanel(), "+", numTabs++);
        tabs.addChangeListener(listener);
        JFrame frame = new JFrame(this.getClass().getName());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().add(tabs, BorderLayout.CENTER);
        frame.pack();
        frame.setSize(new Dimension(400,200));
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
      private void addNewTab()
        int index = numTabs-1;
        if (tabs.getSelectedIndex() == index)
          tabs.add(new JPanel(), "Tab " + String.valueOf(index), index);
          tabs.removeChangeListener(listener);
          tabs.setSelectedIndex(index);
          tabs.addChangeListener(listener);
          numTabs++;
    }

  • Theme 11, live scope for dynamic action not working in IE

    Hello all,
    I use theme 11, and I have a dynamic action on page 0 that fixes a region width, because it is too long to match the page width. I set the Event Scope to "live" because the region is a report and it has many rows and pagination is needed. When I have to go to page 16-30 from 1-15 and if there is a record which is longer than the current 15, page is partially refreshed and the width is changed, but that works for Mozilla and Chrome. In IE the dynamic action from page 0 is not triggered, in spite of the live event scope and I don't know why. Is there a way I can fix that problem?
    Thanks in advance!

    Hi Ivan,
    Thanks for the information, this is indeed an interesting case. I'm assuming you have 'Enable Partial Page Refresh' in the report attributes set to 'Yes'. Please let me know if this is not the case.
    I don't think an event of 'Page Load' with a scope of 'live' is correct. The 'live' event is a way of saying, attach some behaviour to something on a page (eg a delete icon in a report row is clicked), and keep that behaviour 'alive' even if that part of the page is updated (eg the report paginates with PPR to the next set or results, and clicking on the delete icon in the report still works). However here, when the event is page load, I don't think specifying 'live' will do what you want.
    What I think you're really interested in is indeed when the page first loads, but then when the report is refreshed via PPR. Therefore, I would try the following:
    1) Change the dynamic action event to 'After Refresh'.
    2) Select the report region from the 'When > Selection' attributes (ensuring your report template contains a id="REGION_STATIC_ID" attribute, otherwise the DA won't work).
    3) In your 'Actions', ensure the 'Fire on Page Load' checkbox is checked.
    So this says do the action when the page loads, then always after the report is refreshed via PPR. This will fire after pagination, sorting or a dynamic action refresh.
    Interestingly (at least in my mind!), you can actually set the event scope back to 'bind' here. This is because as part of the DA framework, we purposefully attach the event handlers for report handling to an element that is not updated during PPR for pagination or sorting, it's higher up in the DOM tree. This gives slightly better performance than having to use 'live', which is more expensive computationally and yet still keeps the registered behaviours.
    Also something else which may help, you can check if the DA is firing when expected by using a JavaScript console (eg in Chrome native Developer tools, Firebug with Firefox), with application debugging enabled (Application Properties) and switched on (via developer toolbar). Load the JS console, and you'll be able to see when the DA fires.
    As far as the actual IE specific logic goes, I haven't looked into that too much yet, because I felt it was more important to get the DA firing correctly first, then see where we're at.
    Regards,
    Anthony.
    Edited by: Anthony Rayner on Nov 14, 2011 11:06 PM

  • Remote DP not installing, failed to connect with the remote Distribution Site

    Hello everyone, and thanks in advance. In attempting to install the DP role to a 2008 server, I get the following errors in the distmgr.log:
    DPID 16777369 - NAL Path ["Display=\\server-name\"]MSWNET:["SMS_SITE=CR1"]\\Server-Name\ , ServerName = SERVER-NAME, DPDrive = , IsMulticast = 0, PXE = 0, RemoveWDS
    = 0          
    SMS_DISTRIBUTION_MANAGER           
    4/8/2014 8:08:28 AM  
    8656 (0x21D0) Translated server name Server-Name to server.name\Server-Name.            SMS_DISTRIBUTION_MANAGER           
    4/8/2014 8:08:30 AM   8656 (0x21D0) CWmi::Connect() failed to connect to
    \\Server-Name\root\CIMv2. Error = 0x800706BA            SMS_DISTRIBUTION_MANAGER           
    4/8/2014 8:08:30 AM   8656 (0x21D0) STATMSG: ID=2391 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=CR-S-SCCM2012.cr.nws.noaa SITE=CR1 PID=8796 TID=8656 GMTDATE=Tue Apr 08 13:08:30.327 2014 ISTR0="["Display=\\Server-Name\"]MSWNET:["SMS_SITE=CR1"]\\Server-Name\"
    ISTR1="" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=404 AVAL0="["Display=\\Server-Name\"]MSWNET:["SMS_SITE=CR1"]\\Server-Name\"
    SMS_DISTRIBUTION_MANAGER            4/8/2014 8:08:30 AM            8656 (0x21D0)
    DPConnection::ConnectWMI() - Failed to connect to  SERVER-NAME.  SMS_DISTRIBUTION_MANAGER            4/8/2014 8:08:30 AM     
    8656 (0x21D0) Failed to install DP files on the remote DP. Error code = 1722 SMS_DISTRIBUTION_MANAGER            4/8/2014 8:08:30 AM        8656
    (0x21D0) STATMSG: ID=2370 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=CR-S-SCCM2012.xxx SITE=CR1 PID=8796 TID=8656 GMTDATE=Tue Apr 08 13:08:30.328 2014 ISTR0="["Display=\\Server-Name\"]MSWNET:["SMS_SITE=CR1"]\\Server-Name\"
    ISTR1="SERVER-NAME" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=404 AVAL0="["Display=\\Server-Name\"]MSWNET:["SMS_SITE=CR1"]\\Server-Name\"    
    SMS_DISTRIBUTION_MANAGER            4/8/2014 8:08:30 AM   8656 (0x21D0) Will try again after 20 minutes ...         SMS_DISTRIBUTION_MANAGER           
    4/8/2014 8:08:30 AM   8656 (0x21D0)
     I understand that 0x800706BA is RPC server unavailable, but I don't know how to fix it. I have done the following:
    Ensured the SCCM server account is a local admin on the remote server
    Ensured the Fire Wall service is not running on remote server
    Tested with wmimgmt.msc and wbemtest, which worked fine.
    Telneted on port 135 from site to server, which worked fine.
    IIS is installed, basic authentication...
    I am at a loss. Any ideas?
    Ashley!

    Hi Ashley,
    You can use Network Monitor and run it on the remote DP at the time ConfigMgr is attempting to install the DP role to capture more information on what may be causing the issue.
    Here is the download link to NetMon -
    http://www.microsoft.com/en-us/download/details.aspx?id=4865
    And here are some how to's on using NetMon just in case:
    http://support.microsoft.com/kb/812953/en-us
    http://blogs.technet.com/b/netmon/p/usagevideos.aspx
    Best of Luck,
    -Matt

  • JDeveloper JAX-RPC vs AXIS

    Hi everybody,
    I find that working with Axis and it's tools (wsdl2java) is easier than working with Oracle's SOAP implementation(webservicesassembler.jar).
    One advantadge of using oracle's solution is that ws that
    returns an Element type does not need a custom deserializer and Axis needs.
    Which more advantages do you think oracle's solution has?
    Why should we use jDev10's JAX/RPC web services?
    Thank you.

    Hello
    The first thing is you should really say "JAX-RPC vs AXIS", since both of them are Web Services Runtime/Development APIs. And Jdeveloper is just a tools that simnplifies the development and developmen of Web Services using JAX-RPC.
    So what about JAX-RPC vs Axis?
    I would say that Axis is/was a de-facto standard fro developing WS, since it is running in most of the application servers - OracleAS 10g included-. Where JAX-RPC is the standard defines by the Java Community Process (JCP) and is a mandatory features of J2EE 1.4 specifications. So by using JAX-RPC you will be able to use a set of API that are really standard based. Also as part of your decision you should take a look in more details about the services provided by JAX-RPC: http://java.sun.com/xml/jaxrpc/index.jsp and the different standards involved.
    Also I think that one important thing to take in consideration when you will make your decision is the future of Axis as we know it today release 1.0 If you see the Axis 2.0 Web site, it says that:
    "Axis2 is an effort to re-design and totally re-implement both Axis/Java and (eventually) Axis/C++ on a new architecture."
    Other considerations:
    Some of the important things to watch when you select your framework are also related to:
    - how you can interop with other framework (consuming or providing a service that is created with another stack)
    - how to handle attachement (size, types, performances, ..)
    When you will start to use Web Services in your system you may need to add different quality of services for example adding security (authentication, encryption, ...) or reliability (how I can be sure that my response has been received by my client application)
    All the Web Service Management (security, reliability, etc etc) is not currently well integrated in the Axis stack, so you will have to use a third party solution to have this type of features. (you can for example use Oracle Web Services Manager for that purpose)
    All these, and more, are more than just the 'SOAP' stack.
    Oracle, JAX-RPC, and more:
    First of all OC4J 10.1.3 support JAX-RPC as any J2EE 1.4, in addition we support WS-Security, WS-Reliability to integrate them to your enterprise, and a full integration with Oracle Web Services Manager.
    Oracle JAX-RPC implementation has also specific focus to ensure interoperability firs WS-Interoperability compliant -[url=http://www.ws-i.org/]WS-I is an open organization that defines the interoperability around WS.- services, but also based on 'real life validation scenarios' -especially with .Net- where we use our customer applications to validate our platform interoperability.
    Also, on the tooling side, our Web Services stack is fully integrated to Oracle JDevelope that allow you to develop easily JAX-RPC base Web Services (client or provider), based on several type of object/business logic (simple Java class, EJB, PL/SQL, SQL, ...); and deploy them very quickly to your application server
    Regards
    Tugdual Grall

  • Error while viewing the reports

    Hi,
    When I try to import the catalog from our development system to testing system, catalog gets imported successfully. But when I try to view the reports it throws the following error.
    oracle.dss.d4o.common.D4ORuntimeException: D4O-1009 An error occurred while loading the worksheet.
    oracle.dss.bicontext.BINamingException: BIB-14099 Unknown naming exception.
    oracle.dss.bicontext.BINamingException: BIB-14067 Persistable object threw exception during lookup on method setXMLAsString; component class oracle.dss.dataSource.QueryServer; exception null.
         at oracle.dss.d4o.gui.workbook.PageFrame.stateChanged(Unknown Source)
         at javax.swing.JTabbedPane.fireStateChanged(Unknown Source)
         at javax.swing.JTabbedPane$ModelListener.stateChanged(Unknown Source)
         at javax.swing.DefaultSingleSelectionModel.fireStateChanged(Unknown Source)
         at javax.swing.DefaultSingleSelectionModel.setSelectedIndex(Unknown Source)
         at javax.swing.JTabbedPane.setSelectedIndexImpl(Unknown Source)
         at javax.swing.JTabbedPane.setSelectedIndex(Unknown Source)
         at javax.swing.JTabbedPane.insertTab(Unknown Source)
         at javax.swing.JTabbedPane.addTab(Unknown Source)
         at oracle.dss.d4o.gui.workbook.PageFrame.initialize(Unknown Source)
         at oracle.dss.d4o.gui.workbook.PageFrame.<init>(Unknown Source)
         at oracle.dss.d4o.gui.MainPanel$OpenWorkbookTask.construct(Unknown Source)
         at oracle.dss.d4o.gui.common.SwingWorker$4.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Details of two systems are
    Development Env
    Database version : 10.2.0.1.0
    OLAP API Server version : 10.2.0.1.0
    OLAP AW Engine version : 10.2.0.1.0
    OLAP Catalog version : 10.2.0.1.0
    Testing Env
    Database version : 10.2.0.2.0
    OLAP API Server version : 10.2.0.2.0
    OLAP AW Engine version : 10.2.0.2.0
    OLAP Catalog version : 10.2.0.2.0
    Is this error due to the difference between OLAP Catalog Version in two environments? Any ideas ?
    Thanks in advance
    Rana

    Hi
    Well I can't put my hand on my heart and say that the difference between the OLAP Catalog Version in two environments is your issue, but if I saw that on my system I would be having my suspicions. I would definitely try and overcome this first and see what happens. You've got to knock out one piece of the puzzle at a time.
    Isn't it OCCAM's razor (http://en.wikipedia.org/wiki/Occam's_Razor) that says when everything has been considered the obvious answer is usually the correct one?
    Best wishes
    Michael

  • D4O-1009 and BIB-14067 Errors

    Hi,
    I have created a user that could access reports of other users. When I initally open a report of another user, it loads successfully, but when I close the current report(NOTE: Did not exit discoverer app) and try to open another report, I get the following errors:
    1) D4O-1009 An error occurred while loading the worksheet.
    2) BIB-14067 Persistable object threw exception during lookup on method setPersistableComponents; component class oracle.dss.d4o.common.worksheet.Worksheet; exception java.lang.NullPointerException.
    *** The complete error message is on my next post. ***
    The weird thing here is that when I open the reports after opening a new discoverer UI, they load successfully.
    Has anyone encountered this before? Please help.
    - Ron

    COMPLETE ERROR MESSAGE:
    oracle.dss.d4o.common.D4ORuntimeException: D4O-1009 An error occurred while loading the worksheet.
    oracle.dss.bicontext.BINamingException: BIB-14067 Persistable object threw exception during lookup on method setPersistableComponents; component class oracle.dss.d4o.common.worksheet.Worksheet; exception java.lang.NullPointerException.
    java.lang.NullPointerException
         at oracle.dss.d4o.gui.workbook.PageFrame.stateChanged(Unknown Source)
         at javax.swing.JTabbedPane.fireStateChanged(Unknown Source)
         at javax.swing.JTabbedPane$ModelListener.stateChanged(Unknown Source)
         at javax.swing.DefaultSingleSelectionModel.fireStateChanged(Unknown Source)
         at javax.swing.DefaultSingleSelectionModel.setSelectedIndex(Unknown Source)
         at javax.swing.JTabbedPane.setSelectedIndexImpl(Unknown Source)
         at javax.swing.JTabbedPane.setSelectedIndex(Unknown Source)
         at javax.swing.JTabbedPane.insertTab(Unknown Source)
         at javax.swing.JTabbedPane.addTab(Unknown Source)
         at oracle.dss.d4o.gui.workbook.PageFrame.initialize(Unknown Source)
         at oracle.dss.d4o.gui.workbook.PageFrame.<init>(Unknown Source)
         at oracle.dss.d4o.gui.MainPanel$OpenWorkbookTask.construct(Unknown Source)
         at oracle.dss.d4o.gui.common.SwingWorker$4.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    oracle.dss.bicontext.BINamingException: BIB-14067 Persistable object threw exception during lookup on method setPersistableComponents; component class oracle.dss.d4o.common.worksheet.Worksheet; exception java.lang.NullPointerException.
    java.lang.NullPointerException
         at oracle.dss.persistence.persistencemanager.client.DefaultStateHandler.loadAggregates(DefaultStateHandler.java:268)
         at oracle.dss.persistence.persistencemanager.client.DefaultStateHandler.recreatePersistableFromStateAgent(DefaultStateHandler.java:401)
         at oracle.dss.persistence.persistencemanager.client.PersistenceManagerImpl.lookup(PersistenceManagerImpl.java:2999)
         at oracle.dss.persistence.persistencemanager.client.PersistenceManagerImpl.lookup(PersistenceManagerImpl.java:2894)
         at oracle.dss.persistence.persistencemanager.client.InitialPersistenceManager.lookup(InitialPersistenceManager.java:284)
         at oracle.dss.d4o.common.workbook.Workbook.getWorksheet(Unknown Source)
         at oracle.dss.d4o.gui.workbook.PageFrame.stateChanged(Unknown Source)
         at javax.swing.JTabbedPane.fireStateChanged(Unknown Source)
         at javax.swing.JTabbedPane$ModelListener.stateChanged(Unknown Source)
         at javax.swing.DefaultSingleSelectionModel.fireStateChanged(Unknown Source)
         at javax.swing.DefaultSingleSelectionModel.setSelectedIndex(Unknown Source)
         at javax.swing.JTabbedPane.setSelectedIndexImpl(Unknown Source)
         at javax.swing.JTabbedPane.setSelectedIndex(Unknown Source)
         at javax.swing.JTabbedPane.insertTab(Unknown Source)
         at javax.swing.JTabbedPane.addTab(Unknown Source)
         at oracle.dss.d4o.gui.workbook.PageFrame.initialize(Unknown Source)
         at oracle.dss.d4o.gui.workbook.PageFrame.<init>(Unknown Source)
         at oracle.dss.d4o.gui.MainPanel$OpenWorkbookTask.construct(Unknown Source)
         at oracle.dss.d4o.gui.common.SwingWorker$4.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    java.lang.NullPointerException
         at oracle.dss.d4o.common.worksheet.WorksheetTokenSubstitution.getParsedKey(Unknown Source)
         at oracle.dss.d4o.common.worksheet.WorksheetTokenSubstitution.getParsedString(Unknown Source)
         at oracle.dss.formattedTextArea.FormattedTextArea.setHTMLText(FormattedTextArea.java:506)
         at oracle.dss.d4o.common.worksheet.Worksheet.setTokenSubstitution(Unknown Source)
         at oracle.dss.d4o.common.worksheet.Worksheet.setPersistableComponents(Unknown Source)
         at oracle.dss.persistence.persistencemanager.client.DefaultStateHandler.loadAggregates(DefaultStateHandler.java:264)
         at oracle.dss.persistence.persistencemanager.client.DefaultStateHandler.recreatePersistableFromStateAgent(DefaultStateHandler.java:401)
         at oracle.dss.persistence.persistencemanager.client.PersistenceManagerImpl.lookup(PersistenceManagerImpl.java:2999)
         at oracle.dss.persistence.persistencemanager.client.PersistenceManagerImpl.lookup(PersistenceManagerImpl.java:2894)
         at oracle.dss.persistence.persistencemanager.client.InitialPersistenceManager.lookup(InitialPersistenceManager.java:284)
         at oracle.dss.d4o.common.workbook.Workbook.getWorksheet(Unknown Source)
         at oracle.dss.d4o.gui.workbook.PageFrame.stateChanged(Unknown Source)
         at javax.swing.JTabbedPane.fireStateChanged(Unknown Source)
         at javax.swing.JTabbedPane$ModelListener.stateChanged(Unknown Source)
         at javax.swing.DefaultSingleSelectionModel.fireStateChanged(Unknown Source)
         at javax.swing.DefaultSingleSelectionModel.setSelectedIndex(Unknown Source)
         at javax.swing.JTabbedPane.setSelectedIndexImpl(Unknown Source)
         at javax.swing.JTabbedPane.setSelectedIndex(Unknown Source)
         at javax.swing.JTabbedPane.insertTab(Unknown Source)
         at javax.swing.JTabbedPane.addTab(Unknown Source)
         at oracle.dss.d4o.gui.workbook.PageFrame.initialize(Unknown Source)
         at oracle.dss.d4o.gui.workbook.PageFrame.<init>(Unknown Source)
         at oracle.dss.d4o.gui.MainPanel$OpenWorkbookTask.construct(Unknown Source)
         at oracle.dss.d4o.gui.common.SwingWorker$4.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

  • Costing Method

    Hi Experts,
         My client wants to evaluate the item cost by it's maximum purchase price. that is he didn't want to calculate it by moving average,   FIFO or standard valuation method. how to do this.
    Thanks in advance
    sundar

    Hi Sundar,
    What you can suggest your customer could be:
    Select standard cost first.  Reevaluate item cost whenever the cost below the maximum last purchase price.
    But you still need to remind your customer: item cost has to be consistent. Nobody can control B1 how to calculate them.  Their build-in function is there to ensure consistency. Whenever you reevaluate item cost, B1 will post variances to GL account if any.
    Thanks,
    Gordon

  • Exception thrown in External Tool Configuration for Availability

    Within JDeveloper version 10.1.3.4.0.4270 (have also seen the problem in 10.1.3.3), when trying to configure an External Tool the Availability tab on the "Edit External Tool" wizard is not being displayed. This option had previously been configured ok within JDev 10.1.2
    From main menu I select: Tools -> External Tools... -> (select any tool) -> Edit...
    Tab options for External Program Options, Display, Integration are all selectable and editable, attempting to select tab option "Availability" appears to do nothing but an exception can be seen (when running jdev.exe instead on jdevw.exe) in the following partial stack trace:
    java.lang.NullPointerException
    at sun.text.UCharacterIterator.<init>(UCharacterIterator.java:46)
    at sun.text.UCharacterIterator.getInstance(UCharacterIterator.java:71)
    at sun.text.Normalizer.setText(Normalizer.java:1045)
    at java.text.CollationElementIterator.setText(CollationElementIterator.java:479)
    at java.text.RuleBasedCollator.compare(RuleBasedCollator.java:406)
    at oracle.jdevimpl.externaltools.ui.AvailabilityPanel$1.compare(AvailabilityPanel.java:212)
    at java.util.Arrays.mergeSort(Arrays.java:1284)
    at java.util.Arrays.mergeSort(Arrays.java:1296)
    at java.util.Arrays.mergeSort(Arrays.java:1296)
    at java.util.Arrays.mergeSort(Arrays.java:1295)
    at java.util.Arrays.sort(Arrays.java:1223)
    at java.util.Collections.sort(Collections.java:159)
    at oracle.jdevimpl.externaltools.ui.AvailabilityPanel.populateAvailableTypes(AvailabilityPanel.java:216)
    at oracle.jdevimpl.externaltools.ui.AvailabilityPanel.loadOptions(AvailabilityPanel.java:291)
    at oracle.jdevimpl.externaltools.ui.ExternalToolsWizard.pageSelected(ExternalToolsWizard.java:505)
    at oracle.jdevimpl.externaltools.ui.ExternalToolsWizard.mav$pageSelected(ExternalToolsWizard.java:59)
    at oracle.jdevimpl.externaltools.ui.ExternalToolsWizard$WizardHandler.wizardSelectionChanged(ExternalToolsWizard.java:454)
    at oracle.bali.ewt.wizard.BaseWizard.processWizardEvent(Unknown Source)
    at oracle.bali.ewt.wizard.BaseWizard.processEventImpl(Unknown Source)
    at oracle.bali.ewt.LWComponent.processEvent(Unknown Source)
    at oracle.bali.ewt.wizard.BaseWizard.selectPage(Unknown Source)
    at oracle.bali.ewt.wizard.ReentrantWizard.selectPage(Unknown Source)
    at oracle.bali.ewt.wizard.ReentrantWizard$Model.stateChanged(Unknown Source)
    at javax.swing.JTabbedPane.fireStateChanged(JTabbedPane.java:290)
    at javax.swing.JTabbedPane$ModelListener.stateChanged(JTabbedPane.java:222)

    Have tested setting up the external tool in 11g and appears to be okay there. So am only having an issue with the 10.1.3 releases - which is a shame as that is the version we have just moved upto.
    Have found with can get the Availability tab to eventually display (by clicking back and forth between other tabs) but the file list is never populated.
    Anyone know where it gets the list of possible files from? Can this list have values added/removed from it?

  • How to Fire an Event whenever clicking to Tab A, B, C on the JTabbedPane

    I have created a screen by using JTabbedPane having A,B,C Tabs on it. I need to fire one event whenever I will be clicking on Tab B or C or vice-versa. So that I can display some values from database automatically whenever I will choose Tab B or C.

    What's wrong with the events that are already fired when that happens? Add a ChangeListener to the JTabbedPane and it will receive a ChangeEvent every time a different tab is selected.

  • Making the ChangeListener only fire once on a JTabbedPane

    Hi guys, I'm having a problem with the amount of times that a ChangeListener for a JTabbedPane is called. If the user clicks on a certain tab, a JOptionPane is displayed with a message. However, I can't figure out a easy work around to make it so the listener only executes the code within it only once - I don't want the JOptionPane to come up twice. I tried doing a not-so-great boolean method:
    private void setPass(){
         if (pass)
              pass = false;
         else
              pass = true;
    }and calling it from within the listener, but I'm having trouble with it. Anyone know how to make it so the lister only fires once, or at least only displays the dialog once? I tried searching the forums using keywords such as "JTabbedPane ChangeListener pass once twice... etc" but it didn't bring anything relevant up. Thanks!

    are you sure you're using a changeListener?
    works OK in this
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.event.*;
    class Testing
      public void buildGUI()
        final JTabbedPane tp = new JTabbedPane();
        for(int x = 0; x < 5; x++) tp.addTab(""+(char)(x+65),new JPanel());
        JFrame f = new JFrame();
        f.getContentPane().add(tp);
        f.setSize(300,200);
        f.setLocationRelativeTo(null);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
        tp.addChangeListener(new ChangeListener(){
          public void stateChanged(ChangeEvent ce){
            JOptionPane.showMessageDialog(null,tp.getTitleAt(tp.getSelectedIndex()));
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Testing().buildGUI();
    }post a sample program so we can see what you're doing
    (by compiling/running the sample program)

  • I have updated to the latest version of FireFox 6.02! As FireFox is my official browser whenever I'm on the homepage I keep getting a message stating that I've not updated to the latest version of Fire- Fox. Not true!!!

    I have updated to the latest version of Fire Fox on my computer. I have Firefox set as the home page whenever I'm on the Internet. Right on the homepage is an "urgent" message stating that I am not using the latest version of Fire Fox. I most assuredly do have the latest version of Fire Fox downloaded and installed into my computer.

    https://support.mozilla.com/en-US/kb/Websites+or+add-ons+incorrectly+report+incompatible+browser

  • Whenever I fire up Yahoo!Mail, Firefox asks me to restart the browser in 32-bit mode. Why ??

    The first thing I do when starting up Firefox is check yahoo mail. A big yellow banner then appears once I'm looking at my mail, which says I should restart Firefox in 32-bit mode.

    I went into Firefox preferences to the Manage Add-ons section (on the General tab). I went to plug-ins, and disabled BrowserPlus from Yahoo, then restarted Firefox. Next time I opened up Yahoo mail there was no more yellow banner asking to re-start in 32 bit mode. Hope that works for others.

  • Whenever i open any website with fire fox from my laptop,the website will open without images and graphics.what do i do?

    it all started yesterday.i have been enjoying my browsing with firefox up untill yesterday.when ever i come a website using firefox, the website will open but the graphic in the website will appear as plain text and ALL images in the website will not appear.Thus the website will appear as blank with just plain text.in site such as yahoomail and facebook,the text will appear scattered and no image will appear.tried downloading the latest firefox version,but the file could not be install because it is always coming as corrupted file.what do i do?

    I'm having this issue too. But no matter what I do, it doesnt seem to be fixed. The images aren't showing up on my Facebook, but its only the profile pictures. I can turn off my computer, and load it up again, but they still won't show up. And the images show up on other computers and on my phone but they won't show up on my computer. And I can't figure out how to fix it.
    If anyone knows how to fix this, Please help. I wan't to see my friends profile pictures again. Please, Please, Please.... Please!! Help!
    Thanks,
    Zeek

  • Trigger no fire on SuSe80

    My platform is SuSe Linux 80 and Developer Suite 9i.
    My forms compile fine, but triggers no fire.
    When I make : unset NLS_LANG - everything is fine - triggers fire.
    Where is problem ?
    NLS_LANG is my national setting, not AMERICAN_AMERICA...

    the actual requirement is like this:
    i have 2 tables one is having data about the total capacity of rooms in resort. that is refer by the one which is used to keep the record of booked rooms. and that trigger or scheduler is to reclaim the rooms capacity when time ends as you know room is booked for hourly basis. and this is just a simple example theres more of this type where one thing is booked and reclaimed again.Rahul,
    I according to this logic - i don't think job is useful in this regard.
    Question is why?
    Just follow your current proposed solution ->
    You say whenever room booked you will start the job though trigger to see whether you can reclaims that room or not.
    Now, how do you get to know - the room is free or not? For that there must some other transaction will be taken place by any front end (or by any other application) which is validating inside in your procedure and your job continuously check that value through procedure. Am i right?
    So, your job is not sufficient alone to decide that main issue whether it is ready to reclaim the room or not, except if you want to display this information to the owner about the probable available rooms after a specific time? In that case, you need this job. But, this will not show the actual available room. Correct me if i'm wrong - up to this explanation.
    As a result, if we can tap that transaction which will ultimately taken place by any front end (or some other application to ensure that) then we can reclaim the room, and can directly put our trigger into that transaction without the job, thus reducing the overhead and complexity of the current logic.
    I may be wrong - or not understood or missed some important place of your logic. So, please share your thought in this regard.
    Regards.
    Satyaki De.
    Edited by: Satyaki_De on Oct 12, 2008 1:46 AM

Maybe you are looking for