Multiple images into a JList

Hello all
I have a jList where i represent an image and a text, using my own ListCellRenderer . It looks like the following
public class JListImageRenderer extends JLabel implements ListCellRenderer{
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus){
        String text = "";
        ImageIcon icon = null;
         //.....some code here.....//
//       and finally
        setText(text);
        setIcon(icon);
        setCursor(new Cursor(Cursor.HAND_CURSOR));
//        addMouseListener(new MouseListe(){
        return this;
    }My questions are:
i)is there any way of adding a second image? I need my list to display two images and the text at every row ,
instead of a single image + text. Obviously i need a different implementation of ListCellRenderer but
which would be that implementation?
ii) why setCursor(new Cursor(Cursor.HAND_CURSOR)); hasn't got any effect on the mouse pointer when i hover over the list rows?
thanks in advance
evsav

Ok here is a self contained sample
class JListRendererTest
import examples.CheckBoxJList.CheckBoxListCellRenderer;
import java.util.Arrays;
import java.util.Iterator;
import javax.swing.DefaultListModel;
import javax.swing.DefaultListSelectionModel;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JScrollPane;
import javax.swing.ListSelectionModel;
import javax.swing.ScrollPaneConstants;
import javax.swing.WindowConstants;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
public class JListRendererTest {
    static JList list;
    public static void main(String[] args) {
        list = new JList();
        list.setCellRenderer (new ListRenderer());
        list.addListSelectionListener (new ListListener());
        DefaultListModel defModel = new DefaultListModel();
        list.setModel(defModel);
        JLabel[] listItems = {
            new JLabel(), new JLabel(), new JLabel(), new JLabel(),
            new JLabel(), new JLabel(), new JLabel(), new JLabel()
        Iterator it = Arrays.asList(listItems).iterator();
        while (it.hasNext()) {
            defModel.addElement(it.next());
        // show list
        JScrollPane scroller =
                new JScrollPane(list,
                ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
                ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
        JFrame frame = new JFrame("Custom JList");
        frame.getContentPane().add(scroller);
        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        frame.pack();
        frame.setVisible(true);
    private static class ListListener implements ListSelectionListener {
        private ListSelectionModel selectionModel = new DefaultListSelectionModel();
        public ListListener() {
        public void valueChanged(ListSelectionEvent e) {
}class ListRenderer
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.FlowLayout;
import javax.swing.DefaultListCellRenderer;
import javax.swing.ImageIcon;
import javax.swing.JCheckBox;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.ListCellRenderer;
import javax.swing.UIDefaults;
import javax.swing.UIManager;
public class ListRenderer extends JPanel implements ListCellRenderer {
    static Color listForeground,  listBackground,  listSelectionForeground,  listSelectionBackground;
    DefaultListCellRenderer defaultComp;
    JCheckBox checkbox;
    JLabel label;
    static {
        UIDefaults uid = UIManager.getLookAndFeel().getDefaults();
        listForeground = uid.getColor("List.foreground");
        listBackground = uid.getColor("List.background");
        listSelectionForeground = uid.getColor("List.selectionForeground");
        listSelectionBackground = uid.getColor("List.selectionBackground");
    public ListRenderer() {
        setLayout(new FlowLayout());
        defaultComp = new DefaultListCellRenderer();
        checkbox = new JCheckBox();
        label = new JLabel();
        label.setText("LABEL");
        add(checkbox, BorderLayout.WEST);
        add(label, BorderLayout.CENTER);
        add(defaultComp, BorderLayout.EAST);
    public Component getListCellRendererComponent(JList list,
            Object value,
            int index,
            boolean isSelected,
            boolean cellHasFocus) {
        defaultComp.getListCellRendererComponent(list, value, index,
                isSelected, cellHasFocus);
        checkbox.setSelected(isSelected);
        Component[] comps = getComponents();
        for (int i = 0; i < comps.length; i++) {
            comps.setForeground(listForeground);
// comps[i].setBackground(listBackground);
return this;
As you can see the text of each JLabel is not being highlighted when you click on the corresponding row
How can i get this solved?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How do I add multiple images into one file?

    I'm sure this is something that's been covered in another post (or even in the help portal) but I think my wording in my search terms are not correct or... I don't know, because I just can't find what I'm looking for.
    I want to know how to add multiple images into one file/one image, both horizontally and/or vertically. To give you an idea of what I mean, check out :
    http://www.best10apps.com/apps/comic-story,531596060.html
    If you scroll down, you'll see a heading entitled : Screenshots of Comic Story. Notice how there's 3 pictures (divided by borders). 2 of those pictures are side by side, and 1 of them is below the first 2 pictures.
    I want to know how to add different pictures/images and put them into one picture.

    One way is to create template PSD files and populate them with your images using Photoshops scripts.
    Photo Collage Toolkit UPDATED June 12, added Picture Package Support via PasteImageRoll and BatchPicturePackage scripts.
    The package includes four simple rules to follow when making Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.
    There are eleven scripts in this package they provide the following functions:
    TestCollageTemplate.jsx - Used to test a Photo Collage Template while you are making it with Photoshop.
    CollageTemplateBuilder.jsx - Can build Templates compatible with this toolkit's scripts.
    LayerToAlphaChan.jsx - Used to convert a Prototype Image Layer stack into a template document.
    InteractivePopulateCollage.jsx - Used to interactively populate Any Photo Collage template. Offers most user control inserting pictures and text.
    ReplaceCollageImage.jsx - use to replace a populated collage image Smart Object layer with an other image correctly resized and positioned.
    ChangeTextSize.jsx - This script can be used to change Image stamps text size when the size used by the populating did not work well.
    PopulateCollageTemplate.jsx - Used to Automatically populate a Photo Collage template and leave the populated copy open in Photoshop.
    BatchOneImageCollage.jsx - Used to Automatically Batch Populate Collage templates that only have one image inserted. The Collage or Image may be stamped with text.
    BatchMultiImageCollage.jsx - Used to Automatically Batch Populate Any Photo Collage template with images in a source image folder. Easier to use than the interactive script. Saved collages can be tweaked.
    BatchPicturePackage.jsx - Used to Automatically Batch Populate Any Photo Collage template with an image in a source image folder
    PasteImageRoll.jsx - Paste Images into a document to be print on roll paper.
    Documentation and Examples

  • InDesign CS3 Scripting XML Import Multiple Images into same Text Frame

    I am having trouble importing multiple images into the same Text Frame using XML import. I imported 5 images into the text frame. However, all 5 images are laying on top of one another. Does anyone know if there is a way to have all images laying out like how Microsoft Word handles inline images, i.e., laying out next image to the right of previsous image in the same line and if there is not enough space left in the line, then wrap to next line. Thanks in advance. I understand I could use JavaScript to do post import processing, e.g, calculate the image size and place each images accordingly. But I am trying to see whether there is a way to do this without scripts.

    You can apply an object style to all anchored images by script. A text frame containing main flow should be selected.
    var doc = app.activeDocument;
    var textFrame =  app.selection[0];
    var rectangles = textFrame.texts[0].rectangles;
    if (rectangles.length > 0) {
         for (var i=0; i < rectangles.length; i++) {
              rectangles[i].appliedObjectStyle = doc.objectStyles.item("Cover");
    However, there is a better approach:
    Step 1
    Create place holders for a single "Book" element and format it as needed -- apply an object style to the cover.
    Step 2
    Import the xml file -- the placeholders are replaced with data from the 1st xml element
    Step 3
    Drag & drop the element containing all "Books" elements into the main flow -- all elements are placed and formatted the same way as in step 1.
    Finally, add a new page, click the overset text icon and autoflow text to add pages so that to fit all the text.
    Hope this helps.
    Kasyan

  • Inserting Multiple Images into oracle database using JDBC

    I wanted to insert multiple images into database using JDBC by reading it from the file... and i am passing photos.txt(my text file) as an input parameter... I have inserted all the values into the database except for the image part... this is my content of photos.txt file and i have copied all the images into the folder
    *" C:\\photos "*
    *1,in1.jpg,108,19,in-n-out*
    *2,in2.jpg,187,21,in-n-out*
    *3,in3.jpg,308,41,in-n-out*
    *4,in4.jpg,477,52,in-n-out*
    *5,in5.jpg,530,50,in-n-out*
    and i want to store in1.jpg,in2.jpg,in3.jpg,in4.jpg,in5.jpg into the oracle databse using JDBC.... i have tried a lot using BLOB column.... and i have created my table as
    CREATE TABLE PHOTO(
    ID NUMBER NOT NULL PRIMARY KEY ,
    Name BLOB,
    X DOUBLE PRECISION,
    Y DOUBLE PRECISION,
    Tags VARCHAR2(40)
      try {                 // for restaurant System.out.println();System.out.println();System.out.println(); System.out.print("  Creating Statement for Photo...\n");             stmt2 = con.createStatement ();                       stmt2.executeUpdate("delete from PHOTO"); stmt2.executeUpdate("commit"); PreparedStatement stmt3 = con.prepareStatement ("INSERT INTO PHOTO VALUES (?, ?, ?, ?, ?)");             System.out.print("  Create FileReader Object for file: " + inputFileName1 + "...\n");             FileReader inputFileReader2 = new FileReader(inputFileName1);             System.out.print("  Create BufferedReader Object for FileReader Object...\n");             BufferedReader inputStream2  = new BufferedReader(inputFileReader2);             String inLine2 = null;                         String[] tokens; //            String[] imageFilenames = {"c:\\photos\\in1.jpg","c:\\photos\\in2.jpg","c:\\photos\\in3.jpg","c:\\photos\\in4.jpg","c:\\photos\\in5.jpg", //  "c:\\photos\\in6.jpg","c:\\photos\\in7.jpg","c:\\photos\\in8.jpg","c:\\photos\\in9.jpg","c:\\photos\\in10.jpg","c:\\photos\\arb1.jpg","c:\\photos\\arb2.jpg", //  "c:\\photos\\arb3.jpg","c:\\photos\\arb4.jpg","c:\\photos\\arb5.jpg","c:\\photos\\den1.jpg","c:\\photos\\den2.jpg","c:\\photos\\den3.jpg", //  "c:\\photos\\den4.jpg","c:\\photos\\den5.jpg","c:\\photos\\hop1.jpg","c:\\photos\\hop2.jpg","c:\\photos\\hop3.jpg","c:\\photos\\hop4.jpg","c:\\photos\\hop5.jpg"};               File file = new File("C:\\photos\\in1.jpg");            \\ ( Just for example  )           FileInputStream fs = new FileInputStream(file);                         while ((inLine2 = inputStream2.readLine()) != null) {               tokens= inLine2.split(",");             st2 = new StringTokenizer(inLine2, DELIM);                                                             stmt3.setString(1, tokens[0]);               stmt3.setBinaryStream(2, fs, (int)(file.length()));               stmt3.setString(3, tokens[2]);               stmt3.setString(4, tokens[3]);               stmt3.setString(5, tokens[4]);               stmt3.execute(); //execute the prepared statement               stmt3.clearParameters(); 
    As i am able to enter one image file by above code in1.jpg in to the oracle database.... but i am not able to insert all the image file in to the database.....do tell me what should i do.... and can you give me the example on the basis of the above code of mine...
    do reply as soon as possible..

    jwenting wrote:
    that depends. Putting the images in BLOBs prevents the file locations stored in the database from getting out of synch with the filesystem when sysadmins decide to reorganise directory structures or "archive" "old" files that noone uses anyway.True, but it really comes down to a business decision (cost-benefit analysis). If you have the bucks, the expertise, and the time, go with the Blobs, otherwise go with the flat files.

  • Multiple images into a subform in a dynamic non-interactive adobe form

    I want to convert a set of images into a PDF (one page for each image) with Webdynpro. I'm trying with a non-interactive adobe form.
    I followed the tutorial "Dynamic Non-Interactive PDF Form".
    I've got a multiple Context node: 'Images' with a string attribute 'url' for each image.
    In the form, I've created subform1, and subform2 within. I put an image field into subform2, setting its url to: $record.Images[*].url
    and its script to: this.value.image.href = xfa.resolveNode(this.value.image.href).value;
    It doesn't work.
    If I add a field into subform2 binding it to url attribute, I can see some lines with the correct path for each image, but the image isn't displayed.
    It works with a single dynamic image in the page. What am I doing wrong?
    Regards
    Anibal Pozo.

    No. It's form scripting. In any case I'm working with Webdynpro Java.
    I tried this code in table 'initialize' event.
    for int=0 upto $record.nImages do
    Table1.Row1[int].ImageField.value.image.href = $record.Images[int].url;
    Table1.Row1[int].Cell4.value.#image.href = $record.Images[int].url;
    endfor
    Cell4 is a static image.
    In 04SP9, it show always the same image in the image field (first column), and alternating image in cell4 (second column).
    In 04sSP6, it shows always the same image in all the rows in both columns.
    Any idea? I didn't find any OSS related.

  • How To Place/Open Multiple Images Into Separate Layers For ONE Document?

    I've been searching for the answer for a long time so I figured that someone here has to know.  I have PS Elements 9. 
    So I would like to make GIFs and I know how to do so, the problem is placing in those tens of files in layers (it's tedious).  Is there a way to select multiple image files to place into a single document?  And for them to be place into its own layer?  I've tried dragging and selecting from the Open/Place menus (won't allow), SHIFT + Direction Key from the Open/Place menus (won't allow), tried opening them to drag on the Organizer and to drag from the Project Bin (again won't allow), and I've read tutorials where they say to use scripts and actions but I'm not sure what to download them in order for them to work and the links are broken anyway.
    An example of what I'd like to do:
    Open and place in 15+ screenshots into layers but in just one document.
    Each screenshot would be one layer in said document.
    ...rest of GIF process...
    I feel like there's an easier way to get this without placing in each one at a time.  I remember being able to do this on a old PS (though not Elements).  Thanks for any help.

    The quickest method is probably opening all images together from Full Edit:
    File >> Open
    Then navigate to the folder and use shift+click to select a block of files.
    The images will appear in the photo bin. Drag and drop each one into the main editing window and a separate layer will be created for each.

  • How do I import multiple images into single individual cells?

    Hi folks,
    I'm new to the Mac (yeah!) and imagine there just has to be a way to import a bunch of images into separate cells in Mac "Numbers" ... am I right?
    Essentially what I'd like to do is a file folder with 600 images in it, and import those directly into Mac Numbers with one picture being assigned to it's own cell. So if below were a spreadsheet it would look like this:
    Actual Picture - Picture Name - Item Description ... and so on.
    I'm trying to work with inventory items, and this is the only way I can think of doing it. Suggestions!?!?
    Here is a link to creating a macro in Excel to do a similar thing:
    http://en.kioskea.net/forum/affich-269046-adding-a-loop-to-macro-to-insert-pictu res
    Thanks for your help.
    D

    D,
    I guess you're taking another shot at getting a response. You risk getting parallel discussions going with the same content.
    What you are contemplating seems logical enough, but I think you will find that it is impractical in Numbers. Given the size of photograph files these days, you will choke Numbers in short order. You will have to be careful that you embed only photos large enough to be of use/viewable, and keep your full-sized copies elsewhere. You might find that an Apple Script can do the import for you, but otherwise it's drag and drop from the Media Browser.
    Jerry

  • Mac Wizards! Stuck importing multiple images into individual cells...

    Hi folks,
    I'm new to the Mac (yeah!) and imagine there just has to be a way to import a bunch of images into separate cells in Mac "Numbers" ... am I right?
    Essentially what I'd like to do is a file folder with 600 images in it, and import those directly into Mac Numbers with one picture being assigned to it's own cell. So if below were a spreadsheet it would look like this:
    Actual Picture - Picture Name - Item Description ... and so on.
    I'm trying to work with inventory items, and this is the only way I can think of doing it. Suggestions!?!?
    Here is a link to creating a macro in Excel to do a similar thing:
    http://en.kioskea.net/forum/affich-269046-adding-a-loop-to-macro-to-insert-pictu res
    Thanks for your help.
    D

    There is no macro feature in Numbers.
    The only way to code what you wish would be to use AppleScript if Numbers '08 was scriptable.
    As it's not, you must do the job by hand or switch to Numbers '09 which is scriptable.
    Yvan KOENIG (VALLAURIS, France) mercredi 3 mars 2010 22:10:14

  • Merging multiple images into one

    Hi,
    I am using Photoshop CS5 Extended on OSX.
    I am still green when it comes to using Photoshop so all help to this question is much appreciated.
    I am trying to merge several images together into the one. The images all have the same background but with a single object moving through the images in procession (the images are of a skiing piste with a snowboarder moving through). I have searched for a solution online but the best I found with so far is making each image a layer and then using a mask on each layer and making only the snowboarder visible from each picture. This works ok but it is quite difficult to get each layer to blend in nicely with the background. Also, I am dealing with 20+ layers, so it is a very labour-intensive solution. I am asking to see if there is another solution whereby I can merge all the images together? Apologies if this has been covered elsewhere but I seem unable to find another solution.
    Again, thanks in advance for any help :-)

    while manual masking is certainly the best option (assuming that all images are taken with a tripod, are somehow aligned, and all have the same exposure) (and 20 layers isn't that labor intensive), you could try to select all 20 layers, make them a smart object, and then go to layers: smart objects: stack mode and see if any of the mode give you something automatically what you are looking for.
    another thing you could try (not sure if it'll work) is select the layers and go to auto blend: focus stack and see if that works.
    alternatively, you could try cutting the subject out (lasso select, invert selection, delete) in each layer, and then go to auto blend, panorama.

  • Importing multiple images into flash movie as a movie

    I have about 200 images that have been rendered for me frame
    by frame, how do I put this into flash as a movie? I don't want to
    do this manually as it would be a complete waste of my time.
    Much thanks in advance!

    you can import them as an image sequence, then create a movie
    clip out of it. File-->import-->import to stage.. Then select
    all the images, and it something should pop up asking if you are
    trying to create an image sequence, select yes.

  • Combining information from multiple images into a single output

    So I'm working on a class that takes input from three buffered images. The buffered images I will be using were covered in some detail [Here in this thread|http://forums.sun.com/thread.jspa?threadID=5401006&tstart=0] for the sake of reference.
    I'll be providing 3 buffered images where the value of every pixel is the ID of the cluster. What I'm planning on doing now is looking at each cluster in each of the 3 buffered images I give the class to process.
    public BufferedImage amalgamate(BufferedImage hueTemp, BufferedImage contrastTemp, BufferedImage textureTemp){
            imgWidth = hueTemp.getWidth();
            imgHeight = hueTemp.getHeight();
            hueRaster = hueTemp.getRaster();
            contrastRaster = contrastTemp.getRaster();
            textureRaster = textureTemp.getRaster();
            amalgamImage = new BufferedImage(imgWidth, imgHeight, BufferedImage.TYPE_INT_RGB);
            amalgamWriter = amalgamImage.getRaster();
            imagePixelCount =  imgHeight * imgWidth;
            for (int x = 0; x < imgWidth; x++)
            for (int y = 0; y < imgHeight; y++) {           
                // assigns pixel values from each buffered image
                hueValue = hueRaster.getSample(x, y, 0);
                contrastValue = contrastRaster.getSample(x,y,0);
                textureValue = textureRaster.getSample(x, y, 0);
                // reset values of integers storing pixel counts
                huePixelCount = 1;
                contPixelCount = 1;
                textPixelCount = 1;
                //. loop iterates through images and produces a pixel count for each of the
                //currently assign pixel values (each pixel value is also used as
                // the ID for each cluster)*/
                for (int i = 0; i < imgWidth; i++)
                for (int j = 0; j < imgHeight; j++) {
                    if (hueRaster.getSample(i, j, 0) == hueValue) huePixelCount ++;
                    if (contrastRaster.getSample(i, j, 0) == contrastValue) contPixelCount ++;
                    if (textureRaster.getSample(i, j, 0) == textureValue) textPixelCount ++;
                }//end of i,j loop
                // this section will determine is the cluster is valid (i.e. makes up
                // more than 5% of the total percentage of pixels in the image)
                if (huePixelCount >= (imagePixelCount * 0.05)) hueValidCluster = true;
                if (contPixelCount >= (imagePixelCount * 0.05)) contValidCluster = true;
                if (textPixelCount >= (imagePixelCount * 0.05))  textValidCluster = true;
                //loop iterates and the Writable Raster will set the pixel values
               // of the output image to red, green or blue for Hue, contrast and
               //texture respectively and set all other pixels to black.
              //I'm using RGB so that I can use a different channel value for
              //each of the three, so that overlap will result in a new colour
              //(overlap between all 3 should = white pixel)*/
                for (int a = 0; a < imgWidth; a++)
                for (int b = 0; b < imgHeight; b++) {
                    //This is my original method I devised
                    if (hueValidCluster == true && hueRaster.getSample(a, b, 0) == hueValue) amalgamWriter.setSample(a, b, 0, 256);
                    else amalgamWriter.setSample(a,b,0,0);
                    if (contValidCluster == true&& contrastRaster.getSample(a, b, 0) == contrastValue) amalgamWriter.setSample(a,b,1,256);
                    else amalgamWriter.setSample(a,b,1,0);  
                    if (textValidCluster == true&& textureRaster.getSample(a, b, 0) == textureValue) amalgamWriter.setSample(a,b,2,256);
                    else amalgamWriter.setSample(a,b,2,0);
                  //When the image returned a completely black output I tried a different
                  //approach along these lines assuming the .setPixel method
                 //would have done what I wanted.
                  if (hueValidCluster == true && hueRaster.getSample(a, b, 0) == hueValue) amalgamWriter.setPixel(a, b, redArray);
                    else amalgamWriter.setPixel(a,b,blackArray);
                }//end of a,b loop
                //Reset booleans for next pixel in the original x,y loop.
                //I've been using ping to make sure the thing doesn't crash while it's running.
                hueValidCluster = false;
                contValidCluster = false;
                textValidCluster = false;
                ping++;
                System.err.println(""+ ping);
            }//end of x,y loop
            return amalgamImage;
        }//end of amalgamate method
    }//end of AmalgamationAs previously hinted the class seems to run to completion, but the image returned is always black so the pixels aren't being set or they're somehow being reset?
    If the error is due to me setting the pixels in the output image incorrectly then the root of the problem is temporarily eluding me.
    I'm not sure if there are compatability problems between USHORT (which is the format the input images are in) and an INT_RGB BufferedImage which could be the cause so I thought I'd mention that.
    It's also crossed my mind that in using a loop inside a loop inside a loop I possibly have done something wrong there.
    Thought I'd throw this problem out there. I've been de-bugging this one for a while.

    amalgamWriter.setSample(a, b, 0, 256);
    amalgamWriter.setSample(a,b,1,256);
    amalgamWriter.setSample(a,b,2,256);For the image type you are using, you only have 8 bits of precision each color channel. That means only a number in the range [0,255] is valid for the sample. The value 256 is equivalent to setting the sample to 0. That is ((byte) 256) = 0.

  • Insert multiple images

    How to insert multiple images into html document ?
    From the menu Insert > Image you can't choose more than 1 image... how strange is that ?!?

    Well ... here's one way you can put 100 photos onto a page in DWCS4
    First - be sure all photos are web ready - I had one straight from my camera and at 4+MB it was a bit TOO LARGE!)
    Next - have them in a folder outside of DW and select them.
    Next - drag them into Design View and drop them and answer all the popup screens
    Like this:
    Respond to the following:
    And Picture One is there .... continue several hundred more times (though is goes pretty fast)
    and now there are five ....
    And in a browser -
    And browser resized -
    Hope this helps ..... But like Nancy says "Happy Clicking"

  • Multiple Image Storage

    Hi all,
    I need to store multiple images into the database. I am using stored procedure for the same.
    I am passing image as byte[] and since i have to store multiple images at one go, I am just switching between my Java code and the database procedure for each image.
    And in each rotation, the record is committed.
    I have a small problem here.
    If I have a total of 5 images and if the 4th image was not stored b'coz of some reason; so.. i'll have the other 4 images stored successfully.
    I was actually thinking of a way to store all the images or none.
    I hope i made my problem clear.
    I had posted an issue earlier. Pls refer to this link:
    Reg: Stroring multiple images in a single transaction
    After some browsing, I found that bytes sent inside an XML might get corrupted. And I need to encode the bytes to character data to send in XML.
    But, if i encode this byte[] in my java program, how do I decode this image character data inside the stored procedure?
    I surfed for this on the net... but could not get much info.
    And I was asked not to use dbms_lob at all.
    Any help would be highly appreciated.
    Thanks n Regards,
    Edited by: user637029 on Feb 24, 2013 12:15 AM

    To address the question regarding "store all the images or none at all"
    that's easy: don't commit in between the loading of the images. Then it will be a single transaction which can be either committed or rolled back.
    And I was asked not to use dbms_lob at alllike I said before today: forget about the idea of a database independent application with a single code base.

  • Paste Develop Settings into multiple images ?

    I develop a particular image that has similar light and exposure to many that follow, so I want to past those develop settings into the several images that follow. I highlight the several remaining images at the bottom shown thumbnails. I paste the develop setting. The setting seems to be applied to only the LAST image that I selected. Is this behaviour as expected?
    I've only been able to manually paste the development settings into each of the images, ONE AT A TIME, which is quite tedious, compared to being able to do it to a group of images at once.
    I would prefer to be able to paste the development setting to multiple images in one fell swoop.

    Or use Auto Sync mode in Develop. Select multiple images in filmstrip or in Library's grid, then in Develop Ctrl/Cmd (Win/Mac) click the Sync button and it'll change to Auto Sync. Once it's on, it stays on. I almost always work this way - YMMV.
    The modal thing is no big deal, just smoke thrown up by Aperture fans who're smart enough to spot differences and creative enough to twist them into a way of justifying their fanboyism. Library works on cached data, Develop accesses the original data. Once you get into Auto Sync, and learn your keyboard shortcuts, modal is nearly irrelevant.
    John

  • Drag and drop Images into Multiple Targets

    Hello,
    I want to alter the NI example "Drag and Drop - Multiple Data Types to Start Drag" to use multiple image Targets.  The current VI only allows for dropping image into a single Target.  I want to duplicate the target window a few times, in order to drop different images into each different Target.  I can't seem to figure out how the VI recognizes and differentiates the Targets. 
    Thanks,
    Labview 2009 SP1

    Hello,
    Please see attached... That's a simple way to perform what you need : each target is handled in the same event case (the target is differentiated by using control refnum).
    Hope this helps,
    J.
    Attachments:
    Screenshot.jpg ‏132 KB

Maybe you are looking for

  • Authenticate when user clicks back button after logging out

    Hi All, Is there a way that the user can be forced to authenticate, if he has just logged out, and then clicks the back button. I have a situation where a user who is working on relatively sensitive data logs out (yeees they should close the browser

  • Can't Download Adobe Flash Player

    I am using WIndows 7 64 bit - IE 9 - Firefox 9.0.1 - Chrome v27 When ever I try to download it sits at either 7%, 8% or 23%..And never progresses. I am not restriced to downloading anything this as it's a personal computer. Firewall is not preventing

  • Organizing Email in Folders

    Page 47 of the iPad Users Guide says you can move a message to a different mailbox or folder. How do you create folders to store mail messages? I have 3 mailboxes: Inbox, Sent, Trash. I would like to create a folder into which I can move all my messa

  • Is there a trial for adobe photoshop elements 7?

    I bought adobe photoshop elements 7 some years ago, I have the case with the serial number, but have lost the disk! need a trial or download of this version please!

  • Cannot update itunes in windows XP

    Cannot update itunes in windows XP, a message appears about a installation file not available