Underlying JTabbedPane paints through

I have a problem where i'm updating some Components on a tab and when that tab is not the currently selected tab the components paint through onto whatever tab is selected. I've tried setting the visibility of the JPanels that are changing to false and then true when that tab is selected but that doesn't seem to work. Any ideas?

The tab where I'm updating the components is made up of 3 Jpanels, each one is updated with a chart component (the chart is removed, a new one is created and then added to the JPanel). I am using absolute positioning (I calculate the x,y coords based on the chart size and center it in the JPanel). It only occurs when the charts are being updated and a different tab is selected and as soon as I switch to a diferent tab everything redraws fine.

Similar Messages

  • How to create a folder under BEA Repository through code

    Hi All,
    We are trying to create a folder under the BEA Repository through Java code. Could you please post the right API for it.
    We have tried the InodeManger class and its addNode method, which is good for creating any content, but we are trying to create the folder itself from the code.
    Thanks
    Veera

    Hi Veera,
    You're on the right track. The INodeManager.addNode method is the way to go. You just need to specify an object class name of a folder object class. Out of the box there's one, and this is configurable for your given repository's configuration. Once you add nodes of this type they'll be badged as folders in the portal admin tools.
    -Ryan

  • JMenuBar under JTabbedPane

    I have a JFrame, with a JPanel on it, with a JTabbedPane, with 3 tabs each with a JPanel. Then I add a JMenuBar to the Frame and the menus slide underneither the JTabbedPane. How can I fix this?
    Thanks,
    Marcus.

    One just like this, please.
    [url #"style="font-size:275px;background:url(http://www.ekmpowershop.co.uk/ekmps/shops/tyrrell123/images/doughnut.gif)"]__

  • Want to add and remove GL account in report through report painter

    Hi,
    Thanks in advance,
    1.I want to add new GL account in IS01 report i.e. Income Statement. I am trying to add through report painter but could not able to do it.
    2.Also i want to delete existing GL account from report through report painter.
    Any body pls suggest the steps to add and remove GL account through report painter because this report is under report painter.
    Thanks,
    KMR

    the account is probably in account group or set. Look for that one in report painter and then go to the set or account group and remove/add the account.

  • Line under the white paint

    so on the sides of my macbook it looks like their is streek of grey bubbles under the paint on one side... and on the other side their is like a blue line under the paint...I keep really good care of it, i have a case that I carry it in and i have tried to clean it but they dont come out... so is anyone elese haveing this problem...

    yup, noticed it around my bezel today. it's near the camera. I'm getting my top case replaced for staining (parts are on order) and I'll probably ask them about it when I go in.
    -Gabe

  • Report Painter/ Writer - Query on customization changes

    Hi All,
    I had this query on report painter.
    A couple of GL accounts are created newly.Now, the same are to be included as line items in existing 'Zee' report under Report Painter functionality. I went to GR32 > input selection for existing rpt >> took me to GR02. I made the changes in development client.
    My dilemma is, how do I populate this report change upto Production system ? - by a transport or export/imp functionality.
    Also, if request is generated through GR32(toolbar) what will it generate customization or workbench ?
    I have read Wiki  and tried to execute GR37, but not confident about the same.
    Appreciate if you could share you inputs.
    Warm regards.

    Hi Christian,
    Thanks for your reply. But, if we have to move the changes to INT, Pre- Production and Production clients, then is
    T-Code GCTR a better option so that the transport is generated and it will overwrite the report in the Production client with this change.
    Also, if the transport is generated will it be customization or workbench as raised earlier ?
    I do not intend to delete any report from the systems.
    Warm regards.

  • EvaluatingTteststand 4.2.1: Null pointer access violation (error 17502) when attempting to use a mixed-mode std::map / boost shared_ptr class contained in a DLL through an interface from a different DLL

    Hi there.
    I have been working on a test system which will potentially have TestStand at its core, and downloaded/installed the 4.2.1 evaluation. Current details from the information dialog are:
    TestStand Engine version 4.2.1 (4.2.1.83)
    Sequence Editor Verison 4.2.1.83
    The system will drive mobile radio devices using RS232 serial interfaces, usnig a variety of serial protocols (Hayes, and a couple of proprietary binary protocols for other work).
    We already have in existence a soak tester, written in VS2005 with MFC unmanaged DLLs and also managed DLLs, which are mixed up together to provide different aspects of the functionality required for the binary protocols.
    I have created:
    1. a "master wrapper" DLL for the constellation of other DLLs - this offers up a simple C-API interface which I hope TestStand will use. It's called "SerialSessionMgr.dll""
    2. a mixed managed / unmanaged "IJW" (it just works) DLL which wraps up the binary logging protocol control interfaces, which are entirely in managed C++/CLI: the "master wrapper" DLL calls into this through an unmanaged interface to create instances of the CLI-compiled class which interfaces to the underlying managed DLLs imlpementing the logging protocol. This is called "WinTseInterface.dll".
    Before I started evaluating TestStand, I knocked up a test harness using CPPUnit / MFC, with which I was able to test SerialSessionMgr.dll and its' use of WinTseInterface.dll and verify they worked. The harness loads the DLL dynamically at run-time using AfxLoadLibrary() to try to emulate the way TestStand uses it.
    When we open a
    TSE session:
    The SerialSessionManager makes a call to the
    WinTseInterface.dll to "create" a logging instance. The instance is
    created in a std::map which is held by the CWinApp derived class, this map
    contains boost::shared_ptr of the class which works with a managed class. So we
    have a call trace: Client
    app->SerialSessionManager{TseStartSession()}->WinTseInterface{WINTSE_GetWinTseBridge()} - WINTSE_GetWinTseBridge()
    just creates a new instance of the unmanaged class which interfaces through to
    the managed CLI/C++ class beneath, and returns the address to the
    SerialSessionManager, which stores it.
    The SerialSessioManager actually initialises the WinTseBridge using a method of a C++ pure virtual interface class to the class in the std::map in the WinTseInterface DLL
    implements. The initialise call passes miscellaneous details and actually calls
    "gcnew" to create the managed class which interfaces to the
    underlying managed DLLs which implement the logging protocol.
    My logs of the DLL loading as seen in VS2005 debug output are attached this message as PDFs
    While trying to fix this, I have tried:
    Enhancing the WinTseInterface DLL so it manually loads all the other assemblies in the logging system, including the managed portion of WinTseInterface itself (no effect)
    All the different options for the way the C DLL adapter loads and unloads the DLL in the DLL adapter steptype in TestStand
    I've even tried calling directly into the WinTseInterface DLL before trying any SerialSessionManager DLL calls to try to load the WinTseInterface DLL completely beforehand
    and I cannot stop this exception.
    It seems like the object is created in the WinTseInterface DLL OK (I have debugged the creation step which runs for WINTSE_GetWinTseBridge() and the object is created OK) when the SerialSessionManager makes the call, but when it calls the first managed function, which creates the managed object, the DLL is reloaded as managed - I suspect this causes the object to be destroyed or overwritten, and thus the call to initialise bombs with null pointer violation.
    Have I done something obviously wrong, and what other approaches can I take? 
    Does TestStand 4.2.1 have issues with driving DLLs which use managed/unmanaged DLLs beneath them?
    My nuclear option is to throw the WinTseInterface DLL out completely and wrap up the managed C++ CLI code in a new interface, entirely managed, and use the TestStand ".Net" adaptor to drive that, creating my step library to run to that directly. This isn't ideal as I have some co-ordination of the protocols which is implemented in the SerialSessionMgr DLL.
    I hope someone can help. This one's low level, dirty and a stumper to me.
    Many thanks to the NI community. This is my first posting!
    Solved!
    Go to Solution.
    Attachments:
    CPPUnit Test Harness DLL load debug output.pdf ‏18 KB
    TestStand DLL load & crash debug output.pdf ‏43 KB

    Hi there Ray.
    First - many thanks for engaging with this thorny problem. Love the avatar BTW.
    I've been using the C/C++ DLL adapter: the original premise of the Serial Session Manager DLL was to provide a simple C type functional interface, using simple data types, so that TestStand would be able to drive the underlying functionality easily through a single DLL.
    Seeing as you've been kind enough to respond, I should explain the makeup of the DLLs a little more, I think.
    The SerialSessionManager (SSMgr) DLL uses C++ and MFC internally. This is the DLL which TestStand calls into directly through the C/C++ adapter. This DLL does have one odd feature though - because the it uses the Windows Multimedia Timer (implemented in WinMM.dll) I had to artificially create a scenario where it would load the .Net mscoree DLL _before_ it loads WinMM.dll - (http://connect.microsoft.com/VisualStudio/feedback/details/329819/freelibrary-in-the-winmm-dlls-modu...), basically WinMM.dll's init code gets rather upset when .Net DLLs load, which causes the entire executable to be unloaded with subsequent crashes.
    To work around this crash, the SSMgr has a single, completely empty, file which is compiled for CLR, effectively forcing a dependency into the DLL on the .Net subsystems and turning the DLL into a "IJW" binary. The resulting DLL doesn't actually have any executable managed .Net assemblies, but I'm guessing that it does contain enough .Net related stubs and information that when the DLL is loaded, mscoree.dll loads before WinMM.dll - and this means the system doesn't crash.
    Now, on to the WinTseInterface DLL. My initial description of this little software system was done in something of a hurry.
    This DLL is the C++/CLI "IJW" DLL which actually contains managed and unmanaged code. Underneath the WinTseInterface DLL is another system of (this time exclusively C++/CLI) DLL assemblies which implement the TSE protocol interpretation system.
    When the SSMgr DLL needs to start a TSE protocol session, it calls a C-API function in the WinTseInterface which creates a new CWinTseBridge class. Here's the steps in a little more detail:
    SSMgr DLL calls WINTSE_GetWinTseBridge(), passing in the name of the device which needs it (this is used to put the new WinTseBridge into a std::map in the WinTseInterface DLL) - this call runs just fine, and returns the address of the CWinTseBridge C++ object. This is stored in the SSMgr, because the CWinTseBridge class implements a pure virtual interface which is used by the SSMgr as a way of accessing the CWinTseBridge methods. 
    We now use the address from (1) to make a call to CWinTseBridge::Initialise(), passing some basic configuration details.
    I've run VS2005 debug on the Sequence Editor when running the test, and done F11 step-throughs of the code loading each parameter in the Initialise() call onto the stack, and what appears to happen is that when the call is made, the whole lot steps off into oblivion (a reference to 0x00000000 is made, I think).
    Do you think it's worth trying to get this approach to work? It would be useful to retain the control surface in the top of the SSMgr as there is co-ordination of the protocols within the logic of that component. If I move the Wintse control out into a separate managed DLL I may not have that co-ordination (this might be overcome with some design, as I've confirmed that it is possible to "reach into" the WinTseInterface DLL with TestStand and create and use managed objects from assemblies contained within).
    Are there any known issues with this version of TestStand using C/C++ CLI IJW DLLs? I haven't found much out there on the web.
    Attachments:
    Tse_Test.seq ‏7 KB

  • How can I easily see the areas that I am painting back from a mask?

    I have an image that I applied a Color Balance adjustment layer to, I added CYAN and then I hit Option + Delete on the layer and now I am selectively painting the Cyan color on my image.There are some parts where I have to paint through metal mesh and I'm having a hard time seeing which parts I applied the paint to and which parts I did not, and also where I may have overpainted onto areas I did not want to.
    Is there an easy way to see which parts have been painted back and which have not?
    Thanks!!!

    The red shows, or is, your mask.
    I think you'll find less confusion sticking witht he layers panel for now.
    There are two ways to view your mask directly from the layers pallet: Opt+clicking the mask shows a BW version of it. Opt+Shift+clicking on it shows you the red rubilith version of it. Red is the default color, but in many instances another color might be more visible, depending on the colors within your image. At the bottom of the tool pallet is the quick mask icon: double click it to choose the color and opacity of your choice.

  • Resolve trouble between Parallels and Windows under Boot Camp

    After seeing several threads relating to this issue, I decided to make this it's own thread instead of trying to reply to each. hopkinsvscloudlivestream.blogspot.com/2013/03/watch-hopkins-vs-cloud-live-stream-2013.html This article NOW resolves all issues pertaining to using Windows under Boot Camp through Parallels, INCLUDING activation. Hopefully Parallels will be able to integrate these fixes into a future release.
    Before doing anything, I would recommend preparing your existing Windows installation under Boot Camp, for Parallels, before trying to access it through Parallels. If you have already installed Parallels and now have problems, don't worry, this article should address and resolve these issues as well.
    Something to know upfront: using your existing Boot Camp installation with Parallels will most likely require you to activate your Windows installation a second time. The reasons for this are addressed in Section 4 of this article.
    Section 1: Preparing your Boot Camp Installation for Parallels
    (If you already tried to access your Boot Camp installation through Parallels, and can no longer get into Windows through Boot Camp or Parallels, please skip this step and come back to it after you have completed Section 2.)

    Personally, I think the software fix is a band-aid for a larger hardware problem, probably involving the power management circuitry. I think the reason Photo Booth and QuietMBP and Windows XP all work to silence the noise is because they draw more power by using more CPU, and it's the extra power draw that kills the noise. Nothing scientific, mind you, just a hunch.
    What if your speakers made an annoying hum that went away whenever you started playing music through them in iTunes? Would you still think it's a software problem? I think it's a similar situation here - where software can cover up the issue but not really fix it...

  • Place InfoObjects under  InfoObject  Catalog

    Hi Guys,
    I have few InfoObjects (IO) under unassigned infoarea and want to place under particular infoarea. I am telling IO name, IO Catalog name etc. reading a tab delimited text file which are already exists in server. Here is the structure:
    IO_CAT        IO_NAME  IO CAT_TEXT     IO CAT_TYPE     IO CAT IAREA
    ZTEST_AS  ZIO_DM1         ZTEST AS     CHA              ZEA_PLAY_AREA
    ZTEST_AS  ZIO_DM2         ZTEST AS     CHA              ZEA_PLAY_AREA
    File reading is ok but when I call FM 'BAPI_IOBC_CHANGE', it's throwing an error.
    Here are the code - can some one help me please where I am doing wrong:
    REPORT  ZAS_BAPI_TEST2.
          Declaring Internal table for creating InfoObject
    DATA: p_file TYPE string.
    Data: BEGIN OF bapi_cat OCCURS 0,
            io_cat(30) TYPE C,
            io_name(30) TYPE C,
            io_cattxt(60) TYPE C,
            io_cattype(3) TYPE C,
            io_infoarea(30) TYPE C,
         END OF bapi_cat.
    DATA ibapi LIKE STANDARD TABLE OF bapi_cat.
    DATA: WS_BAPI LIKE ibapi.
    DATA: lt_return type BAPIRET2 occurs 0 with header line.
    PARAMETERS: sel_file(1500) TYPE c default ' ' OBLIGATORY LOWER CASE.
          PUT THE TEXT FILE PATH TO P_FILE
    p_file = sel_file.
    **Copy the file from the workstation to the server/ internal table**
    CALL FUNCTION 'GUI_UPLOAD'
         EXPORTING
           filename                = p_file
           FILETYPE                = 'ASC'
           HAS_FIELD_SEPARATOR     = 'X'
                   HEADER_LENGTH           = 0
                   DAT_MODE                = SPACE
                   CODEPAGE                = SPACE
                   IGNORE_CERR             = ABAP_TRUE
                   REPLACEMENT             = '#'
                   READ_BY_LINE            = 'X'
                 IMPORTING
                   FILELENGTH              =
                   HEADER                  =
        TABLES
            data_tab                = bapi_cat[]
        EXCEPTIONS
            file_open_error         = 1
            file_read_error         = 2
            no_batch                = 3
            gui_refuse_filetransfer = 4
            invalid_type            = 5
            no_authority            = 6
            unknown_error           = 7
            bad_data_format         = 8
            header_not_allowed      = 9
            separator_not_allowed   = 10
            header_too_long         = 11
            unknown_dp_error        = 12
            access_denied           = 13
            dp_out_of_memory        = 14
            disk_full               = 15
            dp_timeout              = 16
            not_supported_by_gui    = 17
            error_no_gui            = 18
            OTHERS                  = 19.
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         MESSAGE e012(zea_spms) WITH 'Method' 'GUI_UPLOAD' sy-subrc.
       ENDIF.
    *Place all IOs under InfoObject Catalog through BAPI Function
    CALL FUNCTION 'BAPI_IOBC_CHANGE'
      EXPORTING
        INFOOBJCAT  = bapi_cat-io_cat
        DETAILS     = bapi_cat
      TABLES
        INFOOBJECTS = bapi_cat
        RETURN      = lt_return.
    loop at lt_return.
      if lt_return-type = 'E'.
       MESSAGE ID lt_return-ID TYPE lt_return-TYPE NUMBER
       lt_return-NUMBER
        WITH lt_return-MESSAGE_V1 lt_return-MESSAGE_V2
        lt_return-MESSAGE_V3 lt_return-MESSAGE_V4.
      endif.
    endloop.
    *ENDLOOP.
          SELECT THE LOCATION FOR TEXT FILE
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR sel_file.
      CALL FUNCTION 'WS_FILENAME_GET'
        EXPORTING
          def_filename     = ''
          def_path         = 'C:\'
          mask             = ',Documentos de texto (*.txt), *.txt.'
          mode             = ''
        IMPORTING
          filename         = p_file
        EXCEPTIONS
          inv_winsys       = 1
          no_batch         = 2
          selection_cancel = 3
          selection_error  = 4
          OTHERS           = 5.
      find '.txt' IN p_file.
      if sy-subrc <> 0.
        concatenate p_file '.txt' into sel_file.
      else.
        sel_file = p_file.
      endif.
    Thanks,
    Mau

    To assign your Infoobject you must use a separate BAPI:
    BAPI_IOBC_CHANGE
    This function module changes an existing InfoObject catalog. Enter all the InfoObject catalog properties in the DETAILS parameter
    If the Catalog doesn't exist you have another BAPI:
    BAPI_IOBC_CREATE
    This function module creates a new InfoObject catalog. You have to give all the InfoObject catalog properties in the DETAILS parameter
    Regards,
    Sergio

  • Tcode for Report painter

    Hello All,
    when m trying to create a tcode for report painter through se93 its show erre for D_SREPOVARI-EXTDREPORT parameter,m felling the parameter with the value gatting from table TKEB1,-APPLCLASS /SUBCLASS /TABNAME  23 space / REPID.error is do not use blank char. Suggest Please and please give some idea about how to copy a stand. report painter and change the Z according to client requirement.
    Thanks
    Sam

    Hi,
    I will suggest you to execute the transaction START_REPORT and put the report type report and ext. name. If it executes well over here then you can create a transaction using SE93
    Something like this
    Default value for transaction ‘START_REPORT’
    In    bellow default value section insert default value
    SREPOVARI-REPORTTYPE      = AQ      "Parameter    indicating Abap Query
    D_SREPOVARI-REPORT           = ZY_CS_ALLSLS   "Query    User group
    D_SREPOVARI-EXTDREPORT= ZY_SLS_MST_001     "Query name  
    Hope this helps.
    Thanks,
    Tooshar Bendale

  • Report Painter/ Writer - Query on Testing of customization changes

    Hello,
    Customer requirement is to add newly created GL accounts as line Items in existing Zee report under Report Painter.
    The same is done. But, how can we do the testing, if any ?
    Regards.

    Hi,
    I do not use sets. Yes, I meant  that this account appears in the report after customization. The report exists under directory.
    (GR32)
    Functionally, is testing applicable to this scenario ?  If yes, then how do we do it. ?
    Regards.

  • "Cut through forwarding"

    Under Router Settings, Connectivity in Administration tab there is a Check box for "Cut through forwarding" 
    What is Cut through forwarding??
    Regards,
    William
    Solved!
    Go to Solution.

    I recommend disabling it
    Cut Through Forwarding is a new feature for Linksys Smart Wi-Fi Routers (EA6300, EA6400 and EA6700) that increases the router’s performance through bypassing protocols that add extra overhead to router processing (such as packet level inspections, sorting, filtering, and queuing).
    Enabling the Cut Through Forwarding feature will only apply to devices that are NOT part of any Parental Controls or Media Prioritization policies since those devices need to be packet inspected. 
    When disabled, there is no performance enhancement and all clients go through the extra router processing overhead.
    QUICK TIP:  This feature is enabled by default.  Disabling this option may improve compatibility with other Wi-Fi devices and services.  If you want to disable it, log in to your Linksys Smart Wi-Fi Account.  Go to Connectivity > Administration.  Under the Cut Through Forwarding section, uncheck the Enable checkbox.
    Please remember to Kudo those that help you.
    Linksys
    Communities Technical Support

  • Unable to open SAP Screen Painter on the current desktop.

    Hi,
    Whenever I try to open Screen painter through SAP GUI I am thrown with an error message "EU_SCRP_WN32 : timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'". This error has been occurring since I have changed my workstation. When I use my SAP login ID on a different desktop, screen painter is working fine. This means that the problem is not with the SAP login or the SAP server, the problem lies with the GUI or current desktop setting. Please look into this issue and help resolving this issue. Please revert if any further information is required.
    I have already tried/checked the below steps:
    1. Reinstalled SAP GUI.
    2. gnetx.exe and eumfcdll.dll is already present in my system.
    3. I have checked the setting, Utilities->Settings->Screen Painter->Graphical Layout Editor (Checked)
    The issue is when is tested the RFC conection " EU_SCRP_WN32" it gives me the below error.
    Logon          Cancel
    Error Details     timeout during allocate / CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456 Timeout dur
    Error Details     ERROR: timeout during allocate
    Error Details     LOCATION: SAP-Gateway on host mb5ap1039 / sapgw00
    Error Details     DETAIL: no connect of TP gnetx.exe from host %%SAPGUI%% after 20 sec
    Error Details     COMPONENT: SAP-Gateway
    Error Details     COUNTER: 26638
    Error Details     MODULE: gwr3cpic.c
    Error Details     LINE: 6226
    Error Details     RETURN CODE: 242
    Error Details     SUBRC: 0
    Error Details     RELEASE: 700
    Error Details     TIME: Fri Jun 18 11:20:53 2010
    Error Details     VERSION: 2
    Can anybody help me with the above issue.
    Regards,
    Smithesh

    Hi Rich,
    I followed the correction instruction of the note 133903 but didn't work for me .
    I am using SAPGui 7.20.
    Details: (after replace the files)
    ABAP Development Workbench
    Release 7.20
    Graphical Screen Painter
    File Version 7200.0.1300.354
    Build 354w209
    05 May 2010 / 16 Jun 2010
    OS: Windows 7 Professional 32bit
    Some times appears the message box: No response  from Graphical Screen Painter - Exiting.
    On title bar of message box appears: gnetx.exe
    Can I do some thing else?
    Regards,
    Rodrigo
    Edited by: Rodrigo Bernardo on Jun 23, 2010 6:36 PM

  • SE51 Screen Painter - can't not start graphical painter

    hello All,
    when we try to use SE51 - screen painter through a connection via saprouter the followin message appear:
    Password in router string. Cannot start graphical screen painter
    we have installed SAP GUI 7.10 patch 02
    Thanks.
    Hernando

    Hi,
    This error is described in SAP Note 898102. the issue is resolved as of SAPGUI Release 710: Import GUI patch 03.
    Apply the latest GUI patch. you can find the latest patch in service marketplace.
    Regards,
    Debasis.

Maybe you are looking for