Hiding A TabStrip ViewSet in a Window

Hello everyone,
I created a TabStrip ViewSet in a Window.  Depending on certain conditions, i'd like to hide or show certain tab strips.
Is this possible?
Any help will be much appreciated.
Mike

Hello Arun,
I downloaded and executed the Tutorial.  Unfortunately the UI elements are within a view. 
I need to be able to change the properties of a tabstrip that is a viewset that is inside a Window.
regards,
Mike

Similar Messages

  • Hiding of tabstrip control

    Hi ,
    Can anybody please hiding of tabstrip control along with a simple example.
    Thanks ,
    Ahmed.

    Hi Ahmed,
    Please refer the below thread(s),
    Re: How to make a tabstrip visible and invisible again?
    how to hide tabstrip Control at runtime?
    Best Regards.

  • Hiding SQL statement in Query Result Window

    Hi everyone,
    Is it possible to hide the SQL statement from a query result window? This can usually be done by click the orange triangle that is positioned to the left of the SQL string box (to expand and collapse it). The System Queries have this box collapsed per default, is it possible to have this setup as default for all queries, including the custom? If so, please let me know where this can be done.
    Cheers

    You should do this only with SDK programming - dont allow to show the syntax. The next, but problematic way, is the code you have do inside stored procedure and call only this sp inside the query generator window - if you have there some input parameters, you should use filling variables before executing sp and get it as input parameters to sp.

  • WDPortalNavigation : Hiding Dynamic Nav Panel in popup window

    Hello,
    I am using Absolute Navigation - Portal - SAP Library to open a specific page on Portal from my Web Dynpro Java application.
    Platform:
    Portal : EP CE7.3 Ehp1 SPS9
    NWDS: CE7.3
    In target Portal page that I am trying to open in new window, there is some content added as "Dynamic Navigation". And this Dynamic Navigation panel is by-default expanded in this popped up window.
    Is there any way I can set it to 'collapsed' by-default in this popup window?
    I tried using all navigation modes available. But couldn't find any option to do this.
    Code extract:
    WDPortalNavigation.navigateAbsolute(
      actionURL,
      WDPortalNavigationMode.SHOW_HEADERLESS_PORTAL,
      "height=700,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,titlebar=no,toolbar=no",
      taskWindowName,
      WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
      targetTitleText,
      null,
      null,
      null,
      true,
      true
    Please help.
    Thanks & Regards,
    Amey Mogare

    Yes. I'm using a classical frameworkpage. I opened it >Desktop Inner page > Dynamic Navigation iView > set "Initial State of navigation panel = closed".
    Saved everything and retried opening the page via WDPortalNavigation.
    Navigation panel was still expanded when this window opened.

  • Hiding/changing URL when opening new window

    Any guidance on the following would be greatly appreciated.
    I have a club website which is hosted on my freespace and addressed by redirection.
    All the main pages show the URL at the top with the name of the club - as I would want.
    However, if I set a link within one of those pages to open in a new window, then the URL shown at the top is the url to the page's location in my freespace and not the club.
    Is there any way to specify what is shown in the URL area when opening a link in a new window in this way?
    Thanks for any thoughts.

    I have the the same problem bulvide has with version 3.6.9 (and with 4 beta 5). Instead of the gray page problem, now sometimes a new window won't open after clicking on the firefox icon on the taskbar (in the case of windows 7 64 bit, middle clicking, in vista left clicking). This only happens when I am watching a flash video stream from ustream for example.
    A temporary fix for the problem is to disable OOPP in about:config. You can do this by typing about:config in the URL bar, typing dom.ipc in the filter bar and toggling the 4 true values to false.
    Unlike bulvide, I don't have an issue with the speed of flash.

  • Why does hiding the menu bar hide the window title?

    [FF4.0] If I uncheck Menu Bar (R click top area) the title in the title bar at the top of window also disappears. IE9 just has a blank title bar! What's with the losing of the title bar? It's actually useful...

    Are you running Firefox in maximized mode?
    You can set the pref <b>browser.tabs.drawInTitlebar</b> to false on the <b>about:config</b> page.
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />

  • Set viewset dynamically as standard view in a window

    Hello collegues,
    I want to Display a certain view ("view 1") in an overview page of another component.
    "View 1" is in "Viewset 1".
    "Window 1" has two viewsets:
    "Viewset 2", marked as Standard.
    "Viewset 1", not marked as Standard.
    "Window 1" is in the component Interface aso.
    When I add "Window 1" to the overview page of my component, then "Viewset 2" is shown, not "Viewset 1".
    How can I set "Viewset 1" dynamically as Standard view in "Window 1" so that "View 1" is shown in my overview page?
    Best regards,
    Thomas

    hi,
    In Overview page IMPL Claz you will find the method " DETACH_STATIC_OVW_VIEWS ".
    redefine that method and use the following piece of code,
    mt_detached_views of type BSP_DLC_OVW_STAT_VIEW_ATTACH_T declare as a Global variable in IMPL claz
      DATA:it_svs TYPE bsp_dlc_ovw_dyn_views_list_t,
           wa_svs TYPE bsp_dlc_ovw_dyn_views_list,
           wa_det TYPE bsp_dlc_ovw_stat_view_attach.
    */ Getting the list of Views of a OV page....
      it_svs = me->get_list_of_static_views( ).
      READ TABLE it_svs INTO wa_svs WITH KEY viewid = 'VIEWSET2'.
      wa_det-viewid = wa_svs-viewid.
      APPEND wa_det TO mt_detached_views.
      CLEAR wa_det.
      rt_viewid = mt_detached_views.
    hope this might be helpful,
    Regard's
    Vam's....

  • How can i hide a tabstrip control

    On my screen there are a pushbutton and a tabsrtip control which contain two tabs.
    initial,the tabstrip is visible,and the button with icon_collapse icon.
    then,i click the button ,and the tabstrip must be invisible,and the button's icon will change to icon_expand.
    if i use screen-name conditions to set the tab invisible,but the tabstrip has a shadow on the screen.the color of the space obtained by the tabstrip is different with other space's color.
    How can i set the color same with other if i want to hide the tabstrip.
    ths very much.

    see the example of custom tabstrip control for 0591 infotype
    MODULE ztab_strip_active_tab_set OUTPUT.
       IF  psyst-dsubt EQ 'BNPF'.
         g_ztab_strip-pressed_tab = c_ztab_strip-tab2.
         LOOP AT SCREEN.
           IF screen-group4 = '060'.
             screen-active = 0.
             MODIFY SCREEN.
           ENDIF.
         ENDLOOP.
       ELSEIF  psyst-dsubt EQ 'BNES'.
         g_ztab_strip-pressed_tab = c_ztab_strip-tab1.
         LOOP AT SCREEN.
           IF screen-group4 = '050'.
             screen-active = 0.
             MODIFY SCREEN.
           ENDIF.
         ENDLOOP.
       ENDIF.
       IF   psyst-dsubt NE 'BNPF' AND psyst-dsubt NE 'BNES'.
          LOOP AT SCREEN.
           IF screen-group4 = '050'.
             screen-active = 0.
             MODIFY SCREEN.
           ENDIF.
         ENDLOOP.
          LOOP AT SCREEN.
           IF screen-group4 = '060'.
             screen-active = 0.
             MODIFY SCREEN.
           ENDIF.
         ENDLOOP.
         g_ztab_strip-pressed_tab = ' '.
       ENDIF.
       ztab_strip-activetab = g_ztab_strip-pressed_tab.
       CASE g_ztab_strip-pressed_tab.
         WHEN c_ztab_strip-tab1.
           g_ztab_strip-subscreen = '0201'.
         WHEN c_ztab_strip-tab2.
           g_ztab_strip-subscreen = '0203'.
         WHEN OTHERS.
           g_ztab_strip-subscreen = '0202'.
       ENDCASE.
    ENDMODULE.                    "ZTAB_STRIP_ACTIVE_TAB_SET OUTPUT
    check this for hiding one tabstrip in one subtype and another in next subtype

  • Popup Window in same component

    Hi All
    I have created a component that displays graph information.
    The users require a print verion of the view that shows the graph data.  I have created a new viewset and view in my component but i cannot display it in a popup.
    Here is the code.
    data: lr_popup type ref to IF_BSP_WD_POPUP.
      IF lr_popup IS NOT BOUND.
        lr_popup = me->comp_controller->window_manager->create_popup(
                              iv_interface_view_name = 'ZAGRI_MILK_REPS/MainWindow'
                              iv_usage_name          = 'printFriendlyPopup'
                              iv_title               = 'Popup' ).
        lr_popup->set_window_width( iv_width = 600 ).
      ENDIF.
      lr_popup->set_on_close_event( iv_view = me iv_event_name = 'EH_ONRETURN').
      lr_popup->open( 'OPEN_PRINT_POPUP' ).
    Has anyone done this
    any help would be great
    Thanks

    Got this sorted
    I had to create a new window, add the viewset to the window.
    I then added the new window to the component interface.
    I then created a new component usage that uses my new window and then the popup worked.

  • View to viewset communication

    Hi..
    how can we copy the viewset of one window into another window...

    I dont think you can copy the viewsets.
    You need to create them again.
    Also viewset is just a arrangement of view in window. You should copy the window or views.
    Regards,
    Ashwani Kr Sharma

  • Error while re-using view

    Hi,
    I've several views which i want to re-use but when i add a view which I have already used, i get the error:
    Processing HTTP request to servlet [dispatcher] finished with error.
    The error is: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: duplicate usage of view .BasketView
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:515)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:397)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:554)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:397)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:554)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:397)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:554)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:421)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:130)
         at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:41)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.displayToplevelComponent(ClientComponent.java:135)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:404)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:618)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:251)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Why cant I re-use my view?
    much thanks,
    Hugo

    Hallo Nikolay,
    my "Modeling Web Dynpro View Composition" tutorial was removed from the Web Dynpro Java sample applications page on SDN because I applied ViewSets and ViewAreas inside windows instead of ViewContainer  UI elements inside specific Web Dynpro layout views. Except this sub-optimal (as less flexible; you have more layout and sizing possibilities with ViewContainer UI Elements in virtual layout cells of container UI elements with Matrix or Grid layout in comparison to ViewAreas in ViewSets of a window) technique the tutorial is still very valuable for Web Dynpro application developers. As an example, it demonstrates the concept of creating multiple instances of the same visual component based on separate component usages. This principle is absolutely crucial for developing component-based Web Dynpro applications.
    You can read the tutorial description with all related links below.
    Regards, Bertram
    View Compositions
    This Web Dynpro sample application implements a complex view composition. The term view composition describes a set of all view assemblies that can be accessed by navigation. A view assembly consists of normal Web Dynpro views and interface views of Web Dynpro components within the browser window. You can model view compositions in the Navigation Modeler as part of the Web Dynpro tools.
    The following options are applicable to model view compositions:
    Embedding several views in view setsm, Embedding view sets in each other,     Embedding visible Web Dynpro components using their component interface views
    In this tutorial, a Web Dynpro component is embedded using two instances.
    Embedding views and view sets in view layouts by using the ViewContainerUIElement
    Code Sample
    The ready-to-use project is available to download from SDN  [13TutWD_ViewComposition.zip|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/business_packages/a1-8-4/13tutwd_viewcomposition.zip]
    Corresponding Tutorial: [Modeling View Compositions in Web Dynpro|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/2cceb190-0201-0010-be88-acdbeb2ad65f]
    Details
    Project Template: The initial project (starting point for this tutorial) is available to download from SDN: [13TutWD_ViewComposition_Init.zip|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/business_packages/a1-8-4/13tutwd_viewcomposition_init.zip]
    Level of complexity: Expert
    Key features covered: view sets, view assembly, view composition, nested view sets, component interface view, component usage, component reuse, multi-instance capability of Web Dynpro components, UI element Image, UI element ViewContainerUIElement, calculated context attributes
    Time required for completion: 2 hrs
    Created by: SAP AG

  • Remote Desktop Client 8.1.3 Display Issue

    We're running Microsoft Remote Desktop 2012R2 services including a Gateway/Connection Broker/Licensing server and  Remote Desktop Session Hosts servers.  Our clients include Windows systems, iPads and iPhones.
    Since the upgrade to Microsoft Remote Desktop Client for IOS 8.1.3 (which fixed our gateway connection issues using the previous 8.1.x IOS clients), we're still unable to use our iPads with a published application that runs a time clock to check
    children in/out of daycare centers.
    When launching the published application, the display does not scale to full screen.  A portion of the screen contains a black bar around the bottom and to the right of the window.  The touch control needed is hidden by
    the black bar.  This issue did not exist in clients prior to 8.1.x nor does it exist in Windows clients.
    Using the Pan Control does not resolve the issue.  If you activate the Pan control, the application is so magnified that you only see about 1/4th of the upper left of the screen.  Moving the window around or pinch to zoom in/out does not resolve
    the issue.
    Note that we have also published Microsoft Office 2010, Adobe Reader, Calculator and network share folders.  None of these apps experience the issue with a black bar hiding a portion of the application window.
    Any suggestions?

    Hi Dharmesh - Yes, we did reinstall the RD 8.1.3 IOS client on our iPads a few times.  And to answer your question, we are using a childcare software from the following company:
    http://www.procaresoftware.com/
    Microsoft Office 2010 as a published application appears to be functioning correctly with the iPads, although it hasn't been extensively tested.  Most of our remote desktop Office users are on Windows 7 systems.
    I've notified the Procare Software technical support team of this iPad issue and they forwarded the information on to their developers.  They are releasing an updated version of their software some time in the next week.  They have enhanced
    the resizing / rotation support for tablets in the next upgrade release, but are unsure whether our iPad display issue will be resolved. 
    If the issue is not resolved by the upgrade, they suggest we seek a resolution from Microsoft.  In the meantime, Procare stated that I could share this information with you.  They're also copied on this forum to keep up with your comments. 
    Note:  After we install the future upgrade of Procare Software, I'll report back here with the results.
    Regards.

  • Random slowdown of BufferedImage painting.

    Relying on another thread that dealed with painting background image in GUI using Borders, I wrote a custom Border that display an image in the background. This is quite smart and stylish, it works and looks beautifull, except that.....
    I get sometimes a slowdown (on specific images) in painting. I mean : if I resize the window that contain the JPanel with my "ImageBorder", or if I hide then re-make visible this window, with a lot of images it is cool but with some specific images (always the same files) is take 100% CPU for 3 to 10s.
    It is not size-dependant as I suspected, cause somme huge images repaint quick as some small ones repaint slow qith 100% CPU.
    It is not type-dependant (TYPE_INT_XXX or TYPE_BYTE_YYY or other) as I thought... I believed first that images with Alpha-channel where slower but is it false : huges TYPE_CUSTOM png images with alpha channel repaint faster than a specific TYPE_3BYTE_BGR small jpeg image...
    So is there a bug in J2SE 1.4 (I'm using Hotspot 1.4.1-b21, mixed mode) ?
    Or is my code wrong ? Is it possible to predict wich images will slow down painting process ?
    package jro.gui.border;
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Insets;
    import java.awt.geom.AffineTransform;
    import java.awt.image.AffineTransformOp;
    import java.awt.image.BufferedImage;
    import java.awt.image.BufferedImageOp;
    import javax.imageio.ImageIO;
    import javax.swing.border.Border;
    * A border with a background image for GUI enhancement...
    * @author Kilwch
    public class ImageBorder implements Border {
         private BufferedImage aImage;
         private ImageBorder(){
         public ImageBorder(BufferedImage backgroundImage){
              aImage=backgroundImage;
         /* (non-Javadoc)
          * @see javax.swing.border.Border#isBorderOpaque()
         public boolean isBorderOpaque() {
              //TODO : utiliser la transparence de l'image pour d�terminer si opaque ou non
              return true;
         /* (non-Javadoc)
          * @see javax.swing.border.Border#paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int)
         public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
              if(g instanceof Graphics2D){
                   Graphics2D g2d=(Graphics2D)g;
                   int w=aImage.getWidth(), h=aImage.getHeight();
                   if(w!=width || h!=height){
                        BufferedImageOp op=new AffineTransformOp(AffineTransform.getScaleInstance(width/(double)aImage.getWidth(),height/(double)aImage.getHeight()),AffineTransformOp.TYPE_BILINEAR);
                        //TODO PROBLEM Draw with scale op is high-CPU consuming  ! Due to Alpha channel ? Problem occured with QNS only
                        g2d.drawImage(aImage, op, x, y);
                   }else
                        g2d.drawImage(aImage, null, x, y);
         /* (non-Javadoc)
          * @see javax.swing.border.Border#getBorderInsets(java.awt.Component)
         public Insets getBorderInsets(Component c) {
              return new Insets(0,0,0,0);//Copie d�fensive, car Insets a des attributs publics ! grr...
         public static void main(String[] args) {
              if(args.length<1){
                   System.err.println("Missing argument : image URL/path");
                   System.exit(0x80010000);
              java.net.URL imageURL=ImageBorder.class.getClassLoader().getResource(args[0]);
              if(imageURL==null){
                   System.err.println("Invalid image URL/path : "+args[0]);
                   System.exit(0x80020000);
              BufferedImage img;
              try{
                   img=ImageIO.read(imageURL);
                   StringBuffer imgMsg=new StringBuffer(256);
                   imgMsg.append("Image loaded: ").append(imageURL).append("\n * type = ");
                   switch(img.getType()){
                        case BufferedImage.TYPE_3BYTE_BGR: imgMsg.append("TYPE_3BYTE_BGR"); break;
                        case BufferedImage.TYPE_4BYTE_ABGR: imgMsg.append("TYPE_4BYTE_ABGR"); break;
                        case BufferedImage.TYPE_4BYTE_ABGR_PRE: imgMsg.append("TYPE_4BYTE_ABGR_PRE"); break;
                        case BufferedImage.TYPE_BYTE_BINARY: imgMsg.append("TYPE_BYTE_BINARY"); break;
                        case BufferedImage.TYPE_BYTE_GRAY: imgMsg.append("TYPE_BYTE_GRAY"); break;
                        case BufferedImage.TYPE_BYTE_INDEXED: imgMsg.append("TYPE_BYTE_INDEXED"); break;
                        case BufferedImage.TYPE_CUSTOM: imgMsg.append("TYPE_CUSTOM"); break;
                        case BufferedImage.TYPE_INT_ARGB: imgMsg.append("TYPE_INT_ARGB"); break;
                        case BufferedImage.TYPE_INT_ARGB_PRE: imgMsg.append("TYPE_INT_ARGB_PRE"); break;
                        case BufferedImage.TYPE_INT_BGR: imgMsg.append("TYPE_INT_BGR"); break;
                        case BufferedImage.TYPE_INT_RGB: imgMsg.append("TYPE_INT_RGB"); break;
                        case BufferedImage.TYPE_USHORT_555_RGB: imgMsg.append("TYPE_USHORT_555_RGB"); break;
                        case BufferedImage.TYPE_USHORT_565_RGB: imgMsg.append("TYPE_USHORT_565_RGB"); break;
                        case BufferedImage.TYPE_USHORT_GRAY: imgMsg.append("TYPE_USHORT_GRAY"); break;
                        default: imgMsg.append("unknown");
                   imgMsg.append(" (type ").append(img.getType()).append(")");
                   imgMsg.append("\n * Dim = ").append(img.getWidth()).append("x").append(img.getHeight());
                   System.out.println(imgMsg);
              }catch(java.io.IOException pIOEx){
                   System.err.println(pIOEx);
                   System.exit(0x80030000);
                   img=null;//Yes, thats dead code !
              javax.swing.JFrame testFrame=new javax.swing.JFrame();
              testFrame.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
              testFrame.setTitle("Test frame for "+ImageBorder.class.getName());
              testFrame.setSize(img.getWidth(), img.getHeight());
              ((javax.swing.JPanel)testFrame.getContentPane()).setBorder(new ImageBorder(img));
              testFrame.getContentPane().setLayout(new BorderLayout());
              javax.swing.JLabel [] l={new javax.swing.JLabel(args[0]),new javax.swing.JLabel()};
              l[0].setForeground(new java.awt.Color(0x00,0x00,0x66,0xC0));
              l[0].setBackground(new java.awt.Color(0xFF,0xFF,0x99,0x30));
              l[0].setOpaque(true);
              testFrame.getContentPane().add(l[0], BorderLayout.NORTH);
              testFrame.getContentPane().add(l[1], BorderLayout.CENTER);
              testFrame.setVisible(true);
    }

    I've just tried out the VolatileImage. It is a partial workaround for my problem :
    1) the very first paint of my VolatileImage (and next "first paint after contentLost") takes bloody ages, because I need to create a BufferedImage first (from an URL).
    2)Then, each time I need to resize my VolatileImage (because I want it to fit the JFrame's content pane), I have to recreate it, so I re-use the BufferedImage that is the source data, and it re-takes bloody ages.
    3) it is OK since the content of VolatileImage is not lost. So minimize/restore the parent JFrame does not slow down repaint anymore, hiding the parent JFrame with another window then putting it back to front does not slow repaint anymore.
    4)Big Alpha problem : The volatile image is used to paint the borders of the content pane. Imagine now your content pane contains a yellow JLabel with 75% transparency : when another window passes over the JLabel, it look ugly (the window lets dirty marks). It seems that transparent components does not refresh with the underlying image like expected.
    (Note that I know where the slowdown occurs in the paint method : it occurs during image resize (scaling with BufferedImageOp). But I repeat, only on specific images, regardless of their size&colordepth. As I always need a BufferedImage to "remember" the picture to paint on VolatileImage, the slowdown occurs less often, but still occurs)
    Test it for the 4th problem (1st and 2nd come along with specifig images only), passing an image path as 1st arg (note the path is relative to current dir or any classpath dir as I'm using getRessource method):
    package jro.gui.border;
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Insets;
    import java.awt.geom.AffineTransform;
    import java.awt.image.AffineTransformOp;
    import java.awt.image.BufferedImage;
    import java.awt.image.BufferedImageOp;
    import java.awt.image.VolatileImage;
    import javax.imageio.ImageIO;
    import javax.swing.border.Border;
    * A border with a background image for GUI enhancement...
    * @author rousseau_j
    public class VolatileImageBorder implements Border {
         private VolatileImage aVImage;
         private BufferedImage aStaticImage;
         private VolatileImageBorder(){
         public VolatileImageBorder(BufferedImage backgroundImage){
              aStaticImage=backgroundImage;
         /* (non-Javadoc)
          * @see javax.swing.border.Border#isBorderOpaque()
         public boolean isBorderOpaque() {
              //TODO : utiliser la transparence de l'image pour d�terminer si opaque ou non
              return true;
         /* (non-Javadoc)
          * @see javax.swing.border.Border#paintBorder(java.awt.Component, java.awt.Graphics, int, int, int, int)
         public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
              if((g instanceof Graphics2D)&& c!=null){
                   Graphics2D g2d=(Graphics2D)g;
                   if(aVImage==null){
                        aVImage=c.createVolatileImage(width, height);
                   int w=aVImage.getWidth(), h=aVImage.getHeight();
                   if(w!=width || h!=height){
                        aVImage=c.createVolatileImage(width, height);
                   do{
                        int returnCode = aVImage.validate(c.getGraphicsConfiguration());
                        if (returnCode == VolatileImage.IMAGE_RESTORED) {
                             renderOffscreen(c, x, y, width, height);
                        } else if (returnCode == VolatileImage.IMAGE_INCOMPATIBLE) {
                             aVImage = c.createVolatileImage(width, height);
                             renderOffscreen(c, x, y, width, height);
                        g2d.drawImage(aVImage, 0, 0, c);
                   }while(aVImage.contentsLost());
         private void renderOffscreen(Component c, int x, int y,int width,  int height){
              System.out.print("renderOffscreen{");//TEST
              do{
                   System.out.print("do{...");//TEST
                   if(aVImage.validate(c.getGraphicsConfiguration())==VolatileImage.IMAGE_INCOMPATIBLE){
                        aVImage=c.createVolatileImage(width, height);
                   Graphics2D vImgG2d=aVImage.createGraphics();
                   int w=aStaticImage.getWidth(), h=aStaticImage.getHeight();
                   if(w!=width || h!=height){
                        //TODO : option pour une redim d�finitive si image trop grande
                        BufferedImageOp op=new AffineTransformOp(AffineTransform.getScaleInstance(width/(double)aStaticImage.getWidth(),height/(double)aStaticImage.getHeight()),AffineTransformOp.TYPE_BILINEAR);
                        //TODO PROBLEM Draw with scale op is high-CPU consuming  ! Due to Alpha channel ? Problem occured with QNS only
                        vImgG2d.drawImage(aStaticImage, op, x, y);
                   }else
                   vImgG2d.drawImage(aStaticImage, null, x, y);
                   vImgG2d.dispose();
                   System.out.print("...}while; ");//TEST
              }while(aVImage.contentsLost());
              System.out.println("}\n");//TEST
         /* (non-Javadoc)
          * @see javax.swing.border.Border#getBorderInsets(java.awt.Component)
         public Insets getBorderInsets(Component c) {
              return new Insets(0,0,0,0);//Copie d�fensive, car Insets a des attributs publics ! grr...
         public static void main(String[] args) {
              if(args.length<1){
                   System.err.println("Missing argument : image URL/path");
                   System.exit(0x80010000);
              java.net.URL imageURL=VolatileImageBorder.class.getClassLoader().getResource(args[0]);
              if(imageURL==null){
                   System.err.println("Invalid image URL/path : "+args[0]);
                   System.exit(0x80020000);
              BufferedImage img;
              try{
                   img=ImageIO.read(imageURL);
                   StringBuffer imgMsg=new StringBuffer(256);
                   imgMsg.append("Image loaded: ").append(imageURL).append("\n * type = ");
                   switch(img.getType()){
                        case BufferedImage.TYPE_3BYTE_BGR: imgMsg.append("TYPE_3BYTE_BGR"); break;
                        case BufferedImage.TYPE_4BYTE_ABGR: imgMsg.append("TYPE_4BYTE_ABGR"); break;
                        case BufferedImage.TYPE_4BYTE_ABGR_PRE: imgMsg.append("TYPE_4BYTE_ABGR_PRE"); break;
                        case BufferedImage.TYPE_BYTE_BINARY: imgMsg.append("TYPE_BYTE_BINARY"); break;
                        case BufferedImage.TYPE_BYTE_GRAY: imgMsg.append("TYPE_BYTE_GRAY"); break;
                        case BufferedImage.TYPE_BYTE_INDEXED: imgMsg.append("TYPE_BYTE_INDEXED"); break;
                        case BufferedImage.TYPE_CUSTOM: imgMsg.append("TYPE_CUSTOM"); break;
                        case BufferedImage.TYPE_INT_ARGB: imgMsg.append("TYPE_INT_ARGB"); break;
                        case BufferedImage.TYPE_INT_ARGB_PRE: imgMsg.append("TYPE_INT_ARGB_PRE"); break;
                        case BufferedImage.TYPE_INT_BGR: imgMsg.append("TYPE_INT_BGR"); break;
                        case BufferedImage.TYPE_INT_RGB: imgMsg.append("TYPE_INT_RGB"); break;
                        case BufferedImage.TYPE_USHORT_555_RGB: imgMsg.append("TYPE_USHORT_555_RGB"); break;
                        case BufferedImage.TYPE_USHORT_565_RGB: imgMsg.append("TYPE_USHORT_565_RGB"); break;
                        case BufferedImage.TYPE_USHORT_GRAY: imgMsg.append("TYPE_USHORT_GRAY"); break;
                        default: imgMsg.append("unknown");
                   imgMsg.append(" (type ").append(img.getType()).append(")");
                   imgMsg.append("\n * Dim = ").append(img.getWidth()).append("x").append(img.getHeight());
                   System.out.println(imgMsg);
              }catch(java.io.IOException pIOEx){
                   System.err.println(pIOEx);
                   System.exit(0x80030000);
                   img=null;//Yes, thats dead code !
              javax.swing.JFrame testFrame=new javax.swing.JFrame();
              testFrame.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
              testFrame.setTitle("Test frame for "+VolatileImageBorder.class.getName());
              testFrame.setSize(img.getWidth(), img.getHeight());
              ((javax.swing.JPanel)testFrame.getContentPane()).setBorder(new VolatileImageBorder(img));
              testFrame.getContentPane().setLayout(new BorderLayout());
              javax.swing.JLabel [] l={new javax.swing.JLabel(args[0]),new javax.swing.JLabel()};
              l[0].setForeground(new java.awt.Color(0x00,0x00,0x66,0xC0));
              l[0].setBackground(new java.awt.Color(0xFF,0xFF,0x99,0x30));
              l[0].setOpaque(true);
              testFrame.getContentPane().add(l[0], BorderLayout.NORTH);
              testFrame.getContentPane().add(l[1], BorderLayout.CENTER);
              testFrame.setVisible(true);
    }

  • Upgrade Software from v4 to v5

    Hi All
            I owne BB Curve 8520 and I had alot of problems with software so I dowengrede it from v5 to v4 It works good.
    Now am tryong to Upgreade it agin to v5 from Desktop softwaer I had this Masseage:
    '' This BlackBerry® Device Software upgrade includes new features and significant enhancements to the BlackBerry® solution and, as such, is only available to users with an active BlackBerry subscription. To learn more about BlackBerry® service, please visit www.blackberry.com/service.''
    and the link above is not valid.
    *Note: i have the latest Desktop version.
    Really I need help

    You need to disconnect EVERY internet connection from the PC, unplug any DSL cable and disable any wireless. Take the SIM card out of the 8520. Then proceed with the manual upgrade.
    See the link below for the download, and follow these simple installation instructions.
    First locate your carrier and the OS file you wish to use.
    http://na.blackberry.com/eng/support/downloads/download_sites.jsp
    Do a backup of your device first, using Desktop Manager > Backup. Close Desktop Manager upon completion.
    1. Download the OS file to the PC then install it to the PC by running (double clicking) the file you downloaded.
    2. Go to c:\program files\common files\research in motion\apploader and delete the file named "vendor.xml." (You might have another Vendor.xml file hiding on your computer. Open Windows Explorer and under the Organize button (on Windows 7, there are similar tools for Vista and XP) click on "Folder and search options." Under the View tab, make sure that your computer is set to show hidden folders and files. Once you've done this, search your C:\ drive for "Vendor.xml".)
    3. Plug in BB and double click on "Loader.exe." It's located in the same place as the above vendor.xml file.
    **Starting with the later OS6 releases, there are now three copies of VENDOR.XML
    C:\Program Files\Common Files\Research In Motion\AppLoader (for 32-bit Windows XP/Vista/7)
    ==========OR============
    C:\Program Files (x86)\Common Files\Research In Motion\AppLoader (for 64-bit Windows Vista/7)
    C:\Documents and Settings\*name*\AppData\Roaming\Research In Motion\BlackBerry\Loader XML
    C:\Documents and Settings\*name*\Application Data\Research In Motion\BlackBerry\Loader XML
    You can also just search for VENDOR.XML. Make sure that you choose ADVANCED SEARCH and include hidden files. It should show the file in at three locations. Delete every copy that it finds.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Unable to open bsp component because of dump.

    I have tried to add  viewset in the window of the controller for creating a new search component but when I did this  an error came and after that I am not able to open the component from component workbench.
    What could be the error and the possible solution........?
    Thanks in advance.

    Delete the enhancement done on the component and do it all over again.
    Follow the instructions from the below given OSS note
    Note 1122248 - Consultation:Procedure when dealing w/framework enhancements
    Thanks,
    Thirumala.

Maybe you are looking for

  • Domain either does not exist or could not be contacted

    Ok where to start! Existing 2003 domain (2x DC) New 2012 server - i have followed https://www.youtube.com/watch?v=OG5K6B7hgRU as i hadn't done a migration to 2012 Everything was generally ok, Active Directory appeared in sync as i had the users/compu

  • Change "Update distribution points on a schedule" in SCCM 2007 via powershell script

    Hi I would like to change the Custom Schedule start time in the "Update distribution points on a schedule" on a package in SCCM 2007 with out logging into the SCCM console. I have following line code to query the package. Get-WmiObject -Namespace "R

  • Alarm functions on Centro?

    It's really convenient for me to use my phone as a daily alarm to wake me up.  I just got my first Palm (Centro) and I am somewhat disappointed in the apparent lack of this seemingly obvious function.  I can't seem to find a way to have a daily recur

  • Safari - Blocked Plug-In - System Admin Point of View!

    Hi All, What is Apple's guidelines with blocking Plug-Ins when it comes to system administration of 200+ Macs where users do not have admin rights? Thanks, Dave

  • Mouse Leave Trigger Problem

    hi, I am using Oracle 9i Forms on windows 2000 Server. My Form [32 bit] Builder Version is : 9.0.2.7.0 I am facing a problem using the WHEN-MOUSE-LEAVE Trigger. I have applied this trigger on an ITEM in a DATA BLOCK but the Trigger is not fired when