Look & Feel of custom JOptionPanes

How do you get the look and feel of custom built JOptionPane's to match that of the parent frame? Although the parent frame in my case is the java look and feel, the JOptionPane is showing up with a windows look and feel. I couldn't find any JOptionPane methods that even allowed one to reset the look and feel. Any suggestions would be appreciated. Thanks!

You can set JOptionPane L&F parameters with:
UIManager.put("OptionPane.background", Color.black);
here is a list of all parameters for OptionPane, i hope helps you:
OptionPane.errorDialog.titlePane.shadow-->javax.swing.plaf.ColorUIResource[r=204,g=102,b=102]
OptionPane.warningDialog.titlePane.background-->javax.swing.plaf.ColorUIResource[r=255,g=204,b=153]
OptionPane.errorDialog.titlePane.background-->javax.swing.plaf.ColorUIResource[r=255,g=153,b=153]
OptionPane.buttonAreaBorder-->javax.swing.plaf.BorderUIResource$EmptyBorderUIResource@1815859
OptionPane.warningDialog.titlePane.foreground-->javax.swing.plaf.ColorUIResource[r=102,g=51,b=0]
OptionPane.questionDialog.border.background-->javax.swing.plaf.ColorUIResource[r=51,g=102,b=51]
OptionPane.windowBindings-->[Ljava.lang.Object;@50d89c
OptionPane.questionSound-->sounds/OptionPaneQuestion.wav
OptionPane.errorSound-->sounds/OptionPaneError.wav
OptionPane.warningSound-->sounds/OptionPaneWarning.wav
OptionPane.errorDialog.titlePane.foreground-->javax.swing.plaf.ColorUIResource[r=51,g=0,b=0]
OptionPane.buttonClickThreshhold-->500
OptionPane.questionDialog.titlePane.background-->javax.swing.plaf.ColorUIResource[r=153,g=204,b=153]
OptionPane.errorIcon-->javax.swing.plaf.IconUIResource@15b0afd
OptionPane.warningDialog.titlePane.shadow-->javax.swing.plaf.ColorUIResource[r=204,g=153,b=102]
OptionPane.font-->javax.swing.plaf.FontUIResource[family=Dialog,name=Dialog,style=plain,size=12]
OptionPane.messageForeground-->javax.swing.plaf.ColorUIResource[r=0,g=0,b=0]
OptionPane.informationSound-->sounds/OptionPaneInformation.wav
OptionPane.questionDialog.titlePane.foreground-->javax.swing.plaf.ColorUIResource[r=0,g=51,b=0]
OptionPane.informationIcon-->javax.swing.plaf.IconUIResource@1dfc547
OptionPane.foreground-->javax.swing.plaf.ColorUIResource[r=0,g=0,b=0]
OptionPane.border-->javax.swing.plaf.BorderUIResource$EmptyBorderUIResource@10f6d3
OptionPane.messageAreaBorder-->javax.swing.plaf.BorderUIResource$EmptyBorderUIResource@cfec48
OptionPane.background-->javax.swing.plaf.ColorUIResource[r=204,g=204,b=204]
OptionPane.questionIcon-->javax.swing.plaf.IconUIResource@2a15cd
OptionPane.minimumSize-->javax.swing.plaf.DimensionUIResource[width=262,height=90]
OptionPane.questionDialog.titlePane.shadow-->javax.swing.plaf.ColorUIResource[r=102,g=153,b=102]
OptionPane.errorDialog.border.background-->javax.swing.plaf.ColorUIResource[r=153,g=51,b=51]
OptionPane.warningIcon-->javax.swing.plaf.IconUIResource@12d15a9
OptionPane.warningDialog.border.background-->javax.swing.plaf.ColorUIResource[r=153,g=102,b=51]

Similar Messages

  • UIX Look&Feel with custom icons

    I am trying to create my own look and feel configuration for a UIX application and I still want to allow customers to easily change the colors of the look and feel by just using a different .xss file.
    This works nicely apart from the icons I used e.g. for the content container.
    Now my question what do I have to do to automatically color my icons in colors defined in the .xss file as the regular BLAF does.
    Can I declare this somehow in my LookAndFeelConfig.xml file? Or do I have to use the
    <instance class="" method=""/> element for the image. If so are there any utility classes from UIX that help me change the color of an image?
    thanks,
    Guido
    Currently what I have is smthg. like this:
    <icon name="contentContainerLightHeaderStart">
    <context-image uri="Images/fti_alternate/cnr_drk_tl.gif"/>
    </icon>
    With the icon having a fixed color idependent of any styles.

    repost. Is this supported or not?
    I decompiled part of the UIX framework and it seems this is not really intended as the class coloring the Icons uses some fixed style names and is only useful for the OracleDesktopLookAndFeel.
    Are you thinking of making something like this available in one of the next releases?
    I think this would a be a very nice feature. At least what I suggest is that for Instance icons the method that returns the icon gets a RenderingContext (and maybe the name of the icon so you can have one method for mulitple icons) - this way a you can implement the code to color the icon in that method.
    Let me know what you think.
    Guido

  • Customizing ADF Faces Look & Feel. Some questions & suggestions

    Hi everybody,
    We are developing an application with ADF Faces using JHeadStart. For the moment, I am studying the way we must modify the JHS templates to adapt each element to our needs.
    As it's told in the JHeadStart Developer's Guide, there are two ways to customize Look & Feel:
    1) Modifying the templates
    2) ADF Skinning
    I'm using both methods, but I feel that thay are not good enough to adapt the L&F to our customer requirements.
    My main problem now is in the ADF Table customization. I want to use ADF Table because it offers us a lot of features that are not in the jsf table (the selection column, the table overflow...), and is very usefull combined with the generated JHS code. But at the same time, it doesn't offer a lot of functionality in the look & feel customization. Using JSF Table, I can set the CSS style for headers, rows, columns, the table, I can set the border, cellspacing and cellpadding. But I cannot do
    any of these thing (or at least, I don't see how) with the ADF Table.
    Our customer (a government) have a strict definition of the look & feel of his web applications. They want we use their CSS styles definition file, so they can modify at once the Look & Feel of all their applications. Modifying the L&F through skinning generate other styles, not use the style classes in our CSS (o so I think).
    So, the questions:
    1) There is any way to set the suitable styles for the ADF Table components (headers, rows)?
    1bis) Why, If I have defined a new skin, with only just a few selectors, some styles from oracle are applied? Maybe because the render kit in the 'adf-skins.xml' is "oracle.adf.desktop"? If it is true, how can I make that they are not used, I must implement a render kit or can I use another existent?
    2) Can I decide how looks the select column (for example a button instead of a radio button)? Can I decide where does it goes (right or left)?
    3) There is any way to hidden the text Show/Hide of the showDetail in the table (the tableOverflow), as I can change the icons through skinning? If it is not possible, How can I overwrite the text. I need it in Catalan, but it is shown in English for this locale. Where is the message bundle I should overwrite?
    4) There is any way to force a tree to start fully expanded?
    5) There is anywhere documentation about the javascript functions used in ADF and their meaning? I think for example in the previous question. If I knew which javascript function I should call for expand the tree and its parameters, I could put the call in the onload event of the body.
    6) I use a selectInputDate. I have skinned the launch-icon, and I would like to do a similar thing in the chooseDate that is opened in a new window. But It seems not to be affected for my skinning directives (if I put a chooseDate in the same page, its L&F follow the skinning rules I've defined). I don't know if this dialog is an ADF feature or a JHS generated feature.
    7) There is any way to keep unmodified the id I've choosed for a component? (I mean, an inputText with id="hello" in a form with id="form" will have in the HTML an id = "form:hello", but I would like it to be simply 'hello')
    8) How can I control the position and the size of a dialog (the chooseDate dialog or a dialog I've created)? In the cases I've been testing, it seems the dialog is forced to resize depending on the content. I would like to know if I can establish a fixed size.
    9) There is any way to open a non-modal dialog? (which I could keep open at the same time that another instance of the same dialog)
    For the moment, I think I have no more question. But give me time.... :-D
    The suggestion I've to do is basically more flexible components for a better customization (for example, the styles settings I've talked about previously). ADF components are nice and powerful, but I think they should generate pages that follow the tendencies in the web development: tableless pages (I cannot understand the utility of the objectSpacer existing the margins), use of CSS for layout...
    Any answer, comment or suggestion will be welcome.
    Carles.
    Message was edited by:
    cbios

    I have been able to make the UIX 2.2 and ADF Faces LAF look near identical by updating the oracle-desktop.xss file within UIX 2.2 as follows
    <!-- Change the accent color ramp to tan -->
    <style name="DarkAccentBackground">
    <!--<property name="background-color">#cccc99</property>-->
    <property name="background-color">#d2d8b0</property>
    </style>
    There are still some differences:
    1) A black line appears on the ADF Faces on the 'menu1' facet selected tab below the text. DON'T KNOW HOW TO REMOVE THIS FROM ADF Faces or add it to UIX 2.2!!!
    2) In UIX 2.2 a bulleted list uses the HTML <li> tag. In ADF Faces it doesn't use the HTML <li> tag rather it constructs the bulleted list using lower level HTML tags with the 'bullet' becoming an image, in my browser this means the disc is smaller in Faces. The motivation for this change I think is explained via this post. Since I have no control over how this specific HTML tag is rendered it forces me to replace the /adf/images/bltdscn.gif file in adf-faces-impl.jar with a larger disc!
    http://www.thescripts.com/forum/thread96839.html
    May update this again if there are other things I notice.

  • GUI screwed up sometimes with Custom Look & Feel

    Hello,
    i've got a few problems with my JApplet. Im using a custom Look and Feel (Kunststoff, http://www.incors.org/index.php3 very nice) - my problem is that sometimes (often) my gui is screwed up - some parts like a JPane are not rendered in the custom look & feel, they are still default, but the buttons are. Or my whole dialog looks like a little puzzle - small pieces are cut out.
    I have no idea how to avoid these bugs, im not certain that this is because of the custom look and feel because i seem to have the same problems with the metal look and feel from java.
    I tryed to put a repaint() in my initiliaze of my dialog classes at the very end, but no success either...
    Any help would be greatly appreciated.

    Hello,
    i've got a few problems with my JApplet. Im using a custom Look and Feel (Kunststoff, http://www.incors.org/index.php3 very nice) - my problem is that sometimes (often) my gui is screwed up - some parts like a JPane are not rendered in the custom look & feel, they are still default, but the buttons are. Or my whole dialog looks like a little puzzle - small pieces are cut out.
    I have no idea how to avoid these bugs, im not certain that this is because of the custom look and feel because i seem to have the same problems with the metal look and feel from java.
    I tryed to put a repaint() in my initiliaze of my dialog classes at the very end, but no success either...
    Any help would be greatly appreciated.

  • 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

  • [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

  • Getting incorrect JComboBox color through UIManager in Nimbus Look&Feel

    Hello all,
    As I implementing a multi columns JComboBox, I need to provide my own custom ListCellRenderer.
    * @author yccheok
    public class ResultSetCellRenderer extends javax.swing.JPanel implements ListCellRenderer {
        // Do not use static, so that our on-the-fly look n feel change will work.
        private final Color cfc  = UIManager.getColor("ComboBox.foreground");
        private final Color cbc  = UIManager.getColor("ComboBox.background");
        private final Color csfc = UIManager.getColor("ComboBox.selectionForeground");
        private final Color csbc = UIManager.getColor("ComboBox.selectionBackground");
        private final Color cdfc = UIManager.getColor("ComboBox.disabledForeground");
        @Override
        public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
            System.out.println("UIManager.getColor(ComboBox.selectionForeground) = " + UIManager.getColor("ComboBox.selectionForeground"));
            System.out.println("UIManager.getColor(ComboBox.selectionBackground) = " + UIManager.getColor("ComboBox.selectionBackground"));
            this.setBackground(isSelected ? csbc : cbc);
         this.setForeground(isSelected ? csfc : cfc);
            jLabel1.setBackground(isSelected ? csbc : cbc);
         jLabel1.setForeground(isSelected ? csfc : cfc);
            jLabel2.setBackground(isSelected ? csbc : cbc);
         jLabel2.setForeground(isSelected ? csfc : cfc);
            jLabel3.setBackground(isSelected ? csbc : cbc);
         jLabel3.setForeground(cdfc);
            final ResultType result = (ResultType)value;
            jLabel1.setText(result.symbol);
            jLabel2.setText(result.name);
            final String type = result.typeDisp != null ? result.typeDisp : result.type;
            final String exch = result.exchDisp != null ? result.exchDisp : result.exch;
            jLabel3.setText(type  + " - " + exch);
            return this;
    }I try to get the selection colors of JComboBox through UIManager.
        private final Color csfc = UIManager.getColor("ComboBox.selectionForeground");
        private final Color csbc = UIManager.getColor("ComboBox.selectionBackground");However, I realize that while I am in Nimbus Look & Feel, the above 2 return me null.
    May I know is there any workaround to overcome this? Or I had missed out something?
    Thanks.
    Edited by: yccheok on Oct 21, 2010 10:39 AM

    because "c" is instance of UIResource:
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.plaf.*;
    public class NimbusComponentColorTest {
      public JComponent makeUI() {
        final Color c = UIManager.getColor(
            "ComboBox:\"ComboBox.renderer\"[Selected].background");
        System.out.format("c instanceof UIResource: %s", c instanceof UIResource);
        JLabel label01 = new JLabel("label01");
        /* //com/sun/java/swing/plaf/nimbus/AbstractRegionPainter.java
        protected final Color getComponentColor(...) {
          // we return the defaultColor if the color found is null, or if
          // it is a UIResource. This is done because the color for the
          // ENABLED state is set on the component, but you don't want to use
          // that color for the over state. So we only respect the color
          // specified for the property if it was set by the user, as opposed
          // to set by us.
          if (color == null || color instanceof UIResource) {
              return defaultColor;
          } else if(saturationOffset!=0||brightnessOffset!=0||alphaOffset!=0) {
        label01.setOpaque(true);
        label01.setBackground(c);
        JLabel label02 = new JLabel("label02");
        label02.setOpaque(true);
        label02.setUI(new javax.swing.plaf.metal.MetalLabelUI());
        label02.setBackground(c);
        JLabel label03 = new JLabel("label03") {
          @Override public void paintComponent(Graphics g) {
            g.setColor(c);
            g.fillRect(0,0,getWidth(),getHeight());
            super.paintComponent(g);
        JLabel label04 = new JLabel("label04");
        label04.setOpaque(true);
        label04.setBackground(new ColorUIResource(Color.RED));
        JPanel p = new JPanel();
        p.add(label01); p.add(label02); p.add(label03); p.add(label04);
        return p;
      public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
          @Override public void run() { createAndShowGUI(); }
      public static void createAndShowGUI() {
        try {
          for (UIManager.LookAndFeelInfo laf:UIManager.getInstalledLookAndFeels())
            if ("Nimbus".equals(laf.getName()))
              UIManager.setLookAndFeel(laf.getClassName());
        } catch (Exception e) {
          e.printStackTrace();
        JFrame f = new JFrame();
        f.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        f.getContentPane().add(new NimbusComponentColorTest().makeUI());
        f.setSize(200, 100);
        f.setLocationRelativeTo(null);
        f.setVisible(true);
    }

  • Query regarding portal look & feel

    Hi All,
    I have deployed my j2ee application on sap. I also need to change look & feel of my pages(iviews) when user changes portal theme. For this I am passing url of css used by portal to my application, but I am fetching it in login page only and putting it in session so that all pages use the same css, hence user need to click on the first page of my application to reflect changes.
    Problem is that if user has opened another page and he changes portal theme, it gets reflected in portal standard components but not in my pages until I click the first page that is for login.
    How can I achieve portal's look & feel.
    Please suggest...

    Hi,
    Check this link
    Portal Branding for specific user
    Portal Customizations Intro - Login Part 1
    http://help.sap.com/bp_epv260/EP_EN/documentation/EP/N08_BB_ConfigGuide_EN_US.doc
    A fast and easy Portal logon page customizing
    Regards
    Arun

  • Want to change the Look & Feel of Login page

    Hi,
    I am using Oracle Webcenter 11g (Version 11.1.1.2.0) . I want to change the look & Feel of Login.jspx . I have gone through the extension document
    "*http://www.oracle.com/technology/products/webcenter/pdf/owcs_r11_extend_spaces_wp.pdf"*, it listed about customizing the Landing page .
    But i want to change the look & feel of *"Login.jspx"* page along with want this as landing page. How i will achieve this, will it be done through the same document that i am referring .Please suggest me.
    Thanks,
    Swagatika

    Thanx.
    I just wonder if i could change the global toolbar of the login page though this or not.
    As i changed the webcenter global tool bar (i,e increase the height of the toolbar) using CustomSiteTemplate, but the login page toolbar height remains as it is.
    So how could i achieve this and one more thing how could i make the login page as the landing page and once login done it should forwarded to webcenter spaces. Please reply asap.
    Thanks,
    Swagatika

  • 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!

  • How to standardize the look & feel of different vendor JSF components?

    Hi,
    There are various JSF components created by different parties. For example, Tomahawk from Myfaces, ADF faces from Oracle, SUN components that provided in Java Studio creator. They look different.
    Can we standard the look and feel for these various components when we use them in a same project? so that it wouldn't look that different when the page is displayed to the end user.
    Please advise.
    Thank you.

    Hi,
    Can you be more specific how to achieve that using css? You mean the look and fee that we see is not an image?
    Have you seen how Oracle ADF face look & feel is like?
    How to change its look to what we have SUN offered in its Java studio creator 2?
    Please advise.
    Thank you.

  • How to show different Look & Feel to different users?

    Hi,
    how to show different Look & Feel to different users?
    Thanks & Regards,
    Venu--

    If you want the user to select then LookAndFeel then Visitor Tools.
    If you want to use code and dynamically change it then http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/javadoc/index.html?com/bea/netuix/laf/PortalLookAndFeel.html
    if you have only a few combinations then you could even create different desktops and direct the user to the appropriate url

  • 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();

  • Oracle Forms Look & Feel

    I want to change my forms look & fell thats why I performs below mention steps.But when form run the look & feel naver change only visual attribute of emp block becomes purple & when i change color then its not change means always remains purple.
    Steps Performed.
    1) My Forms install on C:\Oracle\Dmhome10g Direcotry.
    2) I am using Oracle JINITIATOR 1.3.1.17
    3) I am using JRE 1.4.2.17.
    4) My Os Platform Is Windows Advance Server 2000.
    5) I put Laf.Jar file in C:\Oracle\Dmhome10g\Forms90\Java.
    6) I open formsweb.cfg file & put archive=frmall.jar,laf.jar
    When I run the form then emp block visual attribute becomes purple & other theme remains defult no other changes performed. And when I change color then no action happened.
    I had 1 question in my mind.
    1) Where I put "DrawLAF.java" file.
    Regards
    Fahed Akhter

    Fahed,
    I'm not sure we are talking about the same thing. I am speaking about the Java console opened when you run your form (the little coffe-cup icon in the quick task bar) that should show something like this:
    Java Plug-in 1.5.0_12
    Utilisation de la version JRE 1.5.0_12 Java HotSpot(TM) Client VM
    Répertoire d'accueil de l'utilisateur = C:\Documents and Settings\Francois
    c: effacer la fenêtre de la console
    f: finaliser les objets de la file d'attente de finalisation
    g: libérer la mémoire
    h: afficher ce message d'aide
    l: vider la liste des chargeurs de classes
    m: imprimer le relevé d'utilisation de la mémoire
    o: déclencher la consignation
    p: recharger la configuration du proxy
    q: masquer la console
    r: recharger la configuration des politiques
    s: vider les propriétés système et déploiement
    t: vider la liste des threads
    v: vider la pile des threads
    x: effacer le cache de chargeurs de classes
    0-5: fixer le niveau de traçage à <n>
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    La version Forms Applet est : 10.1.2.0
    Francois

Maybe you are looking for