Look & Feel Change For A Single Component of A Gui

Hi All,
I am using the wonderful windows XP look and feel that stefan krause has put together. However, I want to change just the background of the menubars. When I do menuBar.setBackground(color) this doesn't override what is the default colour set by the look and feel.
I just want to change this little bit of the look and feel, what is the best way of doing this?
Adam

I switched back and forth by alternately calling
UIManager.setLookAndFeel("com.stefankrause.xplookandfeel.XPLookAndFeel");
...create some components...
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
...create some more components...
UIManager.setLookAndFeel("com.stefankrause.xplookandfeel.XPLookAndFeel");
...and create even more...
It seemed to work, but I'm not sure that's the best way.

Similar Messages

  • Changing LookAndFeel for a single component

    Is it possible to change the LookAndFeel for a single component (example FileChooser) ?
    regards,
    nirvan.

    In the case of a file chooser: you can use JFileChooser which will use the current look and feel or you can use the old AWT FileDialog which will use the system's look and feel. The FileDialog naturally has less things you can do with it.Thanks for thre reply. Actually I want to use windows look and feel for the JFileChooser dialog, because the metal look and feel does not display default icons associated with file type. Right now I am switching to the windows look and feel just before the JFileChooser code and then when file choosing is done, switching back to metal look and feel. Is that alright or does that have any potential implications ?
    regards,
    nirvan.

  • Different Style for a single component

    Hi Everyone,
    <<Searched in the forum but could not find my specific need.>>
    Environment : Studio Edition Version 11.1.2.3.0
    I have a multiple panelTabbed components in my applicatioin. I have a Custom SKIN for styling.
    But for one specific PanelTabbed,  the customer wanted to display the tabs as links. There are two questions here
    1. Is there a way I can display tabs as command links
    2. Using Css can i achieve showing tab as a link.
    Best Regards,
    bnkr524

    bnkr, you don't applay a different skin, but you applay a different style class from your active skin which changes the look & feel of the component.
    Sample: This is the active skin for an af:inputText cmponent
    af|inputText { padding-top: 2px; }
    af|inputText::label
      width:11.0em;
        display:block;
        float:left;
        color:#333333;
        background-color: #ffffff;
        margin-top:0.3em;
      text-align:left;
    Now you can define a new style class .mySpecialInputText as
    .mySpecialInputText af|inputText::label
         width:1.0em;
         text-align:right;
            background-color: #0f0f0f;
            padding-right: 3px;
    If you now specify the 'mySpecialInputText' as styleclass on an inputText component it uses the new style.
    Timo

  • No calendar change for a single event in a recurrring string of events

    Why won't iCal allow me to change the calendar for a single event in a string of recurring events? Why am I not allowed this, but can change other details and even get prompted whether I want these changes to take effect over the single event or all the recurring events????
    Could this be implemented in a future version of iCal???
    Thanks.

    How are you making the .ics file? What value has the METHOD: entry?
    AK

  • Adf faces skin-family change for page or component

    I know how to change this by editing adf-faces-config.xml tile. Is it possible to change the skin-family at a page level or for even for an individual component?

    You can change the skin at the page level by setting the value of the skin-family property to an expression language:
    <adf-faces-config xmlns="http://xmlns.oracle.com/adf/view/faces/config">
    <skin-family>#{skinFamily.skinSelection}</skin-family>
    </adf-faces-config>
    Where skinFamily is a managed bean and skinSelecion can be implemented as follows:
    public String getSkinSelection()
    FacesContext context = FacesContext.getCurrentInstance();
    UIViewRoot viewRoot = context.getViewRoot();
    String viewId = viewRoot.getViewId();
    System.out.println(viewId);
    if ( viewId.startsWith("/blaf/") ) {
    skinSelection = "oracle";
    else if ( viewId.startsWith("/minimal/") ) {
    skinSelection = "minimal";
    else if ( viewId.startsWith("/vantive/") ) {
    skinSelection = "vantive";
    return skinSelection;
    If you want to have two components, let's say, two tables, at the same page but with a different style you can accomplish that by using the inline-style tag.
    []'s

  • [JProgressBar][Look&feel] Change the color

    I want to change the color of my JProgressBar :
    I have tried :
    UIManager.put("ProgressBar.foreground", new ColorUIResource(255, 0, 0));
    progressBar.updateUI();
    and
    progressBar.setForeground(Color.RED);[b]
    When I use the default look&feel, it works but with a custom look&feel (com.birosoft.liquid.LiquidLookAndFeel), the color isn't changed.
    Does anybody has an idea ?
    thanks in advance
    sylvain_2020

    hi,
    you're right but when I do :
    <b>this.progressBar.setForeground(Color.RED);
    this.progressBar.updateUI();</b>
    Nothing changes. I found that the probleme comes from the look & feel that I used since the color is changed when I don't specify any look and feel ...
    Do you know how I could resolve this ?
    Sylvain

  • Period Change for a single month

    Hi All
    We are currently on a year dependant fiscal year - 4,4,5 FY variant..
    However, for the month of september - the period 9 closes on the 26th but they want to extend ONLY that period till the 30th of September..
    Since we are still in July - would that change be ok to perform or not? Would it cause any issues in our system..?
    Thank you
    Rukshana

    It will not have any negative impact technically to change the future period in a fiscal year dependent variant.
    Regards,
    Gaurav

  • Changing shell, look & feel dynamically in desktop backing file

    (I apologize if this post is showing up twice - I tried posting with
    google groups but it doesn't appear at forums.bea.com, so I wanted to
    post again using xnews to make sure it shows up.)
    I have a backing file that I am using with my desktop and I need to be
    able to change the shell and look & feel dynamically, based on the page
    that is currently active. I am doing the following in the preRender()
    method:
    String newLAF = "myLookAndFeel";
    String newShell = "myShell";
    // here is where I would determine the appropriate LAF and shell based on the current page
    customizationContext = new CustomizationContext(Locale.getDefault(), request);
    customizationContext.setVisitorMode(true);
    DesktopView desktopView =
    PortalBeanManager.getPortalCustomizationManager().getDesktopView(customizationContext, webAppName, new PortalPath(portalPath), new DesktopPath(desktopPath));
    DesktopInstanceId dii = desktopView.getDesktopInstanceId();
    DesktopInstance di = PortalBeanManager.getPortalCustomizationManager().getDesktopInstance(customizationContext, dii);
    LookAndFeelDefinitionId lookAndFeelId = null;
    for(int i = 0, n = lookAndFeelDefinitions.length; i < n; i++) {
    if(newLAF.equals(lookAndFeelDefinitions.getDefinitionLabel())) {
    lookAndFeelId = lookAndFeelDefinitions[i].getLookAndFeelDefinitionId();
    break;
    di.setLookAndFeelDefinitionId(lookAndFeelId);
    ShellDefinitionManager shellManager = PortalBeanManager.getShellDefinitionManager();
    ShellDefinitionId shellId = null;
    ShellDefinition[] shellDefinitions = getShellDefinitions(webAppName, request.getLocale(), request);
    for(int i = 0, n = shellDefinitions.length; i < n; i++) {
    String shellName = shellManager.getShellView(customizationContext, shellDefinitions[i].getShellDefinitionId()).getMarkupView().getMarkupDefinition().getName();
    if(newShell.equals(shellName)) {
    shellId = shellDefinitions[i].getShellDefinitionId();
    break;
    di.setShellDefinitionId(shellId);
    PortalBeanManager.getPortalCustomizationManager().updateDesktopInstance(customizationContext, di);
    This works just fine, but I once the portal renders itself in my
    browser, I usually have to refresh the page before the changes to the
    shell and look & feel are visible. I would like to do this in the
    init() method of the backing file but I do not know how to determine
    the current active page from within init.
    I would appreciate any help you all could give me in finding a solution
    so I do not have to refresh the page in order to see the shell and look
    & feel changes. Thanks in advance!
    Andy

    We essentially have 2 "portals" running inside 1 .portal file. We'd
    like to be able to use single sign on and entitlements to allow/restrict
    access to various parts of the 2 portals (where certain books are
    consider part of portal "A" and others part of portal "B"). If you are
    logged in as a super-user, you will be able to access everything. If
    you are logged in as user type "A" you can only access portal "A," and
    similarly for user type "B" and portal "B."
    Portals A and B have each have a distinct header, footer (i.e. shell),
    and look and feel (skeleton and skin). If a super-user is looking at
    portal A, the portal should have portal A's header, footer, and look and
    feel, and similarly for portal B.
    How would you recommend we accomplish this? Would it make more sense
    (and is it possible) to have the header and footer jsps determine what
    content to render based on the current book or page, and then use the
    code you suggested below to change the look and feel dynamically?
    Thanks,
    Andy
    jolleyc wrote:
    in order to pick up the changes for that request you will need to do a redirect back to the server (our login examples shwo you how to do this). this is because the control tree has already been retrieved from the database (so you need to go back and get a new version).
    I quick note: If you plan on doing this a lot this is quite a heavy process. if you just need to change the lookAndFeel on the fly you can look at the following ( i t think this is in the tutorial portal)
    A) Modify the shell to include a jsp and backing file
    <netuix:header>
    <netuix:jspContent backingFile="com.acme.DynamicLookAndFeelHeaderBacking" contentUri="/portlets/lookAndFeel/dynamicLookAndFeelHeader/dynamicLookAndFeelHeader.jsp"/>
    </netuix:header>
    B) backing file looks like
    public void init(HttpServletRequest request, HttpServletResponse response)
    // Get the session from the request
    HttpSession session = request.getSession();
    // Get the LookAndFeel object from the PrimaryTheme in the request
    LookAndFeel lookAndFeel = LookAndFeel.getLookAndFeel(request);
    if (request.getParameter("defaultButton") != null)
    session.setAttribute("skin", "default");
    if (request.getParameter("textButton") != null)
    session.setAttribute("skin", "text");
    if (request.getParameter("classicButton") != null)
    session.setAttribute("skin", "classic");
    String selectedSkin = (String) session.getAttribute("skin");
    if (selectedSkin != null)
    lookAndFeel.setSkin(selectedSkin);
    lookAndFeel.setSkeleton(selectedSkin);
    lookAndFeel.reinit();

  • Look and feel change listener ?

    Hello,
    Is it possible to somehow catch Look and Feel change (for example trough some listener) ?

    Hello,
    Is it possible to somehow catch Look and Feel change (for example trough some listener) ?

  • How to set multiple styles on a single component in flex ?

    Hi ,
    I would like to know how to set multiple styles on a single component in flex.
    Can anyone give me an example as to how to set multiple styles for a single component ?
    Thanks ,
    Regards,
    Ajantha

    Hi tuliptaurus,
    You can setStyleName property for chnaging the external css dynamically by using the setStyle() method ...
    btn.setStyle("styleName","blendButtonSkinOther");
    You can change the external css by using the styleaName property with setStyle method..the line in blue..where blendButtonSkinOther is another css class..
    blendButtonSkin {
        fontFamily: Arial;
        fontSize: 11;
        color: #F1F1F1;
        textRollOverColor: #F1F1F1;
        textSelectedColor: #F1F1F1;
        horizontal-align:center;
        width:150;
        height:30;
        cornerRadius:5;
        upSkin:ClassReference('assets.skins.BlendButtonSkin');
        downSkin:ClassReference('assets.skins.BlendButtonSkin');
        overSkin:ClassReference('assets.skins.BlendButtonSkin');
        disabledSkin:ClassReference('assets.skins.BlendButtonSkin');
        selected-up-skin: ClassReference('assets.skins.BlendButtonSkin');
        selected-down-skin: ClassReference('assets.skins.BlendButtonSkin');
        selected-over-skin: ClassReference('assets.skins.BlendButtonSkin');
    blendButtonSkinOther {
        fontFamily: Arial;
        fontSize: 11;
        color: #F1F1F1;
        textRollOverColor: #F1F1F1;
        textSelectedColor: #F1F1F1;
        horizontal-align:center;
        width:150;
        height:30;
        cornerRadius:5;
        upSkin:ClassReference('assets.skins.BlendButtonSkin');
        downSkin:ClassReference('assets.skins.BlendButtonSkin');
        overSkin:ClassReference('assets.skins.BlendButtonSkin');
        disabledSkin:ClassReference('assets.skins.BlendButtonSkin');
        selected-up-skin: ClassReference('assets.skins.BlendButtonSkin');
        selected-down-skin: ClassReference('assets.skins.BlendButtonSkin');
        selected-over-skin: ClassReference('assets.skins.BlendButtonSkin');
    Thanks,
    Bhasker Chari

  • Setting Themes for Java Look & Feel

    Hi All,
    I am tring to set my customized theme to Java Look & Feel. I am able to set the theme using the following code:
    ASC_WhiteSatin theme = new ASC_WhiteSatin();
    MetalLookAndFeel.setCurrentTheme(theme);
    The above code works fine and changes the color schemes correctly.
    If I set another theme after setting the previous one i.e.let say abc Theme, dialogs and frames are updated properly where as JFileChooser start showing combination of both. Why?
    I am also updating the Look & Feel and calling
    SwingUtilities.updateComponentTreeUI(this);
    SwingUtilities.updateComponentTreeUI(this.getParent());
    ((JFrame)this.getParent()).pack();
    to refresh the themes for my frame. I am using JDK 1.4.1.
    Thanks in advance
    Wahaj

    try the beta-version of 1.4.2

  • Changing Look & Feel of Detailed Navigation

    Hi Gurus
    I want to change Look & feel (e.g. font size, font type, background color etc) of Detailed Navigation in portal.
    Please can anyone let me know which PAR file or files I need to modify for that?
    Thanks,
    Vaibhav Srivastava

    hi Vibhav,
    I think the below article will help you to get the exact par file, how to modify and see the changes in portal.
    -it is my own article:)
    [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60caa539-8e51-2a10-0e83-e0a68ab3f5aa|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60caa539-8e51-2a10-0e83-e0a68ab3f5aa]

  • [solved] How-To apply lxappearance Look&Feel for qpdfview?

    Hello,
    as the title says: I wonder if there is a way to get the configured lxappearance Look & Feel for the qpdfview pdf-viewer.
    I'd also write some code if necessary but I'm don't know where I should start…
    Help is as always appreciated. :-)
    Thanks in advance!
    Cheers,
    domac
    Last edited by domac (2012-08-16 16:29:29)

    Hello!
    You just need to install "libgnomeui". This package (or some of it dependencies... I never "investigated" what exactly happens) provides what is necessary to make Qt applications use the GTK theme. Probably it is going to work right after the installation. If not, try to logoff/login or restart the computer. And, as a "last resort" (it should not be necessary), change the Qt settings, on "qtconfig", to make it use the GTK+ Gui Style.
    I hope this have worked. Anything else, just ask!

  • Changing look & feel in jsp

    Hi,
    This is regarding to change the look & feel using jsp
    i have create two .laf files (each contain differnt skin & skeleton)
    in .jsp
    a) how to show the look & feel names dynamically? (in dropdown)
    b)when i select a particular look & feel, then that look & feel has to apply for the desktop.
    how to achieve this. pls let me know.
    Thanks,
    Natesh.

    I guess the OAM is the Oracle Access Manager of oracle's fusion middleware? Also 'webgate plugin' and 'access servers' do point me that way.
    This is the linux forum. You should ask your question probably in the identity management forum: Identity Manager

  • Ok, using Windows Look-feel ... any changes?

    Hi:
    I am presently using the Kunststoft theme. I want to the use the SUN supplied Windows Look-feel, but I cannot change the black background in my desktop application. I use JInternal frames but start with a desktop pane.
    Does anyone know how to specifically change the black background over the "default" black background that the windows UI sets. I tried setBackground(new Color(255,0,0)); .. got red for a moment, then the screen changed to black.
    Any help appreciated. I really like the Windows Look-feel, but a lighter background desktop area is preferred.
    Thanks,
    PiratePete

    After you set the Windows L&F, you must set another property.
    Here is an example:
    //Set the system L&F
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    //Perhaps the system is windows, so you must do this if you want to see
    //the mnemonics without pressint Alt key
    WindowsLookAndFeel.setMnemonicHidden(false);

Maybe you are looking for

  • In ESS-Leave Request -A critical error has occured.

    In ESS when tried to enter the Leave which is under Leave request the below error occured: Critical Error A critical error has occured. Processing of the service had to be terminated. Unsaved data has been lost. Please contact your system administrat

  • Bad Performance on SQL 2005 multiserver installation

    We have upgraded our server environment from  a single server solution with SQL 2000 and are now running on a multiserver solution with one DB server with SQL 2005 and two applictionservers. And now we are experience a much slower performance in our

  • CS6 New Pattern

    Hi everyone, Question regarding newly created PATTERNS: Once "Save a copy" is done, where is saved this pattern / what file' extension is generated. How can I make my own directory with all new patterns , always available for my futur work. I guess I

  • Incident BEA-337 [WebLogicServer]

    Hi, I am getting below error in the grid: Incident (BEA-337 [WebLogicServer]) detected in /u02/app/oracle/gc_inst/user_projects/domains/GCDomain/servers/EMGC_OMS1/adr/diag/ofm/GCDomain/EMGC_OMS1/alert/log.xml at time/line number: Sun Jun 9 01:08:25 2

  • Problems with SB X-Fi Au

    I have been having a couple problems with my computer/sound card. First whenever I try plugging in a mic and headset and try connecting to a program such as ventrilo or teamspeak it immediately gives me the blue error screen. When I reboot the comput