Adding an Image to a JButton

Hi,
I'm trying to teach myself Swing by a Book called "JAVA, HOW TO PROGRAM"
I have a class called "ButtonTest.java"
Here it is:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
* @author chris
public class ButtonTest extends JFrame{
JButton button1, button2;
/** Creates a new instance of ButtonTest */
public ButtonTest() {
super("Testing Buttons");
Container container = getContentPane();
container.setLayout(new FlowLayout());
Icon gificon = new ImageIcon("gificon.gif");
button1 = new JButton("Button1");
button2 = new JButton("Test",gificon);
container.add(button1);
container.add(button2);
setSize(400,400);
setVisible(true);
* @param args the command line arguments
public static void main(String[] args) {
ButtonTest test1 = new ButtonTest();
test1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
The problem is, that the Program shows a screen WITHOUT the icon.
I placed the file "gificon.gif" in the same directory (c:\java\test) as the File "ButtonTest.java".
Why doesn't the Button show the image (button2 only shows the text and no image)
Please help me guys......... I'm gettin mad otherways ;o)

Hi,
DrQuincy is right. Once I had a problem with my gif images, but it was a problem with the program that saved the gifs...nevermind.
Try this:
java.io.File gificon=new java.io.File("gificon.gif");
System.out.println(gificon.getAbsolutePath());
Now you can see where java is searching for your file...I think you'll be surprised.
My suggestion is that you take DrQuincy's advice...
new ImageIcon("C:\\resources\\gificon.gif");
Best regards,
ANeto

Similar Messages

  • Adding round image to a  JButton...facing probelms

    Hi everybody,
    I am making a Jbutton to which i have to add a round image.
    The problem here is that "onclick" gets triggerd not only by clicking on the round image, but also on the rectanle in which that round image is contained.
    Can some one plaese help me with this. What is the right way of doing this so that onclick works only on clikcing the round image and not on the rectangle around it?
    Thanks in advance

    Override the contains(...) method of the button:
    Shape shape;
    public boolean contains(int x, int y)
        // If the button has changed size, make a new shape object.
        if (shape == null || !shape.getBounds().equals(getBounds()))
            shape = new Ellipse2D.Float(0, 0, getWidth(), getHeight());
        return shape.contains(x, y);
    }

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

  • Adding an image that a user can click.

    Hi
    Been programming java for nearly a year now and I was wondering if there was a way I can add images to a frame, which a user can then hover over to receive information of click to go to the next screen with sub information on it. Any help currently would be much appreciated.
    Gretna

    I was wondering if there was a way I can add images to a frameJLabel. http://java.sun.com/docs/books/tutorial/uiswing/components/label.html
    which a user can then hover over to receive informationtooltip. http://java.sun.com/docs/books/tutorial/uiswing/components/tooltip.html
    click to go to the next screen with sub information on itMouseListener. http://java.sun.com/docs/books/tutorial/uiswing/events/mouselistener.html
    Or use a JButton instead of a JLabel.
    http://java.sun.com/docs/books/tutorial/uiswing/components/button.html
    If the frame is to be a container for numerous "screens", consider giving it a CardLayout.
    http://java.sun.com/docs/books/tutorial/uiswing/layout/card.html
    (Specific problems you have with adding the images would best be addressed to the Swing forum.)

  • Photo gallery able to reorganise into subcategories + adding new images via in-browser editing

    Hi,
    I'm looking for a photo gallery which has the ability to reorganise the images displayed based on subcategories or tags. For example I want to add a gallery which contains photos of a clients projects. The client wants site visitors to be able to shuffle the gallery to view only for example "stone walls" or "timber decking". A tagging system would be handy rather than having to load the photos into each subcategory.
    The other consideration is that my client needs to be able to add new images with tags using the in-browser via Business Catalyst. So far I have only succeeded in replacing existing images rather than adding new images.
    Is there such a widget for Muse or are there anyother widgets for wordp-ress or other which could be embedded to tdo the job.
    Thanks in advance,
    Jimmy

    Hi Jimmy
    If I am not wrong, basically you want to provide users an option to select category of images which they want to show up on page.
    From Muse we cannot tag or categorize them , also photogallery module in BC does not provides this option, but there is a workaround with web apps.
    You can create a web app and then web app items as images and then categorize them. On page insert the web app with categories drop down, so when users will select the category those web app items would be displayed on page. Additionally you can add custom fields in web app to search using keyword.
    With editing , clients can login to BC admin and then using photogallery module or web app module ( if used ) to edit the images, add new ones. IBE cannot be used to add new ones but to replace existing ones.
    Helpful Links :
    http://helpx.adobe.com/business-catalyst/partner/web-apps.html
    http://helpx.adobe.com/business-catalyst/partner/building-web-apps-part-1.html
    Thanks,
    Sanjit

  • Adding an Image on top of Zoom area

    Hello everyone,
    I'm a brand new user of Captivate and I'm working with version 4.  I'll do my best to not get on your nerves with all the newbie questions!
    Current issue - I'm working within a single slide and have a small segment highlighted with the Zoom function.  The Zoom is working great, but there are multiple items within the Zoom box that I would like to highlight/indicate for the viewers.  I want to use a basic arrow to point at the icon I'm referring to in the audio, so I've tried adding an Image of an arrow, but it always appears behind the Zoom box when I Preview or Publish the project.  I've tried using both jpeg and bmp formats for the image and see no difference.  I've also tried to work with the Order of the Image and Zoom, setting them to 'Step Back, 'Bring to Front', etc, but it doesn't make a difference.
    Any suggestions on how I can get the image to show up on top of the Zoom box?
    Side question - I had to find an image of a basic arrow on the web, as all I could find within Captivate 4 are the Animated Arrows.  Does Captivate have good old basic arrows and pointers?  If so, where might I might find them?
    Thanks in advance.
    D

    Hi there
    See if the link below helps any
    Click here
    For lines and arrows, use Drawing Objects if you are using Captivate 4. Insert > Drawing Objects.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Adding Rollover Images in a LiveCycle ES Document

    Can anyone help me here. I am trying to add images of products that pop-up upon rollover of a calculated field. Is there a way to do this in LiveCycle ES?
    Thanks!

    First, I think you'd have to have a positioned form so you can have the image overlap text or what-have-you.  Then you could try adding an image field close to the text field and set it's presence to hidden.  Then once they mouse over (event of some sort), you could change the imageField.presence to visible.

  • [svn:fx-3.x] 7748: Adding preview images for 3.x themes.

    Revision: 7748
    Author:   [email protected]
    Date:     2009-06-11 07:34:57 -0700 (Thu, 11 Jun 2009)
    Log Message:
    Adding preview images for 3.x themes.
    Added Paths:
        flex/sdk/branches/3.x/frameworks/themes/AeonGraphical/preview.jpg
        flex/sdk/branches/3.x/frameworks/themes/Ice/preview.jpg
        flex/sdk/branches/3.x/frameworks/themes/Institutional/preview.jpg
        flex/sdk/branches/3.x/frameworks/themes/Smoke/preview.jpg
        flex/sdk/branches/3.x/frameworks/themes/Wooden/preview.jpg

  • Adding dynamic images to your website using Dreamweaver

    Hi
    I've been working on a website which has been in use by public for some months now.
    I recently wanted to add a simple product catelogue.   I can do this just by creating my database connection and using the recordsets.
    However I wanted to add an image thumbnail to each product record.
    I found the above topic in the Adobe Help 'Adding dynamic images to your website using Dreamweaver'
    What I really would like to know is what exactly is put in the image_location field of the table, how is this field populated and then how to view the picture.
    I have tried, as per instructions, but the picture is not showing.
    I use php as I dont know coldfusion, but I'm sure the process must be pretty similar.
    If anyone can shed some light then that would be really appreciated.
    Many thanks liz

    komrad78 wrote:
    > I'd like to know how do you add background music to a
    website using
    > dreamweaver CS3?
    > I'm using dreamweaver CS3 to create a website for my
    church (they
    > already have a domain) and I'm trying to figure out how
    to add
    > background music.
    >
    > Also, is there a way for me to add a music player or
    something to the
    > page that starts playing when they enter the site and
    let's you pick
    > different songs from it?
    >
    > And lastly, if I just embed a song or whatever it is as
    the
    > background music, can I make it loop or play a different
    song
    > afterwards?
    As most anyone else will say, so I will say; *please don't
    start it
    automatically!*
    Playing music on a site is fine, but making it play
    automatically when you
    go to the site will alienate lots of people; especially those
    having a quick
    web surf at work or who have other music on whilst they're
    working.
    But back to your question; have a look at the XSPF music
    player
    http://musicplayer.sourceforge.net/).
    It comes in different visual versions
    (can modify it with a bit of Flash knowledge), allows you to
    select
    different songs or just leave it looping, or you can just
    loop one song. And
    yes, you can make it start automatically.
    See
    http://www.blastoffmusic.org
    for an example of a christian site where it
    is used (on the inside pages)
    HTH,
    Pete.
    Peter Connolly
    http://www.kpdirection.com
    Utah

  • Adding another image gallery

    I have added an image gallery to my site and would like to add another one..
    except when i copy the code the 2nd image gallery doesnt work..
    HTML
    Javascript
    Thanks for your help.

    Note also that since javax.swing.Icon is an interface, you can simply create an Icon implementation that can draw two (or more) images. You could pass in two ImageIcons into your own class. Example code (untested):
    public class MultiIcon implements Icon {
       private Icon bottom;
       private Icon top;
       public MultiIcon(Icon bottom, Icon top) {
          this.bottom = bottom;
          this.top = top;
       public int getIconWidth() {
          return Math.max(top.getIconWidth(), bottom.getIconWidth());
       public int getIconHeight() {
          return Math.max(top.getIconHeight(), bottom.getIconHeight());
       public void paintIcon(Component c, Graphics g, int x, int y) {
          bottom.paintIcon(c, g, x, y);
          top.paintIcon(c, g, x, y);
    }

  • [svn] 4673: Adding preview images to the theme directories.

    Revision: 4673
    Author: [email protected]
    Date: 2009-01-26 12:46:51 -0800 (Mon, 26 Jan 2009)
    Log Message:
    Adding preview images to the theme directories.
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-17735, SDK-16429
    Reviewer: None
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17735
    http://bugs.adobe.com/jira/browse/SDK-16429
    Added Paths:
    flex/sdk/trunk/frameworks/themes/Ice/preview.jpg
    flex/sdk/trunk/frameworks/themes/Institutional/preview.jpg
    flex/sdk/trunk/frameworks/themes/Smoke/preview.jpg
    flex/sdk/trunk/frameworks/themes/Spark/
    flex/sdk/trunk/frameworks/themes/Spark/preview.jpg
    flex/sdk/trunk/frameworks/themes/Wooden/preview.jpg

    yes the first bit of code is netbeans generated.
    the second piece of code is an fx file that updates the content of the grid based on the users selection.
    so i cannot add the image to the grid in composer as its a dynamically generated grid. but ill try and see if i can just to test for now
    thanks...

  • Slideshow image resizing when adding new images

    I am creating a series of slideshows on multiple pages. I created one slide show using the "basic" slideshow and resized it to the dimensions and settings I wanted. I have many pictures all of different proportion, therefore, I selected the "fill frame proportionally" so they would all fit the dimension I set. I wanted to use this first slideshow as a template for all of the rest. I added images to this first slideshow with no problems. All of my different sized images scaled or cropped to fit within the dimension I set. The problem comes in when I do two things: 1) When I add other images of different dimensions to this same slideshow gallery, they come smaller that the intended dimensions I set previous. I check the setting and it is still on "fill frame proportionally" similar to the first batch of pictures. 2) The second issue is when copy this slideshow as a template to other pages. When I try to replace or add to the slideshow gallery, the images come in cropped or smaller rather than filling the frame. Again, the settings are still the same from my very first slideshow that worked just as i intended.
    I could resize all the images to all the same dimensions using another program like photoshop, but that is another step that is very tedious and it would seem that it should be something built into Muse.
    Is there a way around this?. Am I doing something wrong? Or is this just one of those glitches that happens with Muse? I appreciate any help that I can get.
    Thanks!

    Hi, I got it to work like this:
    Using background colours in Photoshop so that all sizes are the same in pixels. Then manually adjusting thumbnails by double-clicking on them so that a red square appears.
    Cheers,
    Elsemiek
    Op 26 dec. 2014, om 00:50 heeft MediaGraphics <[email protected]> het volgende geschreven:
    slideshow image resizing when adding new images
    created by MediaGraphics <https://forums.adobe.com/people/MediaGraphics> in Adobe Muse Bugs - View the full discussion <https://forums.adobe.com/message/7043933#7043933>
    Hi there Elsemiekagain,
    I had to fiddle around with my slide show to get it to work. That is, it worked at first, then went funky, and I had to fiddle. So much fiddling that I can't possibly know what actually made it start to work again.
    And to some degree, this is the way that I find Muse to be in general. That it requires finessing to get it to work as expected. This adds a good deal of time to every development project, though I am getting better at this with practice and experience.
    Most of it is not even things that could be easily put in words as instructions, as many are nanced. But in fairness, this version of Muse is a complete code re-write this year. So we do need to cut Adobe some slack, and give the team time to iron things out.
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7043933#7043933 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7043933#7043933
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Adobe Muse Bugs by email <mailto:[email protected]ftware.com> or at Adobe Community <https://forums.adobe.com/choose-container.jspa?contentType=1&containerType=14&container=47 59>
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624 <https://forums.adobe.com/thread/1516624>.

  • Adding an image when signing, but not in the signature field, in Reader

    Hi,
    I would like to know if it is possible to add an image to a pdf document when I sign the document in Reader.
    I do not want to add the image in the signature field as a signature, but rather below the signature field. The image is 'n barcode providing me with more information on the signature.
    I have looked at the Stamper example, but this functionality is not avialable in Reader.
    Thank you,
    Magda

    If you insert after signing you will break the signature!!   You need to do any such stamping BEFORE signing.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Wed, 26 Oct 2011 23:54:15 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Adding an image when signing, but not in the signature field, in Reader
    Re: Adding an image when signing, but not in the signature field, in Reader
    created by magdakuit<http://forums.adobe.com/people/magdakuit> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3992619#3992619

  • Components disappeared after adding the image in.....

    Hello everyone,
    I add a image in my home page that is in swing .As soon as I add that image the components in another page disappeared.(Componenets like textField ,Label).But when I click on that page, those pages appears. I want to appear all those pages at the first time as they are working before adding the image .
    Please tell me the solution on my ID or provide the solution over here.
    Thanks
    Vivek Kumar Gupta

    wht do u mean by pages.. ??
    and I should suggest you to use..
    validate();
    after adding images..

  • Problems adding an image title?

    Hi,
    When I place an image in Muse I'm having problems adding an image title. When I Control click the image in Design view the choices I get at the bottom of the pop up menu are
    Edit original
    Edit Image Properties
    When I looked it up in help it tells me I should also see another item "Add Title" but I don't get that as a choice. When I click on "Edit Image Properties" I get a choice of Tooltips or Alt Text but no place for a title.
    Thanks,
    Bill

    This is the page
    http://www.adobekb.com/strategies_for_seo.html#addingmetadata
    To be clear when I right click on an image I only get the choice of "Edit Original" & "Edit Image Properties". When I click on "Edit Image Properties" I only get a choice of Tooltips or Alt Text, nothing for title
    Thanks,
    Bill
    Adding titles and alternative text to images
    After you place images on a page, you can access the Image Properties dialog box to set both a title and alternative text (also sometimes called alt text) that is assigned to the image.
    Here's a brief description of each property:
    Title: In many browsers, the title is displayed in addition to the image, typically as a tooltip that appears when a cursor hovers over it.
    Alternate text: If the image file cannot be shown, this text is displayed in place of the image. Alternate text is also used to describe images to visually impaired visitors using assistive technologies to access page content.
    It is ideal to set titles and alternative text for every site asset, to ensure that visitors have the best experience when navigating your site. Tooltips are helpful for including additional information about graphics and alternative text makes pages more accessible for screen readers that verbally present graphic content.
    To add titles and alternative text, follow these steps:
    1. Select a placed image.
    2. Right-click on the image and select Add Title or Add Alternative Text from the context menu that appears (see Figure 3).

Maybe you are looking for

  • Report for to calculate export sales

    Hi, My client wants to calculate the export sales for the previous fiscal year. Is there any report which can provide me this data? Regards

  • Tnventory Management Weekly snapshot 0IC_C03

    Hi, We are trying to instal the stocks Flow, with the 0IC_C03 cube. Our Business Content (Release 703 Level 8) has the new Infosources (2LIS_03_BF_TR, 2LIS_03_BX_TR and 2LIS_03_UM_TR) and the related transformations from the Infosources to the cube.

  • How can i get iphoto 9?

    I am running OSX 10.5.8 and I have iphoto 7.1.5  I just spent many hours creating a calendar.  When I went to purchase it, I got an error message stating that apple doesn't support calendar purchases in iphoto 7 any longer, and I need to upgrade to i

  • Error in the connectivity

    Hi experts, Now i am facing a critical issue.we are using ecc(dev,test,prd) and bw(dev,test) systems. The basis team refreshed the ecc-dev system with ecc-prd. now  the develoved objects are fully changed for ecc-dev and bw-dev. i am also found that

  • Error from Xcode making no sense to me????

    I wanna study the C++ in XCode. After installing, I just inputted a following sample code, #include <iostream> using namespace std; int main() int iterations = 0; bool continue_loop = true; while ( continue_loop != false ) iterations++; cout << "the