Changing animated images via combobox

Hi,
Any help is greatly appreciated with this problem: I have an applet that allows a small moveable image to be manipulated within a larger one. It works fine when I hard code the image filenames but I cannot get it to work when I use a combobox to allow choices of the two image files. Here is the code:
package elaine;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import java.net.URL;
* <p>Title: Wavelength Filter Viewer</p>
* <p>Description: View the image through a filter</p>
* <p>Copyright: Copyright (c) 2002</p>
* <p>Company: Elaine</p>
* @author unascribed
* @version 1.0
public class AppletElaine extends JApplet implements MouseMotionListener{
private Container c = getContentPane();
private BorderLayout layout;
private JPanel cboxPanel;
private JPanel viewPanel;
private JViewport vp = null;
private RasterComponent rc = null;
private RasterComponent rc2 = null;
String var1, var2;
private JButton circle;
private JComboBox imagesOne;
private JComboBox imagesTwo;
private String names[] =
{ "seit_171.jpg", "seit_195.jpg", "seit_284.jpg", "seit_304.jpg",
"smdi.jpg", "norh_17ghz.jpg", "nancay_183cm.gif"};
Image img1 = null;
Image img2 = null;
private boolean inAnApplet = true;
URL codeBase; //used for applet version only
boolean isStandalone = false;
//Construct the applet
public AppletElaine() {
//Initialize the applet
public void init() {
layout = new BorderLayout( 5,5 );
c.setLayout( layout );
cboxPanel = new JPanel();
viewPanel = new JPanel();
imagesOne = new JComboBox(names);
imagesTwo = new JComboBox(names);
cboxPanel.setLayout( new GridLayout( 1, 2 ) );
cboxPanel.add( imagesOne );
cboxPanel.add( imagesTwo );
imagesOne.addItemListener( new ItemListener() {
public void itemStateChanged( ItemEvent e )
loadImages( names[ imagesOne.getSelectedIndex() ],
                    names[ imagesTwo.getSelectedIndex() ] );
imagesTwo.addItemListener( new ItemListener() {
public void itemStateChanged( ItemEvent e )
loadImages( names[ imagesOne.getSelectedIndex() ],
                    names[ imagesTwo.getSelectedIndex() ] );
c.add( viewPanel, BorderLayout.CENTER );
c.add( cboxPanel, BorderLayout.NORTH);
     setSize(400,420);
show();
public void loadImages( String var1, String var2 ) {
     try
     img1 = getImage( new URL( getCodeBase(), var1 ) );
     img2 = getImage( new URL( getCodeBase(), var2 ) );
     catch( Exception e )
     e.printStackTrace();
     rc = new RasterComponent( img1 );
     rc.setBounds( 0, 0, rc.getPreferredSize().width,
          rc.getPreferredSize().height );
     rc.addMouseMotionListener( this );
     vp = new JViewport();
     rc2 = new RasterComponent( img2 );
     vp.setView( rc2 );
     vp.setBounds( 0, 300, 100, 100 );
     viewPanel.add( vp );
     viewPanel.add( rc );
public void mouseMoved( MouseEvent e )
     int x = e.getX() - vp.getExtentSize().width / 2;
     int y = e.getY() - vp.getExtentSize().height / 2;
     vp.setViewPosition( new Point( x, y ) );
     vp.setBounds( x, y, 100, 100 );
public void mouseDragged( MouseEvent e )
private class RasterComponent extends JComponent
     private Image image = null;
     private Dimension size = null;
     public RasterComponent( Image img )
     image = img;
     loadImage();
     public Dimension getPreferredSize()
     return size;
     public void paint( Graphics g )
     g.drawImage( image, 0, 0, size.width,
               size.height, this );
     protected void loadImage()
     MediaTracker tracker = new MediaTracker( this );
     tracker.addImage( image, 1 );
     try
          tracker.waitForAll();
     catch( InterruptedException e ){}
     if ( size == null )
          size = new Dimension( image.getWidth( this ),
                         image.getHeight( this ) );
     setSize( size );
That's it. Thanks!

try this way:
public void loadImages( String var1, String var2 ) {
try
img1 =
(new ImageIcon(getClass().getClassLoader().getResource(var1))).getImage();
catch( Exception e )
e.printStackTrace();
//...

Similar Messages

  • How do I change the image resolution of a photo?

    Hi..,
         I am the beginner in Photoshop.
         I want to change one image resolution from 72 dpi to 300 dpi.
         So, I search and got one pdf for change the resolution of the image. In that they mention, take the "Printscreen" of the image and paste in the photoshop and change the mode(Index - flatten) and change resolution via the "Image -> image size -> Resolution".
         Like that i did, it changed correctly.
         After that I Open one already saved image file in Photoshop and do that same steps but the resolution was not changed.
    So, now how to change that saved image resolution to 300 dpi...??
    Regards.,
    VISWA

    Viswa,
    To find the current resolution of your image, follow these steps:
    With your image open in Photoshop, Image > Image Size (Like you've already done earlier).
    Check the resolution as shown above. If it doesn't show 300, enter 300, hit OK and 'Save' your image.
    Open the file and check again. If it still shows 72, post back with more details of the type of file you're trying to open in Photoshop and if possible, a screenshot so we can help.
    -ST

  • Questions regarding using the .monitor command to retur a animated image and we would like feedback to a designed webpage that is monitoring a 5kW windturbine:)

    I'm embedding a front panel image in an existing HTML dokument. I would like to use the command .monitor in the URL together with the refresh command so the VI automatic will reload every 20 secund. This actual work, but simultaneous I want to have the possibility to refresh manually so I don't have to wait 20 sec before new values is shown in the display. Is this possible to do?
    Another question: Since the real time display updates 1-2 times a secund the command .monitor is used to get a animated picture of the Real Time Display.
    There are several ways to add animation on to web pages. The techniques used h
    ere are the �server push� and �client pull�which makes the browser repeatedly reloads a changing inline image to provide crude animated sequences. This is not the most efficient way as this result�s in an image being re-transmitted for each frame of the animation. The command .monitor with the attribute refresh and lifespan in the URL trigger this �server push� and �client pull� techniques.
    I use this automatic refresh uploading of the display so that it each time shows different values, is this called crude animation?Then I'm wondering what I'm suppose to use the command lifespan to?I can't see the use of it in my display.....?
    link to the webpage so you can have a look at the display:
    http://134.7.139.176/.monitor?Real%20Time%20Performance.vi&refresh=20
    This is a project that I'm working together with another Norwegian friend. WE are very happy for feedback on our web page and displays go to: http://www.ece.curtin.edu.au/~peersena/ if you would like to view itThanks

    Annis,
    One of the other things to keep in mind is that the generation of an image does take some computing power so having the generation and the acquistion on the same machine is not always ideal. If you're using the machine that is publishing the front panel just to collect data it's not so much of an issue.
    If you really want to monitor in "Real-Time" using Remote Panels (requies LabVIEW 6.1) is your best option. This posting has more information on using Remote Panels and links to some live examples:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000C0660000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_TIER_0=0&USEARCHCONTEXT_TIER_S=0&USEARCHCONTEXT_QUESTION_0=web+control&USEARCHCONTEXT_QUESTION_S=0
    Remote panels makes it possible to control the application remotely as well.
    With .monitor the only way I've been able to manually refresh is to "Shift+Refresh" on the browser.
    Regards,
    Kamran

  • How do I change animated space background of Restore to window in Mavericks

    Hi, My wife just bought an iMac 21.5 with OS 10.9.2. She doesn't like animated images on screen, makes her woozy, so she wants to get rid of the animated space background that appears behind the pages displayed on the Restore to... menu item window. We can't find a preference for it.
    Thanks, Craig

    Craig ...
    Open System Preferences > Desktop & Screen Saver > Desktop
    Select a desktop image.  (static) no animation.
    Might want to reset the Change picture time from that pop up menu in the same Preferences window.

  • Flash changes the image's colour and quality

    Hi,
    I've been working on an animation with the image fading in and zoomin in. However, I noticed that the image has different colour in a flash animation from the same image used on the same website as an image in a  jquery gallery.
    Here are the links:
    flash animation
    image in a gallery  -  (4th image from the left)
    The other thing is, when animating image in flash, it looses its quality and becomes a bit pixelated. Why is it happening?
    I would appreciate any help.

    If you are animating the image, you should set the smoothing property of the image to be true.  If you have the image in the library, then right click it in the library, choose Properties, and select the option to Allow Smoothing.  This should help with pixelation and other impacts of animating the image.
    You might also adjust any other settings in that same interface.  It is possible the color change is due to optimization settings in Flash.

  • Viewing images via Bridge CS3

    I usually adjust images in Aperture but have just begun to use the Raw converter within CS3 for a few files. I can export master files onto my desktop and dbl click to open the NEF file, however, this seems very clumsy. I know you can access the RAW images via Bridge CS3 but when I try to access all I get is the aperture library white icon (looks like a fridge?!) but when I ask to display contents it seems to be locked - my aperture library is situated in Pictures - but this still does not allow access - anyone know - thanks to anyone who does !

    thank you - yes, I agree I would prefer to not bother with Bridge, but when I "Open With" which I had defaulted to PSCS3, this opens fine, but the master file opens in tif or psd depending on what I need, and then of course the ACR dosn't open- I think I may be thrown a bit here by your comment on "referenced" master files - but however, at least I do follow you clearly on the tif/jpeg import concerning reflection of changes - really appreciate your time!

  • "Rend Error" when sending image via iChat/AIM

    On my brand new iMac aluminum, I am unable to send, and friends are unable to send, images via iChat AIM 3.1.8 (V445). When either of us try to send, we get the message "An undefined AIM error has occured. The server message was: Rend: Error"
    I then spin around and use my old G4 iMac to send an image - no problem. My buddy is also able to send to me, no problem.
    Both computers are connected to the same Linksys WRT54G router. When I searched for the term 'rend' only one thread came back which suggested to change the port from 5190 to 443. I did this and it didn't help.
    Any other suggestions?

    Hi Craig,
    In the Linksys set up pages you have Application and Gaming (Which is where I think you are talking about)
    In there there are several options.
    Port Forwarding, Port Triggering, DMZ (possibly UPnP Forwarding and QoS)
    Disable any Port Forwarding or Port Triggering. DO not use the DMZ.
    Save settings. (you should still have Web browsing and Mail abilities).
    GO to the Administration tab on the top row.
    Enable UPnP.
    Save Settings.
    UPnP allows multiple computers to use the same ports.
    This way the Linksys can be left doing DHCP if you wish and it will not matter if your computer gets a new IP every now and then. Also the Ports are opened by the application and close after a timed period of non use.
    You can limit the "Hops" to the number of devices the computer is from the Linksys (1 ?) to make it more secure.
    On the main set up page you could limit the the DHCP range to the number of computers you have to prevent outside connections.
    The ports you describe so far are only the TExt chatting and file sending ports
    11:23 AM Monday; August 13, 2007

  • Dynamically output a  image via struts insted of servlet

    Hello,
    I want to know how to dynamically output a image via struts insted of servlet;
    I can work it fine with the serverlet, this how i get it to work via serverlet:
    java class:
    public class ImageServlet extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response)
              throws ServletException, IOException {
    in web.xml :
    <servlet>
    <servlet-name>ImageServlet</servlet-name>
    <servlet-class>com.admin.transferform.ImageServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ImageServlet</servlet-name>
    <url-pattern>/ImgServlet</url-pattern>
    </servlet-mapping>
    and access the pic in[b] jsp :
    <img src="/ImgServlet"></img>
    <br>
    I just want to know, how do i access via struct?
    i change the java class to :
    public class ImageServlet extends Action {
    public ActionForward execute(ActionMapping mapping, ActionForm form,
    HttpServletRequest request, HttpServletResponse response) {
    and in struts-config.xml :
    <action
    path="/image"
    type="com.admin.transferform.ImageServlet">
    </action>
    and i have tryed both these in jsp but none did work:
    in JSP :
    <img src="/image"></img>
    or
    <html:image src="/image" />
    can some one tell me, where did i went wrong pleaseee :)

    ImageServlet java :
    package com.admin.transferform;
    import java.io.*;
    import java.net.URLConnection;
    import javax.servlet.ServletException;
    import javax.servlet.http.*;
    import org.apache.log4j.Logger;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionError;
    import org.apache.struts.action.ActionErrors;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    public class ImageServlet extends Action {
         private static Logger logger = Logger.getLogger(ImageServlet.class);
    public ActionForward execute(ActionMapping mapping, ActionForm form,
    HttpServletRequest request, HttpServletResponse response) {
              try {
                   InputStream in = new BufferedInputStream(new FileInputStream("/export/projects/images/headernews.jpg"));
                   logger.debug("dec : trying to output the image file");
                   String s = URLConnection.guessContentTypeFromStream(in);
                   response.setContentType( s );
                   byte pic[]= new byte[in.available()];
                   in.read( pic );
                   OutputStream out = response.getOutputStream();
                   out.write( pic );
              } catch (IOException e) {
                   logger.error("Error opening file region", e);
              return null;
    in struts-config :
    <action-mappings>
    <action
    path="/image"
    type="com.waterfind.admin.transferform.ImageServlet">
    </action>
    </action-mappings>
    jsp :
    <img src="<html:rewrite action="/image"/>">
    or
    <img src="/myContext/image.do"/>
    none working still, any more help please :)

  • HT201364 since I updated my system to Mavericks my computer colour is always grey. I have tried to change the colour via system preference without any success. What should I do to so that my screen will be colourful?

    since I updated my system to Mavericks my computer colour is always grey. I have tried to change the colour via system preference without any success. What should I do to so that my screen will be colourful?

    Please post a screenshot that shows what you mean. Be careful not to include any private information.
    Start a reply to this message. Drag the image file into the editing window to upload it. You can also include text in the reply.

  • Changing BIOS image

    I have an HP Pavilion dv6 2020ev laptop running Windows 7 Ultimate 64-bit. Is there any way to change the image BIOS displays when booting up (before Windows boot-up)?

    Replacing your BIOS logo
    Flashing the BIOS on your computer is risky even if you don't modify it - flashing the BIOS with a modified BIOS image is very dangerous and may well result in a non-working motherboard that is very difficult, or even impossible to repair. Follow these instructions
    entirely at your own risk. 
    If your BIOS currently doesn't display any logo, and doesn't have any setting in the Setup, it is possible that it can't display the logo. In this case, you may check your motherboard manufacturer's website, to see if a BIOS update which can display the boot-up
    logo is available. 
    This guide assumes that your BIOS file is called BIOS.BIN. 
    These instructions were tested on GigaByte 7VAXP and VIA Epia Eden 5000 motherboards. They should work with most motherboards which use Award BIOS though. (If you don't know if you have Award BIOS, here's a screenshot of mine.)
    1. Requirements:
     CBROM.EXE - tool for editing the BIOS files; you can find it with Google.
     BIOS for your motherboard
     AWBMTools - programs for converting TIFF files to Award Logo format and vice-versa
    2. Ensure that you have CBROM.EXE and TIFF2AWBM.EXE (from AWBMTools) somewhere in your PATH (if you don't know what this means, it's best that you don't play with your BIOS).The easiest way of ensuring this is to put all
    the EXEs in the same folder as your BIOS file
    3. Open a command console (MS-DOS box) and change to the folder where you have your BIOS. First check that your CBROM is compatible with your BIOS file. Type CBROM BIOS.BIN /D. You should get something similar to this:
    4. E:\BIOS\GigaByte>CBROM BIOS.BIN /D
    5. CBROM V2.01A (C)Award Software 1999 All Rights Reserved.
    6.
    7.              ********     BIOS.BIN BIOS component ********
    8.
    9. No. Item-Name         Original-Size   Compressed-Size Original-File-Name
    10. ================================================================================
    11.  0. System BIOS       20000h(128.00K) 13C67h(79.10K)  F13.BIN
    12.  1. XGROUP CODE       0AEE0h(43.72K)  07B7Ch(30.87K)  awardext.rom
    13.  2. ACPI table        042CFh(16.70K)  0170Eh(5.76K)   ACPITBL.BIN
    14.  3. EPA pattern       0168Ch(5.64K)   0030Dh(0.76K)   AwardBmp.bmp
    15.  4. YGROUP ROM        05EA0h(23.66K)  03F04h(15.75K)  awardeyt.rom
    16.  5. Other(4029:0000)  05AE0h(22.72K)  02504h(9.25K)   _EN_CODE.BIN
    17.  6. PCI driver[A]     10000h(64.00K)  09DEDh(39.48K)  RAID133.ROM
    18.  7. PCI driver[B]     04000h(16.00K)  02524h(9.29K)   ATA133.ROM
    19.  8. LOGO1 ROM         00B64h(2.85K)   0057Ch(1.37K)   dbios.bmp
    20.  9. OEM0 CODE         02449h(9.07K)   01A70h(6.61K)   dbf.bin
    21.
    22.  Total compress code space  = 36000h(216.00K)
    23.  Total compressed code size = 31903h(198.25K)
    24.  Remain compress code space = 046FDh(17.75K)
    25.
    26.                      ** Micro Code Information **
    27. Update ID  CPUID  |  Update ID  CPUID  |  Update ID  CPUID  |  Update ID  CPUID
    28. ------------------+--------------------+--------------------+-------------------
    29.
    E:\BIOS\GigaByte>
    CBROM lists the files in your BIOS and gives some other information. Most important line is Remain compress code space = 046FDh(17.75K), which tells you that there's about 17 kB free space in your BIOS, space that can be used by the logo. 
    Other interesting items are EPA pattern, which is the Energy Star logo displayed during boot-up and LOGO1 ROM, which is another image displayed during boot-up (in this case it's GigaByte's DoubleBIOS logo). EPA pattern and the logo can be safely removed from
    the BIOS to make more space for the full-screen logo. 
    If your BIOS already contains a logo, a line similar to thisone will appear somewhere:
      9. LOGO BitMap       4B30Ch(300.76K) 02ECBh(11.70K)  VPSD.BMP
    Note the uncompressed size, 300.76kB, this tells you that it's a full-screen logo. You will want to remove this. 
    On the other hand, if your output looks similar to this, the CBROM version is not compatible with your BIOS:
    E:\BIOS\GigaByte>CBROM.EXE BIOS.BIN /D
    CBROM V1.30 (C)Award Software 1999 All Rights Reserved.
                  ********     BIOS.BIN BIOS component ********
     No. Item-Name         Original-Size   Compressed-Size Original-File-Name
    ================================================================================
      0. System BIOS       937DC88h(151031.10000h(64.00K)  ô6} =»o2»XĽÔßRó27-|Le_?  
      1. Other(5000:0000)  20000h(128.00K) 13C66h(79.10K)  F13.BIN
      2. Other(7F00:0000)  AEE000h(11192.007B5493h(7893.14Kô
      Total compress code space  = 30000h(192.00K)
      Total compressed code size = 7D90F9h(8036.24K)
      Remain compress code space = FF866F07h(-7780.24K)
    E:\BIOS\GigaByte>
    30. If you wish to remove the existing full-screen logo from your BIOS, use the following command: CBROM BIOS.BIN /LOGO Release. To remove the EPA logo, use CBROM BIOS.BIN /EPA Release. For any other logos that may be in
    your BIOS, use CBROM BIOS.BIN /LOGOx Release. Replace x with the number that appears in the listing.
    You can also remove other parts of BIOS this way, however you will disable those hardware components by doing it. Eg. I removed RAID133.ROM from my BIOS, because I don't use the Promise controller as RAID. (There is still ATA133.ROM in there, which allows me
    to use it as normal IDE controller). If you have an on-board network card, there's a chance that boot ROM is included in your BIOS. If you don't boot off network, you can remove that ROM (it is only needed for booting, the network card will work fine without
    it). Remember though, that any of these actions can corrupt the BIOS and later render the system unbootable. If you wish to remove other parts of BIOS, run CBROM without any parameters, it will tell you which switches you can use.
    31. If your logo is already in AWBMP format, you can skip to step 6. Otherwise, here are instructions on how to prepare the logo:
    1. The logo dimensions must be 640x480 pixels with 256 colors. However, you should avoid using too many colors at once, and the image shouldn't be dithered to improve compression. You might find it necessary to reduce the
    number of colors to be able to squeeze the image into your BIOS.
    2. Save your image as a TIFF (Tagged Image File Format) file.
    3. Use TIFF2AWBM.EXE to convert the image to Award Bitmap format: TIFF2AWBM myimage.tif myimage.bmp. Note that output file name must not be longer than 8.3 characters. Also, Award BMP format is not compatible with Windows
    BMP format, even though they use the same extension.
    32. To insert your logo to the BIOS, run CBROM BIOS.BIN /LOGO myimage.bmp. If it succeeds, you'll see something like this:
    33. E:\BIOS\GigaByte>CBROM.EXE BIOS.BIN /logo new.bmp
    34. CBROM V2.01A (C)Award Software 1999 All Rights Reserved.
    35. Adding new.bmp ..................................... 19.4%
    36.
    E:\BIOS\GigaByte>
    In this case, you can flash your BIOS with the newly prepared file. Remember that you do it at your own risk, so don't blame me if the system doesn't boot after flashing.
    Follow the instructions of your motherboard's manufacturer on how to flash the BIOS. 
    If however, the image is too big to fit in the BIOS, you will get this message.
    E:\BIOS\GigaByte>CBROM.EXE BIOS.BIN /logo new.bmp
    CBROM V2.01A (C)Award Software 1999 All Rights Reserved.
    Adding new.bmp ..................................... 19.6%
    BIOS.BIN have not enough space for adding ROM. (Over A545h bytes)
    E:\BIOS\GigaByte>
    The message also tells you how much more space is needed to store the image, however it's in hex. Use your fauvorite calculator to convert it to decimal (in the example, the compressed image is 42309 bytes too large).
    You can either try to reduce image complexity, or if you're more adventurous, you can try removing some of the ROMs in B

  • I have an macbook. The pinch/squeeze function (enlarges images via trackpad) will not work on my laptop on this version of firefox.

    The pinch open and close (enlarges screen and images via trackpad) function on my Macbook Pro does not work. It worked with the previous version of firefox.
    I'm not happy trying to add fixes to new version firefox. Please tell me how to get rid of this new version and reinstall the previous.

    Some gestures have been removed in Firefox 4.
    You can restore the zoom feature by changing the values of the related prefs on the <b>about:config</b> page.
    browser.gesture.pinch.in -> <b>cmd_fullZoomReduce</b>
    browser.gesture.pinch.in.shift -> <b>cmd_fullZoomReset</b>
    browser.gesture.pinch.out -> <b>cmd_fullZoomEnlarge</b>
    browser.gesture.pinch.out.shift -> <b>cmd_fullZoomReset</b>
    browser.gesture.pinch.latched -> <b>false</b>
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    You can use the Filter bar at to top of the about:config page to locate a pref more easily.

  • I have created a 468x60 animated banner in Edge Animate. How do I save the animated image to my desktop? (not in html code)

    I have created a 468x60 animated banner in Edge Animate. How do I save the animated image to my desktop? (not in html code)

    Hi,
    This feature is not available in Adobe Edge animate. You can not export as image from Edge animate.
    Publish options available in edge describe here
    Edge Animate Help | Publish your content
    Regards,
    Devendra

  • How to open and validate the tif images via java?

    Is it possible to open and validating the photoshop images via java. Kindly advise me.
    Thanks for looking into this.
    Maria Prabudass

    I have recently looked at athe code for Image Processor.
    To avoid bailing on errors it uses two techniques.
    1) It turns off all PS error reporting in addition to just turning off dialogs with:     app.displayDialogs = DialogModes.NO;  (it restores the original settings when exiting)
    2) It uses the Javascript construct  Try.....Catch around the basic body of the code so "any" error will not abort the script but just jump to the "Catch" code.
    Hope that is useful

  • Problem in changing branding image.

    Hi all,
    I have a problem in changing the branding image for portal logon page.
    To my knowledge I have the change the image file under
    \usr\sap\EPD\JC0\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\portalapps\com.sap.portal.runtime.logon\layout
    But to my surprise I am not able to see gthe com.sap.portal.runtime.logon folder in the server.
    Can somebody suugest me what might be the reason.Is it any problem with the versions or something?
    Thank You,
    Regards,
    Rajesh

    It is:
    \usr\sap\EPD\JC0\j2ee\cluster\server0\apps\sap.com\com.sap.security.core.admin\servlet_jsp\logon\root\layout\
    You can do a simple search for branding-image.jpg from \usr\sap\EPD\JC0\j2ee\cluster\server0 to find the location. You can change the location or name in the config tool.
    Regards,
    Slava

  • How do I change an image border color to another color - Dreamweaver CS5?

    Good day,
    I have just learned how to add a border to an image with Dreamweaver CS5 within the Properties Inspector.
    After typing the width in pixels in the Border Text Field and pressing the Enter key, Dreamweaver created a black border.
    How do I change the image border color to another color?

    I added your suggested rule to the Style Sheet "in any order" as you explained. See the image below.
    However this did not change the image border from black to light blue. In fact, nothing changed.
    Nothing changed because the CSS that has been written into DW is incorrectly written.
    You want the following (exactly as written below)
    img {border: 4px solid #0062C8;}
    You've inadvertently wrapped the rule inside a #main_image container rendering it meaningless.
    It's easiest to go into Code View and change
    #main_image {
         img {border: 4px solid #0062C8;
    to
    img { border: 4px solid #0062C8; }
    The Property Inspector added a border exactly as I wanted it, other than the color I wanted the border to be. What is the use of this function in Property Inspector if it can add a border within Property Inspector but not let me change the COLOR of the black border that Property Inspector added, to another color?
    That's a deceptively simple, yet valid, question with a long answer.
    Back in the dark old days of web design web designers were restricted to inline HTML formatting which offered  border properties but no colors.
    CSS styling offers colors and more but has to be written differently.
    These days. it's best to avoid HTML formatting. Unfortunately border="4px" in the PI still allows it. But does not permit color.
    Does anyone else out there ever add color borders to their IMAGES (not the containing box for the image) ?
    Yes, using CSS.

Maybe you are looking for