Set image in Table Header

Hi,
Is it possible to set a image in table header?
I am using EP 6 NWDS 2.0.9
Regards,
Vaibhav

Create a table, and insert the header.In header properties"imageAlt" and "imageSource" options is there,
u can give the image name like image.jpg,go to ur application folder,src>mimes>Components and save it the pictures for the same name, deploy it,it's work fine
Hi,
Do the following steps:
1. Go to the layout of the view hving the table.
2. Select the table from outline and do right click to add table header.
3. Go through the propertiess of table header and find out imagesource property from the list.
4. specify the name of image in the imagesource property.
5. Now go to navigator and expand the structure of your project.
6. Go to src->mimes->Components...
7. save the image in the same folder.
regards,
amit bagati

Similar Messages

  • Anchor link only for image in table header for sorting

    Hi,
    I need to implement sorting functionality for datatable.
    for sorting header of the table column will have image along with header text.
    for this i am using <h:commandLink> and <h:graphicImage>.
    But i am getting behaviour as anchor link for both text and image.
    deserved behavior for this is only ofr Image.
    If any one implemented the same ..please help me
    Regards

    Try:
    Sub ClearKeepWNext()
    Dim Tbl As Table, i As Long
    For Each Tbl In ActiveDocument.Tables
      With Tbl
        .Range.ParagraphFormat.KeepWithNext = False
        For i = 1 To .Rows.Count
          With .Rows(i)
            If .HeadingFormat = True Then
              .Range.ParagraphFormat.KeepWithNext = True
            Else
              Exit For
            End If
          End With
        Next
      End With
    Next
    End Sub
    If the tables only have a single heading row, you could instead use:
    Sub ClearKeepWNext()
    Dim Tbl As Table
    For Each Tbl In ActiveDocument.Tables
      With Tbl
        .Range.ParagraphFormat.KeepWithNext = False
        With .Rows(1)
          If .HeadingFormat = True Then
            .AllowBreakAcrossPages = False
          End If
        End With
      End With
    Next
    End Sub
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • Add image to table header

    Hello dear All
    My requirement is to add an image in jTable header( *.png or *.gif image in the tabel header.) I.e if there are 5 columns i have to add 5 images in the table header.
    Please help me to overcome this issue.
    Thanks

    Sorry, it looks like the tutorial has recently been updated. Sorting is now supported in JDK6. Prior to this you needed to write your own code for sorting and the tutorial include sample classes to help you out.
    Anyway, I found some old code lying around that should get you started:
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class TableHeader extends JFrame
         public TableHeader()
              Object[] columnNames =
                   "Some Text",
                   new ImageIcon("copy16.gif"),
                   new ImageIcon("add16.gif")
              //  Columns headings are cast to a String when created automatically.
              //  We want Icons, so use a special renderer and create the columns manually
              DefaultTableModel model = new DefaultTableModel(columnNames, 5);
              JTable table = new JTable();
              table.setAutoCreateColumnsFromModel( false );
              table.setModel( model );
              table.getTableHeader().setDefaultRenderer( new HeaderRenderer() );
              for (int i = 0; i < columnNames.length; i++)
                   TableColumn newColumn = new TableColumn(i);
                   newColumn.setHeaderValue( columnNames[i] );
                   table.addColumn(newColumn);
              table.setPreferredScrollableViewportSize(table.getPreferredSize());
              JScrollPane scrollPane = new JScrollPane( table );
              getContentPane().add( scrollPane );
         class HeaderRenderer extends DefaultTableCellRenderer
              public Component getTableCellRendererComponent(
                   JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col)
                   setBorder(UIManager.getBorder("TableHeader.cellBorder"));
                   setHorizontalAlignment(CENTER);
                   //  display text or icon
                   System.out.println(value.getClass());
                   if (value instanceof Icon)
                        setIcon( (Icon)value );
                        setText( "" );
                        setBackground( Color.green );
                   else
                        setIcon( null );
                        setText((value == null) ? "" : value.toString());
                        setBackground( Color.yellow );
                   return this;
         public static void main(String[] args)
              TableHeader frame = new TableHeader();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.pack();
              frame.setLocationRelativeTo( null );
              frame.setVisible(true);
    }

  • Image in a table-header

    Hello,
    I don't know why but I cannot place an image in one specific table-header.
    It works fine in my table-cells but in the table-header only the text appears.
    I thought i could place an image in a header, just like a text-string but that is not possible.
    Does anyone know how to handle that problem???
    Thank you so much

    Hi,
    either you use table.getTableHeader().setDefaultRenderer(yourRenderer) to set one renderer for all columns or you use table.getColumnModel().getColumn(index).setHeaderRenderer(yourRenderer) to set a renderer for individual columns.

  • How do you set-up a floating image in a header or footer?

    I want to place a floating image in the header or footer so it repeats on every page of a section. Somehow this has been achieved in the Project Proposal Template but I can't work out how you set something like this up from scratch. Can you help me?

    It is not in the header.
    Highlight the floating image and then go Format > Advanced > Move Ojbects to Section Master.

  • How to set the font of a table header?

    Hi,
    Is there a way to set the font of a table header? I do not mean how to change the header word but the font.
    Thanks
    Stephen

    Hi,
    for combobox in a table (I assume the combobox is shown un column 2, thus the index 1)
    oracle.jbo.uicli.jui.JUTableLOVEditor lovCellEditor = (oracle.jbo.uicli.jui.JUTableLOVEditor) jTable1.getColumnModel().getColumn(1).getCellEditor();
    lovCellEditor.getComponent().setFont(new Font("Arial",Font.BOLD,13));
    For the LOV panel this is a bit more complicated because you need to create a custom LOV panel as described in http://www.oracle.com/technology/products/jdev/howtos/10g/jclientlov/customadfjclientlovpanel.html
    I filed a bug today to expose the component on a LOV to public so they can be modified
    Frank

  • How to add image in jtable header using 'Default table model'

    Hi,
    I created a table using "DefaultTableModel".
    im able to add images in table cells but not in 'table header'.
    i added inages in table by overriding "getColumnClass" of the DefaultTableModel.
    But what to do for headers?
    please help.
    Thanks in advance.

    The 'Java 5 tutorial' is really an outstanding oneI should note the the current tutorial on the Sun website has bee updated for Java 6. It contains updates to reflect the changes made in JDK6. Once of the changes is that sorting of tables is now supported directly which is why I needed to give you the link to the old tutorial.
    http://java.sun.com/docs/books/tutorial/uiswing/TOC.html

  • When exporting from .pdf to powerpoint, misinterprets image as table some of the time. Anyway to adjust setting for finer resolution?

    When exporting from .pdf to powerpoint, misinterprets image as table some of the time. Anyway to adjust setting for finer resolution?

    Hi Jim,
    Could you please let me know what version of Acrobat and OS are you using.
    Have you tried repairing Acrobat?
    Hope to hear from you.
    Regards,
    Anubha

  • How to set advance table header with a value?

    I have a advance table in which there are columns monday,tuesday.....sunday and i need to set the column header with the current week date for monday, tuesday.....sunday
    i can find the date from the VO query for each day
    but
    how can i set the Advancetable column header with the current date for monday,tuesday.....sunday ?

    Hi,
    Try the way suggested by Meher, if you are not able to find the OASortableHeaderBean then try the below one
    // Get a handle to the column's header
    OAColumnBean columnBean =
      (OAColumnBean)tableBean.findIndexedChildRecursive("<columnBeanId>");
    OASortableHeaderBean colHeaderBean =
      (OASortableHeaderBean)columnBean.getColumnHeader();
    colHeaderBean.setText(sysdate);Regards,
    Gyan
    Edited by: Gyan on Feb 2, 2011 10:24 PM

  • JTable in JLayeredPane - resize table header cursor

    Hey everybody, I have searched all over this forum and the net for an answer to this problem. I have a class that adds a JComponent to a JLayeredPane in the default layer. In another layer above the default layer is a JComponent that exists only to provide a 'pretty' image border with round corners that overlap the component below it. It works and looks very good. The only problem I have found is that if the JComponent that is added (in the default layer) is a JTable the cursor no longer changes to the resize cursor (<->) when mousing over the table header column edges. I can still resize the columns but I need to have the cursor change to indicate that the colums can be resized for user friendliness. I assume that the mouse events are getting trapped by the upper layer in the JLayeredPane and aren't reaching the JTable in the lower layer as they need to.
    I have tried swapping the two layers but when I do that the corners of the component that I want to add the border to overlap over the nice round corners of the border which defeats the purpose.
    If anyone has any suggestions, or even better a solution, that would be great!
    Thanks,
    Erik

    table.getTableHeader().setVisible(false); will
    help.This is necessary, but probably not quite sufficient for picky users. You may also want to set the min, max, and preferred dimensions of the table header to 0,0, otherwise you get what looks like a top-only border.
    Michael Bushe

  • Table header cell dividers

    Is there a way to have to make the cells divider lines in a table header be a custom thickness. with different thicknesses on different pages. I am thinking there is no way to do this inside of FM 8. And would that be changed in the read and write or the dtd.

    Hi Frank,
    There's a somewhat more complicated way that has some advantage if you don't mind the work. This solution is to place PDF images of the titles in the header cells as Background Fill Images. The main advantage over a grouped text box is that the background fill image will track the particular cell exactly, even if rows and columns are added or deleted or resized, including the one that the image is in.
    Start with your title in a text box that "just fits".
    Click off the box and then click once back on the box, such that the handles are showing but the text is not selected.
    Command-C
    Switch to Preview.app and Command-N. You now have converted your title to a PDF.
    Still in Preview, Command-C to copy the PDF
    Switch to Pages, Select the Cell, Command-V to set the PDF into the background.
    Set the justification to centered, both vertically and horizontally for the best tracking.
    As far as the rotation goes, you can rotate the Text Box before you convert it, or you can rotate the PDF before inserting into the cell. It doesn't matter.
    Regards,
    Jerry

  • Images in Pages header after Mavericks update

    Previously to the OS X Mavericks update, I had my documents in Pages with images in headers. Now I open them, after the Mavericks update, AND THEY'RE ALL GONE...!!!
    HOW CAN I FIX IT...???

    Alexander_Wolff wrote:
    This feature is not really gone. It has been altered to a more advanced level.
    Since decades we are trained by MS-Office (and others) to put repeating images in the header. This was simple but sometimes tricky for you have to fight with position and repeating text in the header and footer.
    IMO Apple has advanced in this part
    Take an image and put it on the canvas as floating object. Look for a nice place where it can rest. Go to format/advanced and select "transfer image to chapter-template" (don´t know the english term") Now this image appears on every page of the chapter. To avoid colliding with the text body you can set the upper or downside border to a margin where it dont interfere with the image or table (or what ever you want as repeating objects). To alter the objet got to the format/advanced menu and select "make backround objects  selectable". This feature was in iWork 09 too.
    Its not like we have learned to use but now wer are no more depended to the size of the header or footer.
    Regards
    A. Wolff
    Interesting reasoning.
    In the previous version of Pages you could choose which method to do your work. Both worked.
    In Pages 5 one method has been completely removed and the other made more difficult, and that is "altered to a more advanced level".
    Apple sprinkling its Fairy Dust on your work and sticking the pages together, again?
    Peter

  • How to insert image into table and to in Oracle 9i intermedia?

    Mr Lawrence,
    I want to ask something:
    I use Oracle 9i intermedia
    If i use this script:
    CREATE TABLE images (
    file_name VARCHAR2(100) NOT NULL,
    image ORDSYS.OrdImage
    then
    CREATE OR REPLACE DIRECTORY imgdir AS 'd:/data';
    then
    INSERT INTO images (file_name, image)
    VALUES ('tree', ORDSYS.ORDImage.init('file','imgdir','tree.jpg' ));
    I put tree.jpg in directory d:/data in my hard drive.
    Is my tree.jpg file had already get in to my images table?
    I'm little confuse, because when i check my table with this script:
    select file_name, i.image.getWidth() from images i;
    it's show that my i.image.getWidth() for file_name tree is empty.. that mean my tree.jpg doesn't get in to my table.. am i correct?
    N also i want to ask how to display to screen all of my image from images table?
    Is it posible Oracle 9i intermedia to support display image from table?
    How?
    thanks Mr Lawrence

    -- First step would be to create a directory in oracle and map it to the folder where your image resides.
    create directory image_dir as *'c:\image_dir';*
    Then you would have to use a procedure to insert the image in your table. SO first create a table to hold the image. Note that you have to use a BLOB to insert the image.
    CREATE TABLE test_image
    ID NUMBER,
    image_filename VARCHAR2(50),
    image BLOB
    Now let's write the procedure to insert the image in the table above.
    CREATE OR REPLACE PROCEDURE insert_image_file (p_id NUMBER, p_image_name IN VARCHAR2)
    IS
    src_file BFILE;
    dst_file BLOB;
    lgh_file BINARY_INTEGER;
    BEGIN
    src_file := BFILENAME ('image_DIR', p_image_name);
    -- insert a NULL record to lock
    INSERT INTO temp_image
    (ID, image_name, image
    VALUES (p_id, p_image_name, EMPTY_BLOB ()
    RETURNING image
    INTO dst_file;
    -- lock record
    SELECT image
    INTO dst_file
    FROM temp_image
    WHERE ID = p_id AND image_name = p_image_name
    FOR UPDATE;
    -- open the file
    DBMS_LOB.fileopen (src_file, DBMS_LOB.file_readonly);
    -- determine length
    lgh_file := DBMS_LOB.getlength (src_file);
    -- read the file
    DBMS_LOB.loadfromfile (dst_file, src_file, lgh_file);
    -- update the blob field
    UPDATE temp_image
    SET image = dst_file
    WHERE ID = p_id AND image_name = p_image_name;
    -- close file
    DBMS_LOB.fileclose (src_file);
    END insert_image_file;
    Now execute the procedure to insert the image.
    EXECUTE insert_image_file(1,'test_image.jpg');
    Thanks,
    Aparna

  • How can I right-align a table header?

    Does anyone know a way to right-align a table header?
    For example, in the table below I want the word 'Price' to be right-aligned. I could set the table's 'header renderer' to be a right-aligned DefaultTableCellRenderer, but then the header would look like a cell, not a header. Why can't swing be simple, like table.getColumn(1).setAlignment(Column.RIGHT) ????
    public class TestTableHeader {
         public static void main(String[] args) throws Exception {
              JFrame frame = new JFrame("Test");
              Object[][] rowData = new Object[][] { { "General Electric", "$100.60" },
                        { "IBM", "$5.20" }, { "Wal-mart", "$17.00" } };
              JTable table = new JTable(rowData, new Object[] { "Name", "Price" });
              DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
              renderer.setHorizontalAlignment(DefaultTableCellRenderer.RIGHT);
              table.getColumnModel().getColumn(1).setCellRenderer(renderer);
              frame.getContentPane().add(new JScrollPane(table));
              frame.setSize(400, 300);
              frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              frame.setVisible(true);
    }

    I modified your code an came up with a solution to the problem.
    import java.awt.Component;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableCellRenderer;
    public class TestTableHeader {     
         public static void main(String[] args) throws Exception {
              JFrame frame = new JFrame("Test");
              Object[][] rowData = new Object[][] {
                        { "General Electric", "$100.60" }, { "IBM", "$5.20" },
                        { "Wal-mart", "$17.00" } };
              JTable table = new JTable(rowData, new Object[] { "Name", "Price" });
              RightAlignRender right = new TestTableHeader().new RightAlignRender();
              table.getColumnModel().getColumn(0).setHeaderRenderer(right);
              table.getColumnModel().getColumn(1).setHeaderRenderer(right);
              frame.getContentPane().add(new JScrollPane(table));
              frame.setSize(400, 300);
              frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              frame.setVisible(true);
         public class RightAlignRender extends DefaultTableCellRenderer {
              public Component getTableCellRendererComponent(JTable table,
                        Object arg1, boolean arg2, boolean arg3, int arg4, int column) {
                   Component toReturn = table.getTableHeader().getDefaultRenderer().getTableCellRendererComponent(table,
                             arg1, arg2, arg3, arg4, column);
                   switch (column) {
                   case 0:
                        ((JLabel) toReturn).setHorizontalAlignment(DefaultTableCellRenderer.CENTER);
                        break;
                   case 1:
                        ((JLabel) toReturn).setHorizontalAlignment(DefaultTableCellRenderer.RIGHT);
                        break;
                   return toReturn;
    }

  • How to set image source path in formsweb.cfg file in forms 11g

    Hi,
    I had written HTML code in the formsweb.cfg file in forms 11g. In the below code i am unable to retrive image file(i.e., .gif, .jpeg) from the server or local machine.
    In the below HTML code i set image source in the image tag as below:
    <img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-new11_04.GIF"
    Is this correct path to fetch the images from the server or local machine .
    Please help me out how to set path for image in html or is there any alternate process to retrive images.
    Here is the code :
    [INDIVIDUALUAT]
    workingDirectory=D:\Aims10dev\Work
    form=LMstartup.fmx
    userid=rmenu/rmenu@RLIFEQA64
    codebase=/forms/java
    imageBase=codebase
    width=1005
    height=750
    WebUtilArchive=/forms/java/frmwebutil.jar,/forms/webutil/jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    baseHTMLjinitiator=webutiljini.htm
    baseHTMLjpi=webutiljpi.htm
    archive_jini=frmall_jinit.jar,life-icons-round.jar,Agilis_Icon.jar,life_Icon.jar,personalize.jar,hyperlink.jar,amazingbutton.jar
    archive=frmall.jar
    separateFrame=False
    lookandfeel=Generic
    EndUserMonitoringURL=True
    usesdi=yes
    #HTMLbeforeForm= <table width="1005" border="0" cellspacing="0" cellpadding="0"><tr><td width="200"><img src="/forms/html/agilis-life-logo.gif" width="200" height="80" /></td><td width="10"><img src="/forms/html/agilis-life-new11_02.gif" width="36" height="80" /></td><td width="805" valign="top" background="/forms/html/agilis-life-new11_03.gif"></td></tr></td></tr></table>
    HTMLbeforeForm=<body topmargin="0" leftmargin="0" > <table width="1005" height="100" border="0" cellspacing="0" cellpadding="0"><tr><td width="200" valign="bottom" ><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-logo.gif" width="200" height="80" /></td><td width="10" valign="bottom" ><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-new11_02.gif" width="36" height="80" /></td><td width="550" valign="bottom" ><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-new11_03.gif" width="550" height="80" /></td><td valign="bottom"><table width="219" height="90" border="0" cellspacing="0" cellpadding="0"><tr><td height="36" valign="bottom" align="center"><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agile-logo.jpg" height="36"></td></tr><tr><td height="10" valign="bottom"> <div align="right"><span style="font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; text-decoration:none; color:#00000; " >Home | Change Password | Logout</span></div></td></tr><tr><td colspan="3" valign="bottom"><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-new11_04.GIF" width="100%" height="39" /></td></tr></table></td></tr></td></tr></table></body>

    AFAIK, this is not the correct way to set the image location.
    We call the working directory as context, so inside the context root along with WEB-INF, maintain a folder with name img and put all the images in that directory.
    You can use either .\<image_folder> or the optimum way would be (if you are using JSPs) to use getContext() method and traverse accordingly.
    FYI,,, using getContext() will give you context root directory, from there it is as simple as accessing any other folder.
    Hope this answers your question.
    Cheers,
    Jeets.

Maybe you are looking for