Only the components of the first tab is visible

I have created an application with 4 tabs in a jtabbedpane. Depending on the users rights in a node(of a tree) the tabs should be visible or removed.
Here is an example of how I add and remove tabs.
if (status) {
String title = ((ObjectObjectData)myTabs.elementAt(index)).getObj2().toString();
boolean there = false;
Component allEnabledComp[] = tabPanel.getComponents();
for (int i=0; i<allEnabledComp.length; i++) {
// Compare the tabs with the orign tabs stored in a vector
if (allEnabledComp.equals(((ObjectObjectData)myTabs.elementAt(index)).getObj1())) {
there = true;
break;
if (!there) {
int newIndex = getNewIndex(index);
tabPanel.insertTab(title, null, (Component)((ObjectObjectData)myTabs.elementAt(index)).getObj1(), "", newIndex);
Component comp[] = tabPanel.getComponents();
else {
for (int i=0; i<tabPanel.getComponents().length; i++) {
// Check if the tab should be removed or if it is already removed
if (tabPanel.getComponentAt(i).equals(((ObjectObjectData)myTabs.elementAt(index)).getObj1())) {
tabPanel.removeTabAt(i);
break;
The problem is that when I add and remove tabs only the first tab will show its components. The other tabs are empty.
And an other strange thing. If I change the order of the tabs all components of every tab will be visible...
Any suggestions ?

I have tested to use setVisible instead of removeXXX and insertXXX.
if (status) {
String title = ((ObjectObjectData)myTabs.elementAt(index)).getObj2().toString();
boolean there = false;
Component allEnabledComp[] = tabPanel.getComponents();
for (int i=0; i<allEnabledComp.length; i++) {
if (allEnabledComp.equals(((ObjectObjectData)myTabs.elementAt(index)).getObj1())) {
// there = true;
allEnabledComp[i].setVisible(true);
break;
/*if (!there) {
int newIndex = getNewIndex(index);
tabPanel.insertTab(title, null, (Component)((ObjectObjectData)myTabs.elementAt(index)).getObj1(), "", newIndex);
Component comp[] = tabPanel.getComponents();
else {
//Component allEnabledComp[] = tabPanel.getComponents();
for (int i=0; i<tabPanel.getComponents().length; i++) {
if (tabPanel.getComponentAt(i).equals(((ObjectObjectData)myTabs.elementAt(index)).getObj1())) {
//tabPanel.removeTabAt(i);
tabPanel.getComponentAt(i).setVisible(false);
break;
If I debug the code the components method isVisible() will return the state that was assign to it. But when I se the GUI, all components are visible !
Any ideas ?

Similar Messages

  • How to change the components of the planned order? (FM or BAPI)

    I need to change the storage(LGORT) in the components.
    I found only MD_PLDORD_CHANGE_COMP_ITEMS, but could not get the correct result.
    Has anyone used this FM to change the components of the planned order?
    Can you please tell how to use it. Or advise an alternative solution.

    Hi Anton,
    There's a BAPI to change planned orders - BAPI_PLANNEDORDER_CHANGE, but it allows to change only header data.
    Therefore you'll have to go a bit longer, and use a couple of other BAPIs:
    First read the order that you want to change - BAPI_PLANNEDORDER_GET_DETAIL
    Second, create a new planned order with the changed data, based on the read planned order - BAPI_PLANNEDORDER_CREATE.
    Third, delete the old planned order - BAPI_PLANNEDORDER_DELETE.
    Regards,
    Mario

  • Issue of the components to the production

    Hi,
    There is situation to issue the componnets of 500-600 to the production through syatem against single Finish Product,
    Production person create requisition with the components and sent to stores,store person manually issue the components against the availability.
    which takes lot of time,
    Whetehr there is user friendly transactions for such issue?
    Whether it is possible to issue the child parts by selectong only FG code? and issue of the child parts?
    With Regards,
    Devendra

    Hi
    You can do back flash for the FG's BOM component ( Check MRP3 view Backflash indicator marked ) while confirmation posting in CO11N
    You can also perform Pick List in CO27 or COHV
    If its REM and Discrete  , then use MF50 /MF65 for GI
    You can also develop a custom transaction in back ground program using BAPI BAPI_GOODSMVT_CREATE with the movement type=261 where program will  select
    all the materials (RESB-MATNR), Item No. of Reservation (RESB-RSPOS), BOM Item (RESB-POSNR)
    from RESB where movement type (RESB-BWART) and  trigger Auto Goods Issue for Child item
    Regards
    JH

  • Exception in CMS when transporting the Components in the assembly stage

    Hi,
    I am getting the following exception in CMS when transporting the Components in the assembly stage:
    com.sap.cms.tcs.interfaces.exceptions.TCSFileCreateException: cannot create file:*****.sca Error adding file *****/pr_deployarchivedr/TestDc.sda to archive.
    File was already added before.
    Any pointers to resolve the exception will be helpful.
    Regards.
    Rajat

    Hi Rajat,
    two things causes this type of error.
    1) Check whether the systems are in SYNC or not(patch level, versions).
    2)Check whether the dependencies are transported or not to assemble tab.
    Regards,
    Anil.

  • On minimizing application,the components of the frame become unordered

    Hi all,
    On minimizing application,the components of the frame become unordered in Swings.Can anyone suggest wat to do?
    Regards,
    Mansi

    Please do not cross-post questions in multiple forums. This will frustrate anyone who tries to help you only to find out later that the same answer was given hours ago in a cross-posted thread. For this reason, many volunteers here and at the other sites refuse to help repeat offenders. Also, your not replying to posts in the previous thread before posting here suggests that you aren't reading the suggestions, so why should we bother putting in any effort to help you if you don't demonstrate that its worth our doing so?
    [http://forums.sun.com/thread.jspa?threadID=5333175]

  • 'Valid to' dates for both the Header & the components in the BOM report.

    Hi Experts,
    My Requirement:
    Need to display the 'Valid to' dates for both the Header & the components in the BOM report.
    Right now we are using the Functional modules 'GET_STKO' & 'GET_STPO' for the header
    & the components respectively. The report gives the correct output for the all the BOM alternatives
    which exist. But for the BOM alternatives which have been deleted(updated in STKO-LKENZ)
    'Valid to' dates are displayed as'00/00/0000'.
    (Note:ECM is used for BOMs)
    Is there any Logical Database that I can fetch the 'Valid to' dates of both BOM Header & components
    which are deleted?
    Regards,
    Mahesh

    Dear Mahesh,
    In my understanding I dont think you cannot get the valid to date for BOM header,unless a ECN,(engineering change number) is
    used to set the deletion flag.In otherwords none of the business sets for all these BOM's the valid to date(which means the
    default valid to date 31.12.9999 is taken).
    Check with this FM, CS_BOM_EXPL_MAT_V2 whether can you get the valid to date for the components(infact here also the
    valid from date given in the input screen impacts the report output).
    Check and revert back.
    Regards
    Mangalraj.S

  • How to import the components onto the portal

    Dear All,
    I've got installed ECC6 in my home PC with some of the netweaver components like XI, BI and etc. But after login into the Portal, I'm not finding any of the components on the portal, except the welcome screen. And ABAP is working well from the SAP logon pad.
    So can anyone explain that, how to import the netweaver components onto the portal. Pl. give me the step-by-step explanation as i'm very new to this aspect.
    Best Regards
    Mahesh

    See this -> iTunes for Windows: Optical drive is no longer recognized, or "Disc burner or software not found" alert after install
    and this -> iTunes for Windows: Troubleshooting CD issues caused by device filters

  • Pressing the ENTER key in first tab -- a button in another tab is pressed?

    Hi guys, 
    I am facing a problem. I have a tab with 4 different tabs. When I am in the first tab, and trying to change a control's value by pressing the Enter key, it suddently switches to the seconds tab and presses a button there. 
    Any idea how that happens? I want to prevent that from happening. 
    Thank you
    Solved!
    Go to Solution.

    Sounds like you have the enter key assigned to some key navigation of another control. This is a general problem with the OK button of the system palette. Here is more information.
    LabVIEW Champion . Do more with less code and in less time .

  • Regarding the Components in the RWB

    HI Experts,
    In the RWB->>>Component Monitoring-->>>
    <u><b>Components</b></u>
         Adapter Engine
            System Landscape Directory
            Integration Directory
            Integration Repository
            Runtime Workbench
    When Ever I Started the RWB The Above All are in the Grey State Only
    After that when I Clicked on those Components Means Its Comming in to the GREEN State .
    What Could be the Reason. Please Let Me Know
    Regards
    Khanna

    Hi Sergio Cipolla,
    When I Check With the RWB Components, Here I am Unable to Find out the Communication Channels Monitoring .
    I Followed this way to see the CC Monitoring
    Goto RWB--Component Monitoring--Adapter Engine
    Here CC Monitoring should be in between the <b>Background Processing</b> Tab and the <b>Adapter Monitoring</b> Tab.
    But here it is missing  . what to Now
    Regards
    Khanna

  • Problem in the code for detecting the components on the PCB image.

    I am working on a code to detect whether all the trained components are present on the PCB or not.
    I am using the quantum camera and vision acquisition software in labview to capture the image of the PCB to be tested. Then the image is compared with the original PCB image which is having all components.
    I had written the code and it is working only at some instances. I can't understand what the problem really was. Please help to know what the problem was and also help me by specifying the requirements like camera pixel, surrounding effects when the image was being captured, camera options like ZOOM, distance of the object from the camera.
    Thank you

    Hello,
    for starters I suggest reading:
    http://zone.ni.com/reference/en-XX/help/372916M-01​/nivisionconcepts/setting_up_your_imaging_system/
    And in my opinion, you should (in the future) describe the problem more thoroughly and in detail. There is not enough information in your explanation.
    Best regards,
    K
    https://decibel.ni.com/content/blogs/kl3m3n
    "Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."

  • HT201343 i have a mid 2010 mac pro and the fact that it have most of the components as the ones compatible with the airplay mirroring mine does not work ?

    i have verify that all the components are almost the same please advice why because i was able to previously airply movies why not now that i have the latest os x mountain lion

    iTunes airplay still works as it always has.
    AirPlay Mirroring (the ML-added feature) requires the latest Intel hardware (specifically the Intel HD Graphics subprocessor).  This hardware includes a feature called QuickSync Video (similar to HDMI-over-wifi).
    There is no 'almost' have it.  Either you do or you do not.  It wasn't an arbitrary decision by Apple to deny older Macs of this hardware feature.

  • Get the Values of the components inside the region onto the Parent Page

    Hi All,
    I am using Jdeveloper 11.1.1.5.
    I just wanted to know that my use case can be fitted to contextual events or should i use the #{data.pageDef.Attribute.inputValue} to get the values.
    I have a bounded taskflow "ChildTF.xml" with fragment say "child.jsff".Now i have dragged the ChildTF.xml on the other page say "Parent.jspx" as a region.In the child.jsff page i had input form having 20 fields and all the 20 fields are dragged from a View Object so i don't have the field values binded to the Managed Bean and on the parent page "Parent.jspx" i have a button. Now on click of button i need to get the values of those 20 fields of "child.jsff" page.
    How can i achieve this?
    Thanks
    Shah

    Hi Timo,
    Thanks .
    For sharing the data control i should follow this :-
    In the Property Inspector for the called task flow i.e ChildTF.xml, select Behavior.
    In the data-control-scope list, select shared.
    Is there anything else do i need to do ??
    I mean do i need to add the iterator to the parent page also. ?
    Kindly Suggest!!
    Regards,
    Shah

  • ATGDustCase - Unable to load the components when the nuclues is starting up

    Hi,
    Below is the ATGDust Case code to unit test existing DropletInvoker. But when we invoke the code it is unable to start the nucleus and throwing error like:-
    Unable to resolve component /atg/dynamo/service/groupconfig/Configuration
    java.lang.NoSuchFieldError: TRACE
    at org.jboss.logging.Log4jLogger.translate(Log4jLogger.java:60)
    I am using ATG 10.2 and I have tried with various Log4j versions like:-
    log4j-1.2.13.jar
    log4j-1.2.14.jar
    log4j-1.2.17.jar
    But none of them worked, all these JARS are in the .classpath as well as JUnit classpath. But still the above error persists? Below is the Junit test class in ATGDust.
    public class DropletInvokerTest extends AtgDustCase
      String ATGHOMEPROPERTY = "C:/ATG/ATG10.2/home";
      final String ATGHOME = "C:/ATG/ATG10.2/home";
      static boolean isNucleusUp;
      Nucleus mNucleus;
      Logger mLogger = Logger.getLogger(this.getClass());
      * Start up Nucleus with Initial services
      protected void setUp() throws Exception
      super.setUp();
      String dynamoHome = System.getProperty(ATGHOMEPROPERTY);
      if (dynamoHome == null)
      System.setProperty(ATGHOMEPROPERTY, ATGHOME);
      File configpath = null;
      configpath = NucleusTestUtils.getConfigpath(
      DropletInvokerTest.class,
      DropletInvokerTest.class.getName(), true);
      copyConfigurationFiles(new String[]
      { "D:/ATGDust_Test/modules/junit/commerce/config" },
      configpath.getAbsolutePath(), new String[]
      { ".svn" });
      mNucleus = NucleusTestUtils.startNucleusWithModules(new String[]
      { "DAS", "DafEar" }, this.getClass(), "/atg/dynamo/droplet/Switch");
      * Shut down Nucleus
      protected void tearDown() throws Exception
      super.tearDown();
      ServletUtil.setCurrentRequest(null);
      if (mNucleus != null)
      NucleusTestUtils.shutdownNucleus(mNucleus);
      mNucleus = null;
      /** Test the DropletInvoker */
      public void testInvoker() throws ServletException, IOException
      doTestSwitch();
      public void doTestSwitch() throws ServletException, IOException
      DropletInvoker invoker = new DropletInvoker(mNucleus);
      DynamoHttpServletRequest request = invoker.getRequest();
      DropletResult result = null;
      request.setParameter("value", "foo");
      result = invoker.invokeDroplet("/atg/dynamo/droplet/Switch");
      assertNotNull("Make sure that foo got rendered",
      result.getRenderedOutputParameter("foo"));
      System.out.println("result.getRenderedOutputParameter(foo)-->"
      + result.getRenderedOutputParameter("foo"));
    Please Clarify , what is the problem here?
    Regards,
    ATGCrazy

    Hi,
    To add the local administrators in the User Rights assignments
    1) Start>Run>gpedit.msc
    2) Computer Configuration>Windows Settings>Security Settings>Local Policies>User Rights Assignments
    3) Double click  on Back up files and directories and add the Administrators.
    4) Double click  on Restore files and directories and add the Administrators.
    5) Close  the window and reboot the machine.
    6) Try to add the machine to the domain.
    If  the issue persist, Reset the security database.
    1) Open MMC
    2) Add Security Configuration and Analysis tool
    3) Right click Security Configuration and Analysis in the left pane
    4) Select open database
    5) In the new database, type in secnew.sdb, click ok.
    6) Select setup defltbase.inf as the template to import from C:\Windows\inf, click ok.
    7) Rightclick Security Configuration and Analysis in the left pane again
    8) Select configure computer
    9) Reboot the machine.
    10) Try adding the machine to the domain.
    Hope this helps!
    Best Regards
    Elytis Cheng
    Elytis Cheng
    TechNet Community Support
    By the way folks, this is the FIX that worked for me.  No need to go re-installing the OS
    Paul E Coz

  • Subcontractor Process, but sell the components to the Contract Manufacturer

    We currently are executing a process that is more or less like SAP standard subcontracting solution.  We manufacture a component "A", and supply it to a Contract Manufacturer. After the CM is done working with it, he produces a new product 'B', which he sells to us.  When we book the receipt of B, we also book the consumption of A.  We are using standard Subcontracting POs or Scheduling Agreements.  It is our responsibility to plan both the component A and the product B that he produces, since the product B is a component of our Finished goods.
    Now, our company has determined that they wish to sell the component (A) to the CM rather than just ship the component to him.  In this case, we do not retain ownership and we may not value the inventory.  We still wish to perform planning on A, according to our planning situation of B and our knowledge of the entire planning situation of A (all supply/all demand/all stock that was generated by our company).
    Can anyone think of a solution that would allow us to plan "A" in this situation?  We prefer a non-enhanced solution, but in the end, it has to work 'somehow'.
    Best Regards,
    DB49

    3 suggestions at this point (first 2 of them differ only slightly):
    1. With proc. key as F-30 for B (benefit with this, at a later date if BOM of B is expanded & chile parts other than A are to follow normal subcon, this will be handy)
    - In BOM item details for A, maintain the material prov. indicator as L
    - Sub-con demand from B will not trigger a demand for A
    - Create SO manually for A, whenever there is demand for B
    - Rest of the process should be just as per normal
    2. With proc. key as F for B
      - Create SO manually for A,  whenever there is demand for B
      - Rest of the process should be just as per normal
    3. I understand from my colleague that in EhP 5 for ECC 6.0, there is a consignment stock flow which can be used for sub-con flow. Although I haven't tested this or read much about it, would suggest to have a look at it, to see if it helps to address your need.
    If one of the above is suitable, then am quite sure you can automate the creation of SO via a Z program.
    If in case I get any further brain waves will update this thread.

  • How to lay the components in the form of rows

    I started developing one Database application, wherein I need to have the following way of Component layout in the Frame:
    EmpName:TextBox
    EmpId:TextBox
    DOB:TextBox
    and so on
    And i need to add some buttons at the end..
    Can anybody suggest me which layout manager should i have to go for and how?

    Well, you have to know that almost anything can be done with a combination of several JPanels with different LayoutManagers. In your case, I would advise you to work with a GridBagLayout.
    I also know about a LayoutManager that isn't part of the api. It is called SGLayout. I think it was given on a tip at JavaWorld. Try to google it. It is supposed to be a simplier version of GridBagLayout for "Forms".

Maybe you are looking for

  • Download error message - "Cannot Create File"

    Recently I developed a problem and am unable to download anything (files, software, etc) from any website. I begin a download, the download manager comes up and it shows an error message "Cannot Create File." I am using the default manager that is in

  • Convert JMS Headers from EBCDIC to ASCII when using JMS Bridge (WLS - WMQ)

    I have a Java app on Weblogic 11g using a Message Bridge to talk JMS with IBM Websphere MQ. The MQ server is running on IBM z/OS platform which uses EBCDIC encoding. I need to use the Weblogic message selector feature to filter messages on the bridge

  • How To Display an HTML File

    Hi. Can I display the following .HTM from a button on my form? /usr/IBM/WebSphere/AppServerCommunityEdition/repository/default/TTMSWeb/1222365662123/TTMSWeb-1222365662123.war/adds_reporters.htm Is there a built-in for this?

  • Is the Ipad Air's glass too thin  that it can crack due to pressure??

    I have an Ipad Air and so far I love its amazing; however I am just a bit bothered by the plastic feel of the screen. I am to understand this is due to the fact that the screen is made with a thinner glass thus the plastic feel.  My concern is if the

  • Fpga:timin​g violation

    Hola, Dispongo de un cRIO 9074, con una FPGA spartan-3 2M. He diseñado una VI para generar una chirp desde la FPGA. La primera compilación no me generó error alguno, sin embargo, después he añadido la función de interrupción (adjunto VI), y por lo ta