Adding background image to portlet title bar

Hi,
Does anyone know how to add a background image to a portlet title bar. I have tried using the LAF editor but nothing seems to work. The image will be static and not change.
Any help appreciated.

Hi Chris
You have to modify the .css file depending on the type of Skin you are using like "default" or "bighorn" in case of 10.x and 9.x etc. Best thing is to install Firebug for Firefox and inspect the Titlebar in firebug. That should tell exactly which .css file and which element in that .css file is used to render the Portlet Title bar.
For "default" skin, the file is window.css and the element in this file is ".bea-portal-window-titlebar" with background-color: #XXXXXX. Replace this or add another field like background-image: url(your image path). This window.css file can be found under WebContent\framework\skins\default\css\window.css. Remember that in 9.x and 10.x to see this file from Workshop IDE, you need to switch view to Merged Projects and select this file and copy this to your project to view it. BUT, I would not recommend to modify any out of box .css file. Instead create a new file custom.css file and add entries in this file which you want to overwrite. This is the standard way to customize any out of box skins look and feel. So in your custom.css file your will have one entry like this:
.bea-portal-window-titlebar {
background-image: url(your image path)
For "bighorn" skin introduced in 9.x and 10.x, the elements in .css files are slighty different but the concept is same. I customized out of box bighorn skin to change background color of portlet title bar. The .css location for portlet title bar for bighorn skin is: WebContent\framework\skins\bighorn\css\colors.css and the element is ".wlp-bighorn-titlebar". For quick testing from Firebug, inspect this element and change the background color to something else and see if it reflects in Firefox. Then you can create custom.css file under same folder structure in your portal web project and over write this element and this field alone with the background-image that you want something like:
.wlp-bighorn-titlebar {
background-color:#FF0000;
background-image:url(your image path);
It is highly recommended to have all customizations go into custom.css file only. Please make sure that you have this custom.css file entry in the skin.xml file (in case of bighorn) or skin.properties file (in case of old legacy default skin). This .xml or .properties file can be found under same folder structure like: WebContent\framework\skins\yourSkin. For new bighorn skin.xml file this custom.css file entry is already there. But for old legacy default skin you may need to add this entry.
HTH
Ravi Jegga

Similar Messages

  • Adding background image to Spry Menu Bar?

    Hi Everyone,
    I have a question concerning adding a background image to a horizontal spry menu.
    1) I am using Dreamweaver CS4.
    2) I am inserting this menu bar on a HTML document.
    3) I have created and am using an external style sheet (CSS)
    I am not sure on which style(s) ("ul.*) to edit in order to acheive this.
    I have a total of four(4) different images I would like to use, they are...
    1) Horizontal Menu Bar (main menu bar)
    2) Horizontal Menu Bar - Rollover
    3) Submenu
    4) Submenu - Rollover
    Also I would like the text to be centered on the button.
    I have somewhat acheived this using the instructions for "customize this widget", yet the image "repeats" because the button is larger than the image.
    I have not tried to center the text, this may be a very simple thing, if so just let me know.
    What I dont know, and was hoping someone could tell me, is which style(s) ("ul.*) to edit in order to acheive this.
    If anyone needs anymore information, just let me know and I will give it to you as soon as possible.
    Also I have attached three(3) of the four(4) pictures I would like to use. (this is the maximum)
    Any help will be greatly appreciated,
    Musicman1994

    I'd like to thank everyone with their help so far, but I am still having trouble.
    I have tried both suggestions and the results are...
    The one suggested by dhvani2511 gave me this...
    (The cursur is over "Item 1" it is not blue when a cursur is not over it.)
    I would like the image to "be" the button, not just "in" it,if that makes sense.
    I have slightly tried the one suggested by .V1 but being that I am new to dreamweaver, code, etc. I am not sure where to copy/paste the code that you gave me.
    Does anyone have anymore information?
    Thanks,
    Musicman1994

  • Background image in portlet?

    Is it possible to use background-images in portlets?
    We would like it to be possible with:
    - Background images in folders when shown as portlets
    - Background images in navigation bars when shown as portlets
    We can of course have background images in HTML-portlets, but would be much more elegant if it was possible directly implemented in the style.
    Looking forward to hearing your comments.
    Best regards
    Benjamin F. Lund
    BellCom Internet www.bellcom.dk

    When you are making the style you have an option (Backgroung image on the top of the combobox), when you select it you can change the background image, if it was the navigation bar style the background changed is the navigation bar.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Benjamin Lund ([email protected]):
    Is it possible to use background-images in portlets?
    We would like it to be possible with:
    - Background images in folders when shown as portlets
    - Background images in navigation bars when shown as portlets
    We can of course have background images in HTML-portlets, but would be much more elegant if it was possible directly implemented in the style.
    Looking forward to hearing your comments.
    Best regards
    Benjamin F. Lund
    BellCom Internet www.bellcom.dk <HR></BLOCKQUOTE>
    null

  • Supressed Portlet Title Bar

    I'm developing a portlet that needs to display additional content if the portlet title bar has been suppressed in the portlet object settings.
    Is it possible to programatically determine if the portlet title bar has been suppressed?

    I'm thinking you might also be able to write a PEI for the object creation event, and check the created object to see if it is a portlet, and if it is, ensure the length of the title is correct (and truncate it if it is too long).

  • Is it possible to add a button with image on the title bar(IDR)?

    I look through all the buttons in the example, All of them does not with an image on them.
    Is it posslbe to put a image on the title bar?
    Best regards?
    Blake Le

    hi, Julia,
    Sorry for the misleading. I want to add a button below the IDR area. And for common button it's OK.
    Now the situation changed , i need to add an icon to a button , to make the user interface more beautiful.
    Is that possible?
    Best regards,
    Thanks very much for your help.
    Blake Le

  • Adding background image to JFrame

    This is the code I have now. I want to add a background image to the JFrame, and it needs to be where i type the file name of the image into the program code and it loads it from my computer.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class GUIFrame extends JFrame implements ActionListener, KeyListener
         Display myDisplay;
         Button guess;
         Button solve;
         TextField input;
         JTextArea guessedLetters;
         MenuBar myBar;
         Menu fileMenu;
         MenuItem fileNewGame;
         MenuItem fileQuit;
         * constructor sets title of GUI window
         GUIFrame()
              super("Hangman");
              setSize(1000,600);
              guess = new Button("Guess");     
              guess.setFocusable(false);
              solve = new Button("Solve");     
              solve.setFocusable(false);
              input = new TextField(20);
              guessedLetters=new JTextArea(10,10);
              guessedLetters.setEditable(false);
              myBar=new MenuBar();
              fileMenu=new Menu("File");
              fileNewGame=new MenuItem("New Game");
              fileQuit=new MenuItem("Quit");
              myDisplay = new Display();     //make an instance of the window
              setLayout(new FlowLayout());     //How things are added to our Frame
              add(myDisplay);
              add(guess);
              add(solve);
              add(input);
              add(guessedLetters);
              setMenuBar(myBar);
              myBar.add(fileMenu);
              fileMenu.add(fileNewGame);
              fileMenu.add(fileQuit);
              addKeyListener(this);
              guess.addActionListener(this);
              solve.addActionListener(this);
              setVisible(true);     //make the frame visible
         * exectues when user presses a button.
         public void actionPerformed(ActionEvent e)
         public void keyPressed(KeyEvent e)
         public void keyReleased(KeyEvent e)
         public void keyTyped(KeyEvent e)
    }

    Look in the API under JFileChooser and Scanner to see how to get the file name. One you have it, you can load the file easily using several different methods...
    This is even easier, you can paint and image onto anything you like with this method:
    g.drawImage(image, 0, 0, null); //where g is the graphics context from the object you want to paint.
    Simple as that.
    The biggest problem you'll have with painting images onto other objects is making sure the image is loaded before you try to draw it; use ImageIO to load or add your image to a MediaTrakker after your load statement like this:
    Image im = (Image)ImageIO.read(new File("c:/myImages/myImage.jgp"));
    or
    BufferedImage bi = ImageIO.read(new File("c:/myImages/myImage.jgp"));
    or
    Image image = Toolkit.getDefaultToolkit().getImage("c:/myImages/myImage.jgp");
    MediaTracker mediaTracker = new MediaTracker(jf);
    mediaTracker.addImage(image, 0);
    mediaTracker.waitForID(0);
    BTW: what this means it that you can paint right onto the graphics content of the JFrame and not have to worry about any other containers if you want.
    If you expect the image to last more than just a flash, then you also need to override your paintComponents(Grahics) method to paint your graphics to your screen.

  • Change the background color of a title bar

    I'd like to know if it's possible to change the background color of a swing application title bar.
    Thanks in advance.

    In Windows I think you can change the overall look of the desktop - Standard Windows comes with a bluish scheme, but you can change that, say to something like greenish. On NT you do it using right click on desktop > Properties > Apperance > Scheme etc etc.
    So I think Frame title colour is very much a OS specified thing.

  • Displaying image in the Title bar

    hi ,
    can any one help me to display image in the JFrame Title Bar Left Corner, Right Corner, orMiddle ..

    double post http://forum.java.sun.com/thread.jsp?forum=57&thread=554453

  • Adding background image in JavaFX

    I am using javafx integrated with jswing.How to add a backgroung image to gridpane layout in javafx?The image must be resizable on maximizing the frame.Please help.
    Edited by: EJP on 17/02/2012 17:50: fixed your title. No shouting here thanks.

    Is jswing shorthand for Java Swing?
    Anyways, I would recommend looking at the [url http://docs.oracle.com/javafx/2.0/api/javafx/scene/doc-files/cssref.html#pane]CSS reference and the -fx-background-image property in particular. Detailed appearance changes to JavaFX controls are mostly configured by CSS.

  • Adding background image to navigation tabs

    I am adding a backgraound image to a navigation tab and so far have found the only way to do this is by modifying the HTMLTableCell class and adding a method that sets the background image. The closest existing method is setBgColor - which doesn't work.
    I'm sure there has to be a better way to do this?
    Thanks

    My favorite technique is to use CSS. Try this in a stylesheet:
    BODY { background-image: url(marble.gif);           background-color: #cccccc; } P { background-image: none;           background-color: #cccccc; }
    For more information visit http://css.nu/.
    You can apply that style to a <DIV> you use to bound your header, for instance.
    David Phipps
    Plumtree Software

  • How to insert image in the title bar?

    Hi experts,
    how to insert the image or icon in the title bar of a screen, similar to the screen below.
    Att.,
    Luiz.

    Hi Luiz,
    You can create them in GUI Status. If you are using a module pool program uncomment SET PF-STATUS '<STATUS-NAME>' statement, double click on  <STATUS-NAME> and you will be directed to the screen for setting your GUI status.There you can create buttons with desired icons. If it is a report program add SET PF-STATUS '<STATUS-NAME>'  statement to your program and follow the same procedure.
    Refer the wiki for more details.
    GUI Status of A Program using Menu Painter - ABAP Development - SCN Wiki
    Regards
    Anoop

  • Portlet Title Bars

    Using WebLogic 8.1 SP2 and all portlets are JSR 168 Java portlets. Currently the
    Portal Server uses javascript to set titlebar text. In some cases this can cause
    annoying flickering when the page is rendered. Is there a way to force the Portal
    Server to not use javascript to set the titlebar text?
    Thanx
    Mark

    Hi Winston,
    I can understand your desire to do this.
    In the Release 1.7 of the Personalization Server, this can only be done
    through customization in the JSPs. Trying to do this simply would
    result in all title bars from all portlets being used. I am assuming
    this is not what you want.
    This is much easier done in the Release 2.0 of the WebLogic Commerce
    Server. This release is now available for download from the BEA
    website. I could walk you through how to do it with Release 2.0 but the
    documentation is also pretty straight-forward.
    Let me know if this doesn't answer your question!
    Cindy
    Winston Rast wrote:
    Is there a way to completely remove the title bar area of a portlet?
    Thanks,
    -wr

  • To replace the Text like "History,Back" with Images in Page Title bar

    Hi All,
    My requirement is to change the Text like "History,Back Forward" Texts with the Images in the Page Title bar.Under theme editor I dont have an option to replace with Image.
    I checked with the com.sap.portal.navigation.pagetoolbar.par file.I am not getting exactly where to replace the Text with Images.
    Please let me know if I am referring to the correct par file and where to make changes.
    Regards
    Akshaya
    Edited by: Akshaya Bhat on Jun 9, 2009 2:58 PM

    Hi,
    It depends if the WDJ application has made another navigation.
    History saves any navigations made by the user (TLN/DTN,etc) or navigation done by applications in code (wdDoNavigate, EPCM.doNavigate).
    So it can go back to previous view , or previous iview the user was at...
    Regards,
    Tal.

  • Adding background image to JPanal...............PLEASE PLEASE HELP

    Hi,
    i am very very stuck in adding a image to a JPanel. here is my code could any one please show me where and how to add an image to this please. a sample code would be prefered.
    Thanks
    * card.java
    public class card extends javax.swing.JFrame {
    /** Creates new form card */
    public card() {
    initComponents();
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;
    jPanel1 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    jButton1 = new javax.swing.JButton();
    jButton2 = new javax.swing.JButton();
    jButton3 = new javax.swing.JButton();
    jPanel2 = new javax.swing.JPanel();
    getContentPane().setLayout(new java.awt.GridBagLayout());
    setTitle("Card Game");
    addWindowListener(new java.awt.event.WindowAdapter() {
    public void windowClosing(java.awt.event.WindowEvent evt) {
    exitForm(evt);
    jPanel1.setLayout(new java.awt.GridBagLayout());
    jPanel1.setBackground(new java.awt.Color(255, 255, 255));
    jLabel1.setIcon(new javax.swing.ImageIcon("card game implementation\\headingF1.jpg"));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.insets = new java.awt.Insets(5, 145, 0, 205);
    jPanel1.add(jLabel1, gridBagConstraints);
    jButton1.setIcon(new javax.swing.ImageIcon("card game implementation\\Nigat\\helpbuttonF.jpg"));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.ipadx = -36;
    gridBagConstraints.ipady = -10;
    gridBagConstraints.insets = new java.awt.Insets(83, 40, 130, 40);
    jPanel1.add(jButton1, gridBagConstraints);
    jButton2.setIcon(new javax.swing.ImageIcon("card game implementation\\Nigat\\newgame1.jpg"));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.ipadx = -39;
    gridBagConstraints.ipady = -12;
    gridBagConstraints.insets = new java.awt.Insets(213, 40, 0, 40);
    jPanel1.add(jButton2, gridBagConstraints);
    jButton3.setIcon(new javax.swing.ImageIcon("card game implementation\\Nigat\\quit1.jpg"));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.ipadx = -39;
    gridBagConstraints.ipady = -12;
    gridBagConstraints.insets = new java.awt.Insets(80, 40, 70, 40);
    jPanel1.add(jButton3, gridBagConstraints);
    jPanel2.setLayout(new java.awt.GridBagLayout());
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.gridheight = 2;
    gridBagConstraints.ipadx = 420;
    gridBagConstraints.ipady = 400;
    gridBagConstraints.insets = new java.awt.Insets(43, 60, 40, 0);
    jPanel1.add(jPanel2, gridBagConstraints);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 1);
    getContentPane().add(jPanel1, gridBagConstraints);
    pack();
    /** Exit the Application */
    private void exitForm(java.awt.event.WindowEvent evt) {
    System.exit(0);
    * @param args the command line arguments
    public static void main(String args[]) {
    new card().show();
    // Variables declaration - do not modify
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    // End of variables declaration

    My images loaded up just fine. I left them in and commented out. Try using the single forward slash below...
    public class CardTest extends javax.swing.JFrame {
        /** Creates new form card */
        public CardTest() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        private void initComponents() {
            java.awt.GridBagConstraints gridBagConstraints;
            jPanel1 = new javax.swing.JPanel();
            jLabel1 = new javax.swing.JLabel();
            jButton1 = new javax.swing.JButton();
            jButton2 = new javax.swing.JButton();
            jButton3 = new javax.swing.JButton();
            jPanel2 = new javax.swing.JPanel();
            getContentPane().setLayout(new java.awt.GridBagLayout());
            setTitle("Card Game");
            addWindowListener(new java.awt.event.WindowAdapter() {
                public void windowClosing(java.awt.event.WindowEvent evt) {
                    exitForm(evt);
            jPanel1.setLayout(new java.awt.GridBagLayout());
            jPanel1.setBackground(new java.awt.Color(255, 255, 255));
            jLabel1.setIcon(new javax.swing.ImageIcon(
                            //"images/T1.gif"));
                            "card game implementation/headingF1.jpg"));
            gridBagConstraints = new java.awt.GridBagConstraints();
            gridBagConstraints.gridx = 0;
            gridBagConstraints.gridy = 0;
            gridBagConstraints.gridwidth = 2;
            gridBagConstraints.insets = new java.awt.Insets(5, 145, 0, 205);
            jPanel1.add(jLabel1, gridBagConstraints);
            jButton1.setIcon(new javax.swing.ImageIcon(
                             //"images/T2.gif"));
                             "card game implementation/Nigat/helpbuttonF.jpg"));
            gridBagConstraints = new java.awt.GridBagConstraints();
            gridBagConstraints.gridx = 1;
            gridBagConstraints.gridy = 1;
            gridBagConstraints.ipadx = -36;
            gridBagConstraints.ipady = -10;
            gridBagConstraints.insets = new java.awt.Insets(83, 40, 130, 40);
            jPanel1.add(jButton1, gridBagConstraints);
            jButton2.setIcon(new javax.swing.ImageIcon(
                             //"images/T3.gif"));
                             "card game implementation/Nigat/newgame1.jpg"));
            gridBagConstraints = new java.awt.GridBagConstraints();
            gridBagConstraints.gridx = 1;
            gridBagConstraints.gridy = 1;
            gridBagConstraints.ipadx = -39;
            gridBagConstraints.ipady = -12;
            gridBagConstraints.insets = new java.awt.Insets(213, 40, 0, 40);
            jPanel1.add(jButton2, gridBagConstraints);
            jButton3.setIcon(new javax.swing.ImageIcon(
                             //"images/T4.gif"));
                             "card game implementation/Nigat/quit1.jpg"));
            gridBagConstraints = new java.awt.GridBagConstraints();
            gridBagConstraints.gridx = 1;
            gridBagConstraints.gridy = 2;
            gridBagConstraints.ipadx = -39;
            gridBagConstraints.ipady = -12;
            gridBagConstraints.insets = new java.awt.Insets(80, 40, 70, 40);
            jPanel1.add(jButton3, gridBagConstraints);
            jPanel2.setLayout(new java.awt.GridBagLayout());
            gridBagConstraints = new java.awt.GridBagConstraints();
            gridBagConstraints.gridx = 0;
            gridBagConstraints.gridy = 1;
            gridBagConstraints.gridheight = 2;
            gridBagConstraints.ipadx = 420;
            gridBagConstraints.ipady = 400;
            gridBagConstraints.insets = new java.awt.Insets(43, 60, 40, 0);
            jPanel1.add(jPanel2, gridBagConstraints);
            gridBagConstraints = new java.awt.GridBagConstraints();
            gridBagConstraints.gridx = 0;
            gridBagConstraints.gridy = 0;
            gridBagConstraints.insets = new java.awt.Insets(0, 0, 1, 1);
            getContentPane().add(jPanel1, gridBagConstraints);
            pack();
        /** Exit the Application */
        private void exitForm(java.awt.event.WindowEvent evt) {
            System.exit(0);
         * @param args the command line arguments
        public static void main(String args[]) {
            new CardTest().setVisible(true);
        // Variables declaration - do not modify
        private javax.swing.JButton jButton1;
        private javax.swing.JButton jButton2;
        private javax.swing.JButton jButton3;
        private javax.swing.JLabel jLabel1;
        private javax.swing.JPanel jPanel1;
        private javax.swing.JPanel jPanel2;
        // End of variables declaration
    }

  • To change the image by the title bar.

    Hi,
    I have been trying to change the existing image in the title of the report.
    I tried reducing the image size through paint. And once i add this image in the title, it is showing the cross mark with letters 'LOGO'.
    Thanks,
    Sindhu

    Have you restarted the services after updating your image?
    You might have to use below syntax for calling the image
    fmap:location/image_name
    location->something like
    s_oracle/Images
    Ex: fmap:Images/newlogo.gif
    If this is not helping can you share your screenshot of the Title thru email or any other form.
    If helps mark
    Edited by: Srini VEERAVALLI on Feb 12, 2013 9:36 PM

Maybe you are looking for

  • ABAP DUMP Dynpro_send_in_background occurs in ECC5.0

    Hi experts, We have one ECC5.0 environment which runs on AIX5.3 , and since yesterday, we have lots of ABAP dump Dynpro_send_in_background in st22, could anyone help me? I have searched from OSS and SDN, but seems no suitable case I can reference for

  • Suddenly can't see graphics when using Frame 10 on a particular machine

    Upgraded to Frame 10 (from 9) on a Windows 7 x64bit machine about a month ago.  But suddenly today, I started having problems with Frame not recognizing .PSD images in files.  Then it suddenly decided it didn't want to view any images. I was able to

  • WD iView not fetching the data

    Hi,      I developed some WD (Java) application.But certain iView like sales order,delivery order not displaying the sales order number & delivery order number. Fuction module is working fine in backend.How to resolve this,can anyone help me for the

  • Custom adaptive tags for 6.5 / 10gR3

    I'm going through an upgrade, and it seems that while some of the custom adaptive tags developed for 6.1 work in 10gR3, there are some that do not. Before I go about doing the work, I felt that I should ask..has anyone done this yet? I didn't see any

  • CUCM 7 - error when adding phone 'add failed [4910] Request unsucessful to licence manager

    I have vmware workstation with cucm 7 running. I tried to add 7940 but I get below error message 'Add failed.[4910] Request unsucessful to licence manager (please check the Licensing for further details) On CUCM commands line when I carry out 'utils