Exit a comparison with focus on image with green border?

If I am comparing images and decide I want to exit the comparison, I command-click the image with the green border, but the focus then goes to whichever photo has the thick white border. Is there anyway to exit the comparison and still have the focus on the one with the green border?

I don't know if this was always the case, but after the upgrade to Aperture 2.1.1, I am now able to exit with focus on the base (green border) image by pressing option-return.

Similar Messages

  • How to make a podcast with one still image with iMovie 09

    I'm using trying to transfer my podcasts to Vimeo. I've been using iWeb to create a person web site with video and podcasts. I have embedded Vimeo with "html snippet widge." I want to do the same thing with audio, however Vimeo only accept "video" files.
    In my attempt to work around Vimeo's video issues, I had the idea to use iMovie 09 to create a "video file" using a single still image with my audio podcast play in the background. The single image would be consistent for the entire length of the audio. It seems simple...one still image file and one audio file.
    All of my audio files are less than 45 minutes in length. The problem is that when I insert an image in iMovie I can't get it to last for more than 10:00 minutes of my podcast. I've had to drag the same image over several times, extend each image's length to 10:00 minutes until I have enough images to last the full length of the audio file.
    I'm sure there's a simple way to do this with one image, used one time, and have the audio added.
    Anyone understand my situation and have a good idea?

    The most efficient method would be for you to do this in iMovie 6. You can download a version if you don't already have it on your computer. http://supportdownload.apple.com/download.info.apple.com/AppleSupport_Area/Apple_Software_Updates/Mac_OSX/downloads/061-3532.20070807.nq3ER/iMovieHD6.dmg
    Put all your clips into a new iMovie project, in the order you wish them to play. Use the chapters tab and add chapter markers for each clip (except the first one; iDVD will add that one for you). Close iMovie.
    Open an new iDVD project. Use the Media tab, then Movies, to locate your new iMovie. Drag and drop it onto the main iDVD window, taking care not to drop it into a drop zone. You should then see the title of your movie and the two options: Play Movie (which will play all the clips sequentiallly) and Scene Selection (which will take you to submenu(s) where you can select which clip to view).

  • Hello Experts, i have issue with mime repository image with different languages ?

    Good day !
    I was facing the issue with images : we  are creating the images by using CSS tool  to generate a button. that image type is .png , this images we are importing into webdyunpro component as a mime object.
    These images are binided into button image source property. And i am writing the code for calling this button (this is uniq code for all languages).
    But all langaues are working fine for spanish(ES) langage only it was not displaying the image. it is displyind cross mark.
    Naming standard i ma mainintg for mime object name : Export_ES.png.(spanish).
    Please can any one help me on this .
    Regards,
    Venu

    Hi Kiran,
    Thanks for your Promt reply.
    1. i am creating different images for different languages.
      ex : english : Export_EN.png
             Spanish : Export_ES.png
    Code will be : here i am creating attribute and bing that attribute to button image source.
    me ->get_button_img
        EXPORTING
          im_button_id    = 'Export'
          im_button_value = 'IMG_EXPORT'
          im_type         = '.png'
        CHANGING
          ch_context_ele  = lo_el_images.
    'IMG_EXPORT' : attribute name
    method : get_button_img
       DATA: lv_img_name TYPE string,
            lv_lang     TYPE string.
    *        lv_jpg(4)   TYPE c VALUE '.jpg'.
      lv_lang  =  sy-langu .
      CALL FUNCTION 'CONVERSION_EXIT_ISOLA_OUTPUT'
        EXPORTING
          input  = lv_lang
        IMPORTING
          output = lv_lang.
      CONCATENATE im_button_id  '_' lv_lang IM_TYPE INTO lv_img_name.
      CALL METHOD CH_CONTEXT_ELE->set_attribute
        EXPORTING
          value = lv_img_name
          name  = im_button_value.
    here lv_img_name : Export_ES.png.
    But its not working.
    thank you

  • Using still images with Final Cut (and the apple suite in general)

    I have had a re-occuring and long term problem that has caused me many lost hours of head scratching and work arounds, and as of yet I have not been able to come up with a good solution.
    Its to do with integrating still images with the Final Cut suite.
    If I receive a high quality image from a client to use in their video and I then try importing it into Final Cut and animating it, it always ends up looking like a pile of ahem. Often I will get "swimming" lines appear across fine detail on the image, and parts of it will flicker as it moves across the screen. For instance, if I have a picture of some blinds or other fine detail (especially horizontal and vertical lines), when I add a grow and throw movement to it the detail will become very noisy - buzzing and flickering like mad.
    I have found I can counter this by resizing the image in photoshop to a resolution closer to SD video (700w or 500h) - but I always end up losing detail, and the flickering and noise is only reduced, not eliminated. Other things that have helped are blur effects applied at a very low level, like 0.5 blur, so its not noticeable visually, but Final Cut seems to treat it differently and quieten the noise and flicker down.
    However, all of these workarounds are ultimately still giving a reduced quality product.
    Also, this problem is not necessarily constrained to Final Cut, I am currently fighting DVD Studio Pro because it is murdering the text quality in a stills slideshow I am creating - and in this situation there is no animation being applied. No matter what file type (psd, jpeg, tiff, png...) or size I output the text and images from Photoshop in, the moment DVD studio pro gets hold of it, it turns to cripe.
    For a while I was putting it down to the fact that I usually edit in SD (PAL) formats, and there just wasn't the resolution available to reproduce fine detail. However, I do often see other people achieving pin-sharp fine detail on still images and text in SD formats (the Apple templates are a good example)
    So, my question to you, oh great and high boffins, if you are dealing with still images and text, how do you do it? How do you work around any noise problems you have, and how do you produce those pin-sharp images (both moving and still) I see in other professional productions?
    Quad G5   Mac OS X (10.4.8)  

    still images with too high a resolution will always cause problems. this is due to the detail of the image being finer than the scanline of the tv can display ... obviously this will caise the image to flicker as these details alternately appear and disappear as and when the scanline can display them. as you have discovered, the answer is to apply a very small blur, the effect being that the detail is spread by the blur such that the scanline can dislay it correctly.
    text issues are often rooted in the same problem ... unless the text is placed very carefully (whole even number on the y axis) then the quality may be impaired due to the resulting interlacing/scanline issues

  • Sound but no image with a hybrid usb dvb stick (PX1256E-1TVH)

    Hi,
    I'm usind this usb key on windows 2000 on a notebook from another manufacturer(ie PIVm 1.8Ghz, 512M RAM, ATI Mobility Radeon 7500 with 32MB dedicated memory)
    With Savvy TV 2.2.2
    I use it with a normal antenna (used for my usual TV) and have a clear sound but a blank screen as image :-( and i'm not looking at a radio (like the FAQ imagine (!)). I'm just using analogic TV (not DVB)
    Directx 9.0c is intalled
    PS: The usb key is working, but with a bad image, with another pc (laptop) and a smaller antenna (because i don't have access to antenna in this room)
    Any idea?
    Regards,
    Fred (France)

    Please download the newest software from the Toshiba European page!!!
    http://eu.computers.toshiba-europe.com/cgi-bin/ToshibaCSG/download_drivers_bios.jsp?service=EU
    You should search in;
    Options -> USB options -> TV Tuner -> DVB-T Tuner or USB Hybrid TV tuner
    Remove the old software, reboot the notebook, clear the registry with CCleaner and reinstall the new software from the Toshiba page!

  • Rotating Image With Reflections

    A few years back I bought a manual for Director 6.0. In the
    back of the manual there was a demo disc showing some samples of
    other people's work. One of the samples was called Big Top. It was
    a totating logo in shinny gold, and as it rotated, you would see
    reflections of objects and light on the surface. At one Time I
    asked how it was done, and was told that an ap called RayDream
    Designer could do it. I was told that in that ap, you could draw a
    3D room, with the four walls, floor and ceiling, and when you
    placed an object in the center of the room and rotated it, you
    would end up with a rotating image with the reflection from the
    walls. I never tried it, and long ago RayDream Designer stopped
    being supported. Recently, I was told that the same thing could be
    done with Photoshop or Flash, but I have not figured out how it is
    done. What I want to do, is create a 3D image of a logo in gold,
    chrome, or somethign reflective, and have it rotate with the
    reflections as it rotates. I have seen similar thing on TV
    commercials, but I think I need a little help on figuring out how
    this is done.

    A few years back I bought a manual for Director 6.0. In the
    back of the manual there was a demo disc showing some samples of
    other people's work. One of the samples was called Big Top. It was
    a totating logo in shinny gold, and as it rotated, you would see
    reflections of objects and light on the surface. At one Time I
    asked how it was done, and was told that an ap called RayDream
    Designer could do it. I was told that in that ap, you could draw a
    3D room, with the four walls, floor and ceiling, and when you
    placed an object in the center of the room and rotated it, you
    would end up with a rotating image with the reflection from the
    walls. I never tried it, and long ago RayDream Designer stopped
    being supported. Recently, I was told that the same thing could be
    done with Photoshop or Flash, but I have not figured out how it is
    done. What I want to do, is create a 3D image of a logo in gold,
    chrome, or somethign reflective, and have it rotate with the
    reflections as it rotates. I have seen similar thing on TV
    commercials, but I think I need a little help on figuring out how
    this is done.

  • Opening an exiting image with PS CS6

    Every time I open an image with my PS extenden edition CS6 the image is not completely shown, I have to
    or duplicate the layer (backgroud layer)
    or remove it out of background
    only than te image is completely displayed
    see example
    the problem is similar with files in RAW format (NIKON x.nef) see
    I already reinstalled PS but dit not solve. Looking for updates on the product, no missing updates (it looks like I have the latest available version
    Any suggestion

    If your display driver does not properly support Photoshop's acceleration (clearly so), and you can't find a display driver update to correct the problem, then there are things you should do:
    1.  In Photoshop, go into your Edit - Preferences - Performance dialog, click the [Advanced Settings] button, and try a lower mode.  Restart Photoshop afterward to test.  In the worst case scenario, where even Basic mode doesn't work, try turning off the [  ] Use Graphics Processor setting entirely.
    2.  Petition your laptop maker to update their supported drivers from the latest supplied by the display adapter maker, as they have generally all released newer versions of display drivers that work with Photoshop CS6.
    -Noel

  • I try to create an html for IPad. The html page contains an element overlapping a video, now it works as for view but the focus is still with video. This denies the event of overlapping element from occuring. Can please anyone help to solve this issue?

    I try to create an html for IPad. The html page contains an element overlapping a video, now it works as for view but the focus is still with video. This denies the event of overlapping element from occuring. Can please anyone help to solve this issue?

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Problem with focus on applet  - jvm1.6

    Hi,
    I have a problem with focus on applet in html page with tag object using jvm 1.6.
    focus on applet work fine when moving with tab in a IEbrowser page with applet executed with jvm 1.5_10 or sup, but the same don't work with jvm1.6 or jvm 1.5 with plugin1.6.
    with jvm 1.5 it's possible to move focus on elements of IEbrowser page and enter and exit to applet.
    i execut the same applet with the same jvm, but after installation of plugin 1.6, when applet gain focus don't release it.
    instead if i execute the same applet with jvm 1.6, applet can't gain focus and manage keyevent, all keyevent are intercepted from browser page.
    (you can find an example on: http://www.vista.it/ita_vista_0311_video_streaming_accessibile_demo.php)
    Any idea?
    Thanks

    Hi piotrek1130sw,
    From what you have described, I think the best approach would be to restore the original IDT driver, restart the computer, test that driver, then install the driver update, and test the outcome of installing the newest driver.
    Use the following link for instructions to recovery the ITD driver using Recovery Manager. Restoring applications and drivers.
    Once the driver is restored, restart the computer and test the audio. If the audio is good you can continue to use this driver, or you can reinstall the update and see what happens. IDT High-Definition (HD) Audio Driver.
    If installing the newest driver causes the issue to occur but the recovered driver worked, I suggest recovering again.
    If neither driver works I will gladly follow up and provide any assistance I can.
    Please let me know the outcome.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Problem with focus border and ListCellRenderer in custom listbox

    I have a bug in some code that I adapted from another posting on this board -- basically what I've done is I have a class that implements a custom "key/value" mapping listbox in which each list item/cell is actually a JPanel consisting of 3 JLabels: the first label is the "key", the second is a fixed "==>" mapping string, and the 3rd is the value to which "key" is mapped.
    The code works fine as long as the list cell doesn't have the focus. When it does, it draws a border rectangle to indicate focus, but if the listbox needs to scroll horizontally to display all the text, part of the text gets cut off (i.e. "sometex..." where "sometext" should be displayed).
    The ListCellRenderer creates a Gridlayout to lay out the 3 labels in the cell's JPanel.
    What can I do to remedy this situation? I'm not sure what I'd need to do in terms of setting the size of the panel so that all the text gets displayed OK within the listbox. Or if there's something else I can do to fix this. The code and a main() to run the code are provided below. To reproduce the problem, click the Add Left and Add Right buttons to add a "mapping" -- when it doesn't have focus, everything displays fine, but when you give it focus, note the text on the right label gets cut off.
    //======================================================================
    // Begin Source Listing
    //======================================================================
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.Collection;
    import java.util.Iterator;
    import java.util.Vector;
    import java.util.Enumeration;
    public class TwoColumnListbox extends JPanel
    private JList m_list;
    private JScrollPane m_Pane;
    public TwoColumnListbox(Collection c)
         DataMapListModel model = new DataMapListModel();
         if (c != null)
         Iterator it = c.iterator();
         while (it.hasNext())
         model.addElement(it.next());
         m_list = new JList(model);
         ListBoxRenderer renderer= new ListBoxRenderer();
              m_list.setCellRenderer(renderer);
              setLayout(new BorderLayout());
              m_list.setVisibleRowCount(4);
              m_Pane = new JScrollPane(m_list);
              add(m_Pane, BorderLayout.NORTH);
    public JList getList()
    return m_list;
    public JScrollPane getScrollPane()
    return m_Pane;
    public static void main(String s[])
              JFrame frame = new JFrame("TwoColumnListbox");
              frame.addWindowListener(new WindowAdapter() {
              public void windowClosing(WindowEvent e) {System.exit(0);}
    final DataMappings dm = new DataMappings();
    final TwoColumnListbox lb = new TwoColumnListbox(dm.getMappings());
              final DataMap map = new DataMap();
              JButton leftAddBtn = new JButton("Add Left");
              leftAddBtn.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent e)
              map.setSource("JButton1");
              DefaultListModel model = new DefaultListModel();
              model.addElement(map);
              lb.getList().setModel(model);
              JButton leftRemoveBtn = new JButton("Remove Left");
              leftRemoveBtn.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent e)
              map.setSource("");
              DefaultListModel model = new DefaultListModel();
              model.addElement(map);
              lb.getList().setModel(model);
              JButton rightAddBtn = new JButton("Add Right");
    rightAddBtn.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent e)
              map.setDestination("/getQuote/symbol[]");
              DefaultListModel model = new DefaultListModel();
              model.addElement(map);
              lb.getList().setModel(model);
              JButton rightRemoveBtn = new JButton("Remove Right");
    rightRemoveBtn.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent e)
              map.setDestination("");
              DefaultListModel model = new DefaultListModel();
              model.addElement(map);
              lb.getList().setModel(model);
              JPanel leftPanel = new JPanel(new BorderLayout());
              leftPanel.add(leftAddBtn, BorderLayout.NORTH);
              leftPanel.add(leftRemoveBtn, BorderLayout.SOUTH);
    JPanel rightPanel = new JPanel(new BorderLayout());
              rightPanel.add(rightAddBtn, BorderLayout.NORTH);
              rightPanel.add(rightRemoveBtn, BorderLayout.SOUTH);
    frame.getContentPane().add(leftPanel, BorderLayout.WEST);
              frame.getContentPane().add(lb,BorderLayout.CENTER);
    frame.getContentPane().add(rightPanel, BorderLayout.EAST);
              frame.pack();
              frame.setVisible(true);
         class ListBoxRenderer extends JPanel implements ListCellRenderer
              private JLabel left;
              private JLabel arrow;
              private JLabel right;
              private Color clrForeground = UIManager.getColor("List.foreground");
    private Color clrBackground = UIManager.getColor("List.background");
    private Color clrSelectionForeground = UIManager.getColor("List.selectionForeground");
    private Color clrSelectionBackground = UIManager.getColor("List.selection.Background");
              public ListBoxRenderer()
                   setLayout(new GridLayout(1, 2, 10, 0));
                   //setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
                   left = new JLabel("");
                   left.setForeground(clrForeground);               
                   arrow = new JLabel("");
                   arrow.setHorizontalAlignment(SwingConstants.CENTER);
                   arrow.setForeground(clrForeground);
                   right = new JLabel("");
                   right.setHorizontalAlignment(SwingConstants.RIGHT);
                   right.setForeground(clrForeground);
                   add(left);
                   add(arrow);
                   add(right);
              public Component getListCellRendererComponent(JList list, Object value,
                        int index, boolean isSelected, boolean cellHasFocus)
                   if (isSelected)
                        setBackground(list.getSelectionBackground());
                        setForeground(list.getSelectionForeground());
                        left.setForeground(clrSelectionForeground);
                        arrow.setForeground(clrSelectionForeground);
                        right.setForeground(clrSelectionForeground);
                   else
                        setBackground(list.getBackground());
                        setForeground(list.getForeground());
                   left.setForeground(clrForeground);
                        arrow.setForeground(clrForeground);
                        right.setForeground(clrForeground);               
                   // draw focus rectangle if control has focus. Problem with focus
    // and cut off text!!
                   if (cellHasFocus)
                   // FIXME: for Windows LAF I'm not getting the correct thing here for some reason.
                   // Looks OK on Metal though.
                   setBorder(BorderFactory.createLineBorder(UIManager.getColor("focusCellHighlightBorder")));
                   else
                   setBorder(BorderFactory.createEmptyBorder());               
    DataMap map = (DataMap) value;
                   String displaySource = map.getSource();
                   String displayDest = map.getDestination();
                   left.setText(displaySource);
                   arrow.setText("=>to<=");
                   right.setText(displayDest);
                   return this;
    /** Interface for macro editor UI
    * @version 1.0
    class DataMappings
    private Collection mappings;
    public DataMappings()
    setMappings(new Vector(0));
    public DataMappings(Collection maps)
    setMappings(maps);
    /** gets mapping value of a specified source object
    * @param src -- the "key" or source object, what is mapped.
    * @return what the source object is mapped to
    * @version 1.0
    public Object getValue(String src)
    if (src != null)
    Iterator it = mappings.iterator();
    while (it.hasNext());
    DataMap thisMap = (DataMap) it.next();
    if (thisMap.getSource().equals(src))
    return thisMap.getDestination();
    return null;
    /** sets mapping value of a specified source object
    * @param src -- the "key" or source object, what is mapped.
    * @param what the source object is to be mapped to
    * @version 1.0
    public void setValue(String src, String dest)
    if (src != null)
    // see if the value is in there first.
    Iterator it = mappings.iterator();
    while (it.hasNext())
    DataMap thisMap = (DataMap) it.next();
    if (thisMap.getSource().equals(src))
    thisMap.setDestination(dest);
    return;
    // not in the collection, add it
    mappings.add(new DataMap(src, dest));
    /** gets collection of mappings
    * @return a collection of all mappings in this object.
    * @version 1.0
    public Collection getMappings()
    return mappings;
    /** sets collection of mappings
    * @param maps a collection of src to destination mappings.
    * @version 1.0
    public void setMappings(Collection maps)
    mappings = maps;
    /** adds a DataMap
    * @param map a DataMap to add to the mappings
    * @version 1.0
    public void add(DataMap map)
    if (map != null)
    mappings.add(map);
    class DataMap
    public DataMap() {}
    public DataMap(String source, String destination)
    m_source = source;
    m_destination = destination;
    public String getSource()
    return m_source;
    public void setSource(String s)
    m_source = s;
    public String getDestination()
    return m_destination;
    public void setDestination(String s)
    m_destination = s;
    protected String m_source = null;
    protected String m_destination = null;
    /** list model for datamaps that provides ways
    * to determine whether a source is already mapped or
    * a destination is already mapped.
    class DataMapListModel extends DefaultListModel
    public DataMapListModel()
    super();          
    /** determines whether a source is already mapped
    * @param src -- the source property of a datamapping
    * @return true if the source is in the list, false if not
    public boolean containsSource(Object src)
    Enumeration enum = elements();
    while (enum.hasMoreElements())
    DataMap dm = (DataMap) enum.nextElement();
    if (dm.getSource().equals(src))
    return true;
    return false;
    /** determines whether a destination is already mapped
    * @param dest -- the destination property of a datamapping
    * @return true if the destination is in the list, false if not
    public boolean containsDest(Object dest)
    Enumeration enum = elements();
    while (enum.hasMoreElements())
    DataMap dm = (DataMap) enum.nextElement();
    if (dm.getDestination().equals(dest))
    return true;
    return false;
    public DataMappings getDataMaps()
    DataMappings maps = new DataMappings();
    // add all the datamaps in the model
    Enumeration enum = elements();
    while (enum.hasMoreElements())
    DataMap dm = (DataMap) enum.nextElement();
    maps.add(dm);
    return maps;
    //======================================================================
    // End of Source Listing
    //======================================================================

    I did not read the program, but the chopping looks like a layout problem.
    I think it's heavy to use a panel + 3 components in a gridlayout for each cell. look at this sample where i draw the Cell myself,
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.util.*;
    public class Jlist3 extends JFrame 
         Vector      v  = new Vector();
         JList       jc = new JList(v);
         JScrollPane js = new JScrollPane(jc);
    public Jlist3()
         addWindowListener(new WindowAdapter()
        {     public void windowClosing(WindowEvent ev)
              {     dispose();
                   System.exit(0);}});
         for (int j=0; j < 70; j++)     v.add(""+j*1000+"a  d"+j);
           setBounds(1,1,400,310);
         getContentPane().add(js);
         js.setPreferredSize(new Dimension(230,259));
         jc.setSelectedIndex(1);
         jc.setCellRenderer(new MyCellRenderer());
         getContentPane().setLayout(new FlowLayout());
         setVisible(true);
    public class MyCellRenderer extends JLabel implements ListCellRenderer
         String  txt;
         int     idx;
         boolean sel;
    public Component getListCellRendererComponent(JList list,
                             Object  value,           // value to display
                             int     index,           // cell index
                             boolean isSelected,      // is the cell selected
                             boolean cellHasFocus)    // the list and the cell have the focus
         idx = index;
         txt = value.toString();
         sel = isSelected;
         setText(txt);
         return(this);
    public void paintComponent(Graphics g)
         if (idx%2 == 1) g.setColor(Color.white);
              else        g.setColor(Color.lightGray);
         if (sel)        g.setColor(Color.blue);
         g.fillRect(0,0,getWidth(),getHeight());
         StringTokenizer st = new StringTokenizer(txt.trim()," ");
         g.setColor(Color.black);
         if (st.hasMoreTokens())     g.drawString(st.nextToken(),1,14);
         g.setColor(Color.red);
         g.drawString("===>",70,14);
         g.setColor(Color.black);
         if (st.hasMoreTokens())     g.drawString(st.nextToken(),110,14);
    public static void main (String[] args) 
         new Jlist3();
    Noah
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.util.*;
    public class Jlist3 extends JFrame
         Vector v = new Vector();
         JList jc = new JList(v);
         JScrollPane js = new JScrollPane(jc);
    public Jlist3()
         addWindowListener(new WindowAdapter()
    {     public void windowClosing(WindowEvent ev)
              {     dispose();
                   System.exit(0);}});
         for (int j=0; j < 70; j++)     v.add(""+j*1000+"a d"+j);
         setBounds(1,1,400,310);
         getContentPane().add(js);
         js.setPreferredSize(new Dimension(230,259));
         jc.setSelectedIndex(1);
         jc.setCellRenderer(new MyCellRenderer());
         getContentPane().setLayout(new FlowLayout());
         setVisible(true);
    public class MyCellRenderer extends JLabel implements ListCellRenderer
         String txt;
         int idx;
         boolean sel;
    public Component getListCellRendererComponent(JList list,
                             Object value, // value to display
                             int index, // cell index
                             boolean isSelected, // is the cell selected
                             boolean cellHasFocus) // the list and the cell have the focus
         idx = index;
         txt = value.toString();
         sel = isSelected;
         setText(txt);
         return(this);
    public void paintComponent(Graphics g)
         if (idx%2 == 1) g.setColor(Color.white);
              else g.setColor(Color.lightGray);
         if (sel) g.setColor(Color.blue);
         g.fillRect(0,0,getWidth(),getHeight());
         StringTokenizer st = new StringTokenizer(txt.trim()," ");
         g.setColor(Color.black);
         if (st.hasMoreTokens())     g.drawString(st.nextToken(),1,14);
         g.setColor(Color.red);
         g.drawString("===>",70,14);
         g.setColor(Color.black);
         if (st.hasMoreTokens())     g.drawString(st.nextToken(),110,14);
    public static void main (String[] args)
         new Jlist3();
    }

  • I want to create an image gallery with forward back nav, master image with a click to pop out zoom

    Hi Musers,
    I'm currently building a photography website and need some help building a specific type of gallery.
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    Below is a description of the gallery I want to build:
    On the gallery page the gallery appears as a single 'Master Image' with forward and back 'Navs.' and a 'Counter' underneath this single 'Master Image'. Lets say that there are 10 images in this gallery. When the viewer clicks on the forward 'Nav.' the 'Master Image' changes to the next image in the sequence of 10 and the 'Counter' below confirms this progression, in this example the 'Counter' changes from 1 of 10 to read 2 of 10, the 'Master Image' displayed is the second image in the sequence.
    Simple so far.. This above I can do as this is just a basic gallery. What follows is what I cannot find a solution for.
    I want the gallery viewer to be able to click on the 'Master Image' and launch an enlargement of that image overlaying the gallery page, very much like the way the 'Lightbox' widget displays an enlarged image. When the viewer clicks off the 'Ligtbox' or enlarged image it dissapears, reverting the page view back to the standard gallery view with 'Master Image', 'Navs.' and 'Counter'. I do not want the expanded / Enlarged 'Lightbox' image accompanied by a thumbnail gallery, 'Navs.' / Navigation arrows or a 'Counter'. What I want is to be able to launch an enlarged version of the 'Master Image' as an overlay on the gallery page, something like a pop out.
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    Can anyone explain how I can do this? Is it possible?
    The solution I want seems to be a highbrid between the standard gallery with navigation arrows kept but minus thumbnails and captions with some of the functionality of the lightbox gallery widget.
    I very much appreciate any help anyone can give.
    Thank you

    Hi Harriet,
    Thanks for the message. I'm sure as time goes on new features will be introduced but it's a bit of a shame that the widget library is a little basic, oh, and at times it's just that little bit buggy. So far I'm really impressed by Muse despite being ever so slightly disappointed by some of it's limitations. I'd like to see more image gallery options, the ability to set up a client login area or a client ftp within a site, I also tried embedding video but as I'm no programmer the result looked clumsy so some focus on this would be a help. Considering that a good number of people benefiting from a Muse site will be online retailers a zoom function should have been there from the start.
    Best regards
    Jacques

  • Camileo P10 Problem with Focus

    Hello everyone,
    I bought a P10 Camileo and after an hour of use I started to have the following problem:
    The camera can no longer focus the image from afar.
    It seems that the focus is fixed, i have to bring the camera to get a clear image.
    Thank's.

    Hi pleone,
    I agree with the user above. You have to disable the image stabilization and than you are able to focus again.
    Furthermore the camera is equipped with a macro switch. Did you notice this?
    I also recommend checking the user manual. It contains a lot of interesting informations about the camera. :)

  • HOWTO and script: create and burn an UDF image with 4+GB files

    Most people think, creating UDF images with files bigger than 4GB or even 1GB is impossible, however it's not true! You just need udftools. Also you need to load loop and udf modules. There's a good howto by grigio, I also created an (admitably pretty poor) script to do it automatically, since grigio's howto doesn't include real dvd sizes:
    UDFPATH=$HOME
    echo -e "By default the udf image will be placed into your home directory. \n Do you want to enter an alternative one? (Enter y or n)"
    read yesorno
    if [ $yesorno == y ]; then
    echo "Please enter the directory you want to use: "
    read UDFPATH
    if [ -d $UDFPATH ]; then
    echo "Using $UDFPATH"
    else
    echo "Creating $UDFPATH" && mkdir -v $UDFPATH
    fi
    fi
    if [ $yesorno == n ]; then
    echo "Using default directory"
    fi
    if [ $yesorno != y -a $yesorno != n ]; then
    echo "Incorrect entry, aborting..." && exit 0
    fi
    if [ -e $UDFPATH/udf.iso ]; then
    mv $UDFPATH/udf.iso $UDFPATH/udf.iso.bak-`date +%y.%m.%d-%H.%M` && echo "udf.iso already exists! Backing up..."
    fi
    echo -e "Please enter your type of disk: dvd5p, dvd5m, dvd9p or dvd9m:\n(5/9 stand for normal/double layer disk and p/m for +/-)"
    read type
    if [ $type == dvd5p ]; then
    echo "Creating a 4,7 GB DVD+R image..."
    dd if=/dev/zero of=$UDFPATH/udf.iso bs=1024 count=4590208
    fi
    if [ $type == dvd5m ]; then
    echo "Creating a 4,7 GB DVD-R image..."
    dd if=/dev/zero of=$UDFPATH/udf.iso bs=1024 count=4596992
    fi
    if [ $type == dvd9p ]; then
    echo "Creating a 8,5 GB DVD+R image..."
    dd if=/dev/zero of=$UDFPATH/udf.iso bs=1024 count=8347648
    fi
    if [ $type == dvd9m ]; then
    echo "Creating a 8,5 GB DVD-R image..."
    dd if=/dev/zero of=$UDFPATH/udf.iso bs=1024 count=8343424
    fi
    if [ $type != dvd5p -a $type != dvd5m -a $type != dvd9p -a $type != dvd9m -a $type != cheat ]; then
    echo "Wrong type entered, aborting..." && exit 0
    fi
    mkudffs $UDFPATH/udf.iso
    echo -e "UDF image created in $UDFPATH/udf.iso. Want to mount it right now? (Make sure udf and loop modules are loaded)"
    read yesorno
    if [ $yesorno == y ]; then
    echo "Please enter the directory you want to use for mounting: "
    read MOUNTPATH
    if [ $UDFPATH = $MOUNTPATH ]; then
    echo "You can't mount the image to the directory it exists in!" && exit 0
    echo -e " Mount it yourself with 'sudo mount -o loop,user,uid=`id -u` -t udf $UDFPATH/udf.iso targetdir\'"
    echo " Afterwards copy your files, unmount the image and burn the dvd."
    echo -e " For burning you may just use 'cdrecord -eject -dao -dev=/dev/sr0 $UDFPATH/udf.iso'\n (the path to your DVD burner may vary!)"
    fi
    if [ -d $MOUNTPATH ]; then
    echo "Using $MOUNTPATH"
    USERID=`id -u`
    sudo mount -o loop,user,uid=$USERID -t udf $UDFPATH/udf.iso $MOUNTPATH
    echo "Copy your files, umount the image and burn the dvd."
    echo -e "For burning you may just use 'cdrecord -eject -dao -dev=/dev/sr0 $UDFPATH/udf.iso'\n(the path to your DVD burner may also vary)";
    else
    echo "Creating $MOUNTPATH..." && mkdir -v $MOUNTPATH
    USERID=`id -u`
    sudo mount -o loop,user,uid=$USERID -t udf $UDFPATH/udf.iso $MOUNTPATH
    echo "Copy your files, umount the image and burn the dvd."
    echo -e "For burning you may just use 'cdrecord -eject -dao -dev=/dev/sr0 $UDFPATH/udf.iso'\n(the path to your DVD burner may also vary)";
    fi
    fi
    if [ $yesorno == n ]; then
    echo -e "All right, then mount it yourself with 'sudo mount -o loop,user,uid=`id -u` -t udf $UDFPATH/udf.iso targetdir'\nAfterwards copy your files, unmount the image and burn the dvd."
    echo -e "For burning you may just use 'cdrecord -eject -dao -dev=/dev/sr0 $UDFPATH/udf.iso'\n(the path to your DVD burner may also vary)"
    fi
    if [ $yesorno != y -a $yesorno != n ]; then
    echo "Incorrect entry, aborting..."
    echo -e " Mount it yourself with 'sudo mount -o loop,user,uid=`id -u` -t udf $UDFPATH/udf.iso targetdir\'"
    echo " Afterwards copy your files, unmount the image and burn the dvd."
    echo -e " For burning you may just use 'cdrecord -eject -dao -dev=/dev/sr0 $UDFPATH/udf.iso'\n (the path to your DVD burner may vary!)"
    exit 0
    fi
    EDIT: Some major mistakes solved.
    Last edited by ku (2009-04-23 19:02:41)

    See the second article for how to look through a list of files in a folder.
    http://stackoverflow.com/questions/7854727/loop-over-video-files-in-folder-to-ge t-video-length

  • Problem opening an Image with Swing

    I write an action listener for the choose class but when I try to open an image into my Jpanel I have the following error: (The problem seems to be the Null pointer because the image was not read or.....)
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at Genim$choose.actionPerformed(Genim.java:219)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    THE CODE IS :
    public class choose implements ActionListener {
    public void actionPerformed(ActionEvent ae) {
    int option = chooser.showOpenDialog(Genim.this);
    double [][] F = new double[90000][5];
    int i=0;
    if (option == JFileChooser.APPROVE_OPTION) {
    try{
    BufferedReader in = new BufferedReader(new FileReader(chooser.getSelectedFile())); //file contenente i
    String getname= chooser.getSelectedFile().getName();
    while (true)
    String s = in.readLine();
    if(s==null){
    break;
    StringTokenizer t = new StringTokenizer(s,"\t");
    double uno = Double.parseDouble(t.nextToken());
    double due = Double.parseDouble(t.nextToken());
    double tre = Double.parseDouble(t.nextToken());
    double quattro = Double.parseDouble(t.nextToken());
    double cinque = Double.parseDouble(t.nextToken());
    F[0]=uno;
    F[i][1]=due;
    F[i][2]=tre;
    F[i][3]=quattro;
    F[i][4]=cinque;
    if(i<90000) i=i+1;
    if(i==89999) accButton.setText("FIRST YEAR ACQUIRED");
    in.close();
    input8=F;
    input10=getname.substring(0, 4) ;
    catch (Exception e)
    accButton.setText("File input error");
    Image image = null;
    try {
    // Read from a file
    File file = new File(input10+".jpeg");
    image = ImageIO.read(file);
    } catch (IOException e) {}
    image = image.getScaledInstance(200,200,image.SCALE_FAST);
    JLabel label = new JLabel(new ImageIcon(image));
    buttonPanel.add(label, BorderLayout.EAST); ---->ERROR !!!!
    contentPane.add(label);-------------------------------->ERROR!!!!!
    Message was edited by:
    princo

    I will try to be clear:
    I want to open a file with the class choose and I want also in the same class to load an image with the command ImageIo.read()., to resize it and then to add this image as an icon into the Jpanel.
    I don't know why I receive the error in the final part ( LINE 223 and 224 are shown below) of the class choose:
    buttonPanel.add(label, BorderLayout.EAST); ---->ERROR !!!!
    contentPane.add(label);-------------------------------->ERROR!!!!!
    maybe the image is not fully loaded..
    I think that davedes has understood my problem but the modify that he proposed doesn't work---> The same error.
    The class choose is :
    public class choose implements ActionListener {
        public void actionPerformed(ActionEvent ae) {
        int option = chooser.showOpenDialog(Genim.this);
         double [][] F = new double[90000][5];
         int i=0;
          if (option == JFileChooser.APPROVE_OPTION) {
            try{
              BufferedReader in = new BufferedReader(new FileReader(chooser.getSelectedFile())); //file contenente i
              String getname= chooser.getSelectedFile().getName();       
              while (true)
                String s = in.readLine();
               if(s==null){
                 break;
               StringTokenizer t = new StringTokenizer(s,"\t");
               double uno = Double.parseDouble(t.nextToken());
               double due = Double.parseDouble(t.nextToken());
               double tre = Double.parseDouble(t.nextToken());
               double quattro = Double.parseDouble(t.nextToken());
               double cinque = Double.parseDouble(t.nextToken());
               F[0]=uno;
    F[i][1]=due;
    F[i][2]=tre;
    F[i][3]=quattro;
    F[i][4]=cinque;
    if(i<90000) i=i+1;
    if(i==89999) accButton.setText("FIRST YEAR ACQUIRED");
    in.close();
    input8=F;
    input10=getname.substring(0, 4) ;
    catch (Exception e)
    accButton.setText("File input error");
    Image image = null;
    try {
    // Read from a file
    File file = new File("2001.jpeg");
    image = ImageIO.read(file);
    } catch (IOException e)
    {//e.printStackTrace(System.out);
    //System.err.println(e.getMessage());
    System.exit(1);
    image = image.getScaledInstance(200,200,image.SCALE_FAST);
    JLabel label = new JLabel(new ImageIcon(image));
    buttonPanel.add(label, BorderLayout.EAST);
    contentPane.add(label);
    The error is:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
            at Genim$choose.actionPerformed(Genim.java:223)
            at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
            at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
            at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
            at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
            at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
            at java.awt.Component.processMouseEvent(Unknown Source)
            at javax.swing.JComponent.processMouseEvent(Unknown Source)
            at java.awt.Component.processEvent(Unknown Source)
            at java.awt.Container.processEvent(Unknown Source)
            at java.awt.Component.dispatchEventImpl(Unknown Source)
            at java.awt.Container.dispatchEventImpl(Unknown Source)
            at java.awt.Component.dispatchEvent(Unknown Source)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
            at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
            at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
            at java.awt.Container.dispatchEventImpl(Unknown Source)
            at java.awt.Window.dispatchEventImpl(Unknown Source)
            at java.awt.Component.dispatchEvent(Unknown Source)
            at java.awt.EventQueue.dispatchEvent(Unknown Source)
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
            at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
            at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
            at java.awt.EventDispatchThread.run(Unknown Source)THANK YOU VERY MUCH FOR YOUR HELP
    Message was edited by:
    princo

  • Are there any known issues with focus stacking or auto align causing PS to stop responding?

    Are there any known issues with focus stacking or auto align causing PS to stop responding?

    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

Maybe you are looking for