How to "loupe" thru images?

I've used LR for a while now, and my basic workflow has always been:
1.  Import images from my SD card into LR
2.  Review the imported images in LR using the Loupe view and the right (and left) arrow keys
For some reason this does not work anymore. Here is what I am experiencing:
1.  Show images in the Grid view with no thumbnails selected.
2.  View one image in the Loupe view.  Does not seem to matter whether I double-click a thumbnail or single click then press the E key.
3.  The right arrow key show either the next thumbnail, or the 1st thumbnail on the grid (see to be random which thumbnail is chosen)
4.  Subsequent left or right arrow keys toggle the view between the two image noted above.
5.  Switch back to the grid view shows the two image noted above selected.
I've combed the preference settings an I do not see anything for "auto select" or "auto next".  I know the LR has not always behaved this way, so I assume I've done somthing to put it into this "mode".  THe other possibility is that I now have 20K+ images in my catalog.  Is this too many?
I've found a work-around to this "situation" by selecting all of the thumbnails in the grid that I want to see before I enter the Loupe view, but I know I have done this in the past.  Could it be that a LR update changed the way the LR works?
Thanks in advance for any light you might shine on my light room :-)
-- Ole Pa

Thanks for your post gatorjim.  I'm running LR 3.3 on Windows 7.  I have no keyboard macros defined, and the keys do the normal thing on the grid view and in other programs.
OMG - I just fixed it.  I was probing on how to reset my preferences, and I happened to look at the menu option Window / Secondary Display.  I have a 2nd display that I rarely turn on, but my LR setting was Window / Secondary Display / Show and Compare (probably because I had inadvertently hit the key combination to activate it, although I was not aware of that because I rarely turn on the second display).  When that's set, LR behaves as documented in my original post.  Once I set Secondary Display to "Loupe- Normal", now the primary display behaves as expected:  I can sequence thru images in the Loupe view using the arrow keys, and I experience no "auto selection".
I'm sure all this makes sense if you use a secondard display to compare images, but it sure threw me for a loupe (groan... I could not resist).
-- Thanks, Ole Pa

Similar Messages

  • How to Hyperlink an image on the hard drive

    We are converting to iMac from Windows and keep our photography business data in excel spreadsheets. Each image name links to an image on the PC hard drive. On the iMac in Numbers, I can link text in a cell to a webpage or an email but if I use the path to the location on the hard drive, it doesn't work. What I would like is to pop the image in Safari when I click the hyperlink in the Numbers cell. Example:
    The iMac name is butterfly, the user is reniepoole and the path to the image is Documents/image.jpg. If I put file://butterfly/users/reniepoole/Documents/image.jpg into the address bar in Safari, it will render the image OK. If I use the same address as the URL when I try to insert the image as a hyperlink in a Numbers cell, it doesn't work. Does anyone know how to render the image in Safari from a link in Numbers?

    Here is a script doing the trick.
    --[SCRIPT openFileFromNumbers]
    Enregistrer le script en tant que Script : openFileFromNumbers.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Sélectionner une cellule contenant un chemin d'accès à un fichier.
    menu Scripts > Numbers > openFileFromNumbers
    Le script ouvrira le fichier.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    (* à vérifier avec Snow Leopard *)
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    --=====
    Save the script as Script : openFileFromNumbers.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Select a cell containing a link to a file.
    menu Scripts > Numbers > openFileFromNumbers
    The script will open the file.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2009/12/28
    --=====
    property useSafari : true
    true = use Unix paths and open thru Safari
    example : file://Macintosh HD/Users/yvan_koenig/Documents/95.jpg
    false = use HFS paths and open thru Finder
    example : Macintosh HD:Users:yvan_koenig:Documents:95.jpg
    on run
    set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
    set thePath to value of cell rowNum1 of column colNum1
    end tell
    if useSafari then
    tell application "Safari" to open location thePath
    else
    tell application "Finder" to open file thePath
    end if
    end run
    --=====
    on getSelParams()
    local r_Name, t_Name, s_Name, d_Name, col_Num1, row_Num1, col_Num2, row_Num2
    set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
    if r_Name is missing value then
    if my parleAnglais() then
    error "No selected cells"
    else
    error "Il n'y a pas de cellule sélectionnée !"
    end if
    end if
    set two_Names to my decoupe(r_Name, ":")
    set {row_Num1, col_Num1} to my decipher(item 1 of two_Names, d_Name, s_Name, t_Name)
    if item 2 of two_Names = item 1 of two_Names then
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    else
    set {row_Num2, col_Num2} to my decipher(item 2 of two_Names, d_Name, s_Name, t_Name)
    end if
    return {d_Name, s_Name, t_Name, r_Name, row_Num1, col_Num1, row_Num2, col_Num2}
    end getSelParams
    --=====
    set {rowNumber, columnNumber} to my decipher(cellRef,docName,sheetName,tableName)
    apply to named row or named column !
    on decipher(n, d, s, t)
    tell application "Numbers" to tell document d to tell sheet s to tell table t to return {address of row of cell n, address of column of cell n}
    end decipher
    --=====
    set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
    on getSelection()
    local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
    tell application "Numbers" to tell document 1
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of tables
    if x > 0 then
    repeat with y from 1 to x
    try
    (selection range of table y) as text
    on error errMsg number errNum
    set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
    return {theDoc, theSheet, theTable, theRange}
    end try
    end repeat -- y
    end if -- x>0
    end tell -- sheet
    end repeat -- i
    end tell -- document
    return {missing value, missing value, missing value, missing value}
    end getSelection
    --=====
    on decoupe(t, d)
    local l
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to ""
    return l
    end decoupe
    --=====
    on parleAnglais()
    local z
    try
    tell application "Numbers" to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z is not "Annuler")
    end parleAnglais
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) lundi 28 décembre 2009 18:38:42

  • HT2493 How to change preview image of a file and NOT the icon ?

    Hello dear Mac users
    How to change preview image of a file and NOT the icon ?
    I know how to change the icon of a file, but I wish to know how to change the preview of any file.
    For example: my file is "mysong.aif", I changed the icon to be "mylogo.png" using cmd+i, cmd+v on the icon. But the preview of the file still remain the same.
    I know it can be changed using iTunes, but I don't want to import all my files in iTune, and iTune cannot import all type of files.
    I hope someone will understand my needs...
    Thanks!

    Thanks BeerbarX
    You can't change the preview image for anything
    hoo
    QuickLook plugin
    what are the plugin ?
    In the case of a music file, it will be that generic black box with a note on it
    That is exactly what I'm asking about !
    MP3 which has a special tagging standard that can include artwork
    How can I "tag" my MP3 without going thru iTunes ? Is it possible to do it dirrectly in the Finder ? Is there other type of files that can include such tags ?
    Thank you for answering my question , wich I have to admit may seem useless, but I wish I could put something like a signature logo on each of the different file I produce (as AIF for music and MP4 for video clip) instead of that generic black box with a note on it, and by the meantime keeping a different icon for all of them in order to illustrate theire content.

  • How to produce an image Contact Sheet by way of AppleScript

    I have found that the PDF contact sheet action in Automator doesn’t allow for labeling the images (with file name and/or creation date etc).
    So, I thought I may try may hand at doing this by way of AppleScript.
    Does anyone know whether AppleScript (or any application supplied with Mac OS X) is capable of doing this?
    I can see how to get the images and scale them down, as well as find their names and/or creation dates, but I’m not really sure how to print them to a multi page pdf.
    20 iMac G5/17 PowerBook/G4 400 AGP/iPod   Mac OS X (10.4.3)  

    Hi,
    What is your Quark Xpress version and MAC OS.
    I am still working on it. Ihave almost completed but some bugs is there so it doesnot fulfill my requirements.
    See the code below:
    The problem line is in bold
    =========
    tell application "QuarkXPress™ 4.1_XU14777929963"
    activate
    set templateName to (choose file with prompt "Choose your template.")
    open templateName use doc prefs yes
    tell document 1
    set horizontal measure to points
    set vertical measure to points
    end tell
    set pageInfo to (properties of page 1 of spread 1 of document 1) as list
    set topMargin to top margin of pageInfo as list
    set pageLeftMargin to left margin of pageInfo as list
    set bottomMargin to bottom margin of pageInfo as list
    set rightMargin to right margin of pageInfo as list
    tell page 1 of document 1
    set pageBounds to bounds as list
    set rightMargin to get right margin as real
    set leftMargin to get left margin as real
    set topMargin to get top margin as real
    set bottomMargin to get bottom margin as real
    set pageWidth to get page width of document 1 as real
    set pageheight to get page height of document 1 as real
    set tot to leftMargin + rightMargin
    set totalPageWidth1 to pageWidth - rightMargin
    set totalPageHeight1 to pageheight - topMargin
    set maxWidth to totalPageWidth1 - tot
    set maxHeight to totalPageHeight1 - tot
    end tell
    tell page 1 of document 1
    make new picture box at beginning with properties {bounds:{0, 0, "1\"", "1\""}}
    tell picture box 1
    set colorbarImage to choose file with prompt "Find color bar."
    set image 1 to colorbarImage
    set colorbarBounds to bounds of image 1
    set colorbarWidth to (item 3 of colorbarBounds) - (item 1 of colorbarBounds)
    set colorbarHeight to (item 4 of colorbarBounds) - (item 2 of colorbarBounds)
    end tell
    delete picture box 1
    end tell
    set myFolder to choose folder with prompt "Choose your folder containing Images"
    set layOnly to false
    set myFolderText to myFolder as text
    ignoring case
    repeat with i from 4 to length of myFolderText
    if character i of myFolderText = ":" then
    if character (i - 1) of myFolderText = "s" then
    if character (i - 2) of myFolderText = "e" then
    if character (i - 3) of myFolderText = ":" then
    set layOnly to true
    display dialog ("Only .lay files will be processed")
    end if
    end if
    end if
    end if
    end repeat
    end ignoring
    display dialog ("How many points to add to box size?") default answer "0" buttons {"OK"} default button 1
    set addSize to text returned of result
    set addSizePts to addSize as real
    set theResults to (display dialog ("Enter Job Number") default answer "XXX" buttons {"No ID", "OK"} default button 2)
    set textJob to text returned of theResults
    set noID to button returned of theResults
    if (noID = "No ID") then
    set colorbarHeight to 0
    set singlleImage to "Yes"
    else
    display dialog ("Enter batch identification") default answer "Art" buttons {"OK"} default button 1
    set textBatch to text returned of result
    display dialog ("Enter Chapter identification") default answer "Art" buttons {"OK"} default button 1
    set textChapter to text returned of result
    set textJobBatch to "Job:" & textJob & " Chapter:" & textChapter & " Batch:" & textBatch & "" as styled text
    display dialog ("Enter date") default answer "EPG" buttons {"OK"} default button 1
    set textDate to text returned of result
    display dialog ("Enter Client Name") default answer "EPG" buttons {"OK"} default button 1
    set textClientName to text returned of result
    set textClientName to ("Client: " & textClientName)
    display dialog ("Enter your code") default answer "IHK" buttons {"OK"} default button 1
    set textOpName to text returned of result
    set textDateOpNum to (return & "Date:" & textDate & "Operator:" & textOpName) as styled text
    display dialog ("One image/page?") buttons {"YES", "NO"} default button 2
    set singleImage to button returned of result
    end if
    copy (list folder (myFolder) without invisibles) to fileList
    set currPage to 1
    set currSpread to 1
    set spreadInfo to (properties of spread currSpread of document 1) as list
    set newPage to true
    set imageOrigin to 0
    -- set leftMargin to leftMargin
    set columnWidth to 0
    set totalImages to 0
    if (noID = "No ID") then
    set textBoxHeight to 0
    set barCodes to true
    else
    set textBoxHeight to 58
    set barCodes to true
    end if
    repeat with i from 1 to count of fileList
    set imageFile to (myFolder as text) & (item i of fileList as text)
    tell application "Finder"
    try
    set fileType to file type of imageFile
    set creatorType to creator type of file imageFile
    on error
    set fileType to "RRRR"
    end try
    end tell
    if fileType ≠ "fold" then --checking whether it is a folder or file
    if ((fileType = "EPSF") or (fileType = "TIFF") or (fileType = "..CT") or (fileType = "JPEG") or (fileType = "GIFF")) then
    ignoring case
    if layOnly then
    if (imageFile ends with ".lay") then
    set processFile to true
    else
    set processFile to false
    end if
    else
    if (imageFile ends with ".C") or (imageFile ends with ".M") or (imageFile ends with ".Y") or (imageFile ends with ".K") then
    set processFile to false
    else
    set processFile to true
    end if
    end if
    end ignoring
    if processFile then
    set totalImages to (totalImages + 1)
    tell page currPage of spread currSpread of document 1
    if (imageOrigin + colorbarHeight + textBoxHeight) > maxHeight then
    make picture box at begining with properties {bounds:¬
    {topMargin + colorbarHeight + imageOrigin, leftMargin, ¬
    topMargin + colorbarHeight + imageOrigin + 36, leftMargin + 36}, color:"None"}
    end if
    tell picture box 1
    set image 1 to alias imageFile
    set imageBounds to bounds of image 1
    set imageWidth to (item 3 of imageBounds) - (item 1 of imageBounds) + addSize
    set imageHeight to (item 4 of imageBounds) - (item 2 of limageBounds) + addSize
    set saveImageHeight to imageHeight
    set saveImageWidth to imageWidth
    if imageWidth < colorbarWidth then
    set imageWidth to colorbarWidth
    end if
    end tell
    if newPage = false then
    ignoring case
    if singleImage = "Yes" then
    set leftMargin to (maxWidth + 1)
    set imageOrigin to (maxHeight + 1)
    end if
    end ignoring
    if (leftMargin + imageWidth) > maxWidth then
    set leftMargin to (maxWidth + 1)
    set imageOrigin to (maxHeight + 1)
    end if
    if (imagOrigin + colorbarHeight + imageHeight + textBoxHeight) > maxHeight then
    delete picture box 1
    set imageOrigin to 0
    set newPage to true
    set leftMargin to (leftMargin + columnWidth + 24)
    set columnWidth to 0
    if (leftMargin + imageWidth) > maxWidth then
    set currPage to currPage + 1
    if currPage > (item 6 of spreadInfo) then
    set currSpread to currSpread + 1
    set currPage to 1
    tell document 1
    make new spread at end
    show spread currSpread
    end tell
    set leftMargin to pageLeftMargin
    end if
    end if
    end if
    else
    set newPage to false
    end if
    end tell
    set fullSize to true
    tell page currPage of spread currSpread of document 1
    if newPage = true then
    set fullImageHeight to imageHeight
    set fullImageWidth to imageWidth
    if (imageHeight > (maxHeight - (colorbarHeight + textBoxHeight))) then
    set imagHeight to (maxHeight - (colorbarHeight + textBoxHeight))
    set fullSize to false
    end if
    if (imageWidth > maxWidth) then
    set imagWidth to maxWidth
    set fullSize to false
    end if
    make picture box at beginning with properties {bounds:¬
    {topMargin + colorbarHeight + imageOrigin, leftMargin, ¬
    topMargin + colorbarHeight + imageOrigin ¬
    + 36, leftMargin + 36}, color:"None"}
    tell picture box 1
    set image 1 to alias imagFile
    set imageBounds to bounds of image 1
    set colunWidth to imageWidth
    end tell
    set newPage to false
    end if
    tell picture box 1
    set height of bounds to imageHeight
    set width of bounds to imageWidth
    set bounds of image 1 to «constant JUSTcent»
    set boxBounds to bounds as list --box bounds reads as {A,B,C,D}
    set BoxA to ((item 1 of boxBounds) as point units) as real --converts everything to points
    set BoxB to ((item 2 of boxBounds) as point units) as real
    set BoxC to ((item 3 of boxBounds) as point units) as real
    set BoxD to ((item 4 of boxBounds) as point units) as real
    if (noID ≠ "No ID") then
    --set imageName to (name of image 1) as text
    get file path of image 1 --gets the path name of the imported image
    set pathName to result as text --converts the path name from a reference to text
    set oldDelims to text item delimiters of AppleScript --puts the current delimiters into a placeholder
    set text item delimiters of AppleScript to {":"} --uses the colon as the new delimiter
    set fileName to last text item of pathName --asks for the last item of the delimited text string and sets it to variable
    set text item delimiters of AppleScript to oldDelims --resets the old delimiters
    (* if the operator enters "none" for the bar code, don't ask for any more bar codes *)
    if barCodes then
    display dialog ("Enter bar code for image " & fileName) ¬
    default answer "none" buttons {"OK"} default button "OK"
    set textBarCode to text returned of result
    if (textBarCode = "none") or (textBarCode = "NONE") or (textBarCode = "None") then
    set textBarCode to ""
    set barCodes to false
    (* set textBoxHeight to 36 *)
    else
    if textBarCode ≠ "" then
    (* set textBarCode to (return & "Bar Code: " & textBarCode) as styled text *)
    set textBarCode to (" Bar Code: " & textBarCode)
    end if
    end if
    else
    set textBarCode to ""
    end if
    if (creatorType = "ART5") then
    set textCreator to " Creator: Illustrator"
    else if (creatorType = "8BIM") then
    set textCreator to " Creator: PhotoShop"
    else if (creatorType = "FH40") then
    set textCreator to " Creator: FreeHand"
    else
    set textCreator to " CreatorID: " & creatorType as text
    end if
    --set textClientBarCode to (return & textClientName & textBarCode) as styled text
    set textClientBarCode to (return & textClientName & textBarCode & textCreator) as styled text
    if fullSize then
    set sizeDisclaimer to ""
    else
    set sizeDisclaimer to " (complete image is not displayed; full size=" & (saveImageWidth as text) ¬
    & " x " & (saveImageHeight as text) & ")"
    end if
    end if
    end tell
    if (noID ≠ "No ID") then
    set textIDSize to (return & "Fig: " & fileName & " Size: " & (saveImageWidth as text) ¬
    & " X" & (saveImageHeight as text)) as styled text
    (* add a box identifying the figure including job, batch, client, barcode, name, size, date and oper *)
    make new text box at beginning with properties ¬
    {bounds:{BoxC + 6, BoxB, BoxC + 6 + textBoxHeight, BoxD}, runaround:none runaround, color:"None"} ¬
    if sizeDisclaimer ≠ "" then
    set story 1 of text box 1 to (fileName & sizeDisclaimer) as styled text
    else
    set story 1 of text box 1 to (textJobBatch & textClientBarCode & textIDSize & textDateOpNum) as styled text
    end if
    set justification of story 1 of text box 1 to «constant JUSTcent»
    if sizeDisclaimer = "" then
    tell paragraph 1 of story 1 of text box 1
    (* if (word count) = 2 then *)
    (* set style of word 1 to bold *)
    (* set style of word 2 to italic *)
    (* else *)
    set style of word 1 to «constant Stylbold»
    (* word 3 *)
    --select character 1
    (*set textArray to words as list
    set arrayLength to length of textArray
    repeat with i from 1 to arrayLength
    set paraLength to count of words
    repeat with i from 1 to paraLength
    if word i = "Batch" then
    set style of word i to «constant Stylbold»
    else if word i = "Chapter" then
    set style of word i to «constant Stylbold»
    end if
    end repeat
    (* end if *)
    end tell
    (* if textBarCode ≠ "" then *)
    tell paragraph 2 of story 1 of text box 1
    set style of word 1 to «constant Stylbold»
    set paraLength to count of words
    if textBarCode ≠ "" then
    (* set style of words 1 through 2 to bold *)
    (* word count *)
    repeat with i from 1 to paraLength
    if word i = "Bar" then
    set style of words i thru (i + 1) to ¬
    «constant Stylbold»
    end if
    end repeat
    end if
    repeat with i from 1 to paraLength
    if word i = "Creator" then
    set style of word i to «constant Stylbold»
    else if word i = "CreatorID" then
    set style of word i to «constant Stylbold»
    end if
    end repeat
    end tell
    (* end if *)
    tell paragraph 3 of story 1 of text box 1
    set style of word 1 to «constant Stylbold»
    (* word count *)
    set paraLength to count of words
    repeat with i from 1 to paraLength
    if word i = "Size" then
    set style of word i to «constant Stylbold»
    end if
    end repeat
    end tell
    tell paragraph 4 of story 1 of text box 1
    set style of word 1 to «constant Stylbold»
    set paraLength to count of words
    repeat with i from 1 to paraLength
    if word i = "Oper" then
    set style of word i to «constant Stylbold»
    end if
    end repeat
    (* word count *)
    end tell
    tell text box 1
    show
    set heightAdjustment to 6
    set item3 to (BoxC + 6 + textBoxHeight + heightAdjustment)
    --repeat while box overflows and (item3 < maxHeight)
    repeat while box overflows
    --if box overflows then
    set bounds to {BoxC + 6, BoxB, item3, BoxD}
    set heightAdjustment to heightAdjustment + 6
    set item3 to (BoxC + 6 + textBoxHeight + heightAdjustment)
    --end if
    end repeat
    end tell
    end if
    end if
    if (noID ≠ "No ID") then
    (* add the color bar *)
    make picture box at beginning with properties ¬
    {bounds:{BoxA - colorbarHeight - 1, BoxB, BoxA - 1, BoxB + colorbarWidth}, color:"None"}
    tell picture box 1
    set image 1 to colorbarImage
    end tell
    set imageOrigin to BoxC + textBoxHeight -- starting point of next image
    if imageWidth > columnWidth then
    set columnWidth to imageWidth
    end if
    end if
    end tell
    end if
    end if
    end if
    end repeat
    display dialog (totalImages as text) & " images processed in " & myFolder & ". " buttons {"OK"} default button {"OK"}
    tell document 1
    show page -1 --last page
    end tell
    end tell
    Thanks
    Rajeev

  • How to capture an image from my usb camera and display on my front panel

    How to capture an image from my usb camera and display on my front panel

    Install NI Vision Acquisition Software and NI IMAQ for USB and open an example.
    Christian

  • How do I add image upload to web app edit template?

    How do I add image upload to web app edit template. When creating fields I am selecting image from the field type. But the only way to upload and image is when I create the web app item within the admin. The option to upload an image is not available when the user submit web form opens.
    Wont send any of these questions through this email anymore but really needed assistance.
    Thanks,
    Gordon

    On the Details tab of the Web App setup, under Web App Item Options; have you ticked "Allow File Upload" and specified a Default Upload Folder?

  • How to get all images from folder in c#?

    I am trying to get all images from folder. But it is not executing from following:
     string path=@"C:\wamp\www\fileupload\user_data";
                string[] filePaths = Directory.GetFiles(path,".jpg");
                for (int i = 0; i < filePaths.Length; i++)
                    dataGridImage.Controls.Add(filePaths[i]);
    Please give me the correct solution.

    How to display all images from folder in picturebox in c#?
    private void Form1_Load(object sender, EventArgs e)
    string[] files = Directory.GetFiles(Form1.programdir + "\\card_images", "*", SearchOption.TopDirectoryOnly);
    foreach (var filename in files)
    Bitmap bmp = null;
    try
    bmp = new Bitmap(filename);
    catch (Exception e)
    // remove this if you don't want to see the exception message
    MessageBox.Show(e.Message);
    continue;
    var card = new PictureBox();
    card.BackgroundImage = bmp;
    card.Padding = new Padding(0);
    card.BackgroundImageLayout = ImageLayout.Stretch;
    card.MouseDown += new MouseEventHandler(card_click);
    card.Size = new Size((int)(this.ClientSize.Width / 2) - 15, images.Height);
    images.Controls.Add(card);
    Free .NET Barcode Generator & Scanner supporting over 40 kinds of 1D & 2D symbologies.

  • How can I assign image file name from Main() class

    I am trying to create library class which will be accessed and used by different applications (with different image files to be assigned). So, what image file to call should be determined by and in the Main class.
    Here is the Main class
    import org.me.lib.MyJNIWindowClass;
    public class Main {
    public Main() {
    public static void main(String[] args) {
    MyJNIWindowClass mw = new MyJNIWindowClass();
    mw.s = "clock.gif";
    And here is the library class
    package org.me.lib;
    public class MyJNIWindowClass {
    public String s;
    ImageIcon image = new ImageIcon("C:/Documents and Settings/Administrator/Desktop/" + s);
    public MyJNIWindowClass() {
    JLabel jl = new JLabel(image);
    JFrame jf = new JFrame();
    jf.add(jl);
    jf.setVisible(true);
    jf.pack();
    I do understand that when I am making reference from main() method to MyJNIWindowClass() s first initialized to null and that is why clock could not be seen but how can I assign image file name from Main() class for library class without creating reference to Main() from MyJNIWindowClass()? As I said, I want this library class being accessed from different applications (means different Main() classes).
    Thank you.

    Your problem is one of timing. Consider this simple example.
    public class Example {
        public String s;
        private String message = "Hello, " + s;
        public String toString() {
            return message;
        public static void main(String[] args) {
            Example ex = new Example();
            ex.s = "world";
            System.out.println(ex.toString());
    }When this code is executed, the following happens in order:
    1. new Example() is executed, causing an object to constructed. In particular:
    2. field s is given value null (since no value is explicitly assigned.
    3. field message is given value "Hello, null"
    4. Back in method main, field s is now given value "world", but that
    doesn't change message.
    5. Finally, "Hello, null" is output.
    The following fixes the above example:
    public class Example {
        private String message;
        public Example(String name) {
            message = "Hello, " + name;
        public String toString() {
            return message;
        public static void main(String[] args) {
            Example ex = new Example("world");
            System.out.println(ex.toString());
    }

  • How can I display images that are not included in any collection?

    How can I display images that are not included in any collection (some filter or smart collection)? A smart collection with parameters "Collection - contains - empty field" does not work. Lightroom 5.

    Thank you! Good idea! I ordered letters of the alphabet (space separated), and it works.

  • How can I draw image in a vbean?

    How can I draw image in a vbean?
    this is my code :
    import java.awt.BorderLayout;
    import java.awt.Image;
    import java.awt.Graphics;
    import java.net.MalformedURLException;
    import java.net.URL;
    import com.sun.jimi.core.Jimi;
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.VBean;
    public class PrintEmailLogo extends VBean {
         URL url;
         Image img;
         boolean ImageLoaded = false;
         public void paint(Graphics g) {
              if (ImageLoaded) {
                   System.out.println("yes~~~");
                   g.drawImage(img, 0, 0, null);
              } else
                   System.out.println("no~~~");
         public boolean imageUpdate(Image img, int infoflags, int x, int y, int w,
                   int h) {
              if (infoflags == ALLBITS) {
                   System.out.println("yes");
                   ImageLoaded = true;
                   repaint();
                   return false;
              } else
                   return true;
         public void init(IHandler arg0) {
              super.init(arg0);
              try {
                   url = new URL("file:print/77G.gif");
                   img = Jimi.getImage(url);
                   Image offScreenImage = createImage(size().width, size().height);
                   Graphics offScreenGC = offScreenImage.getGraphics();
                   System.out.println(offScreenGC.drawImage(img, 0, 0, this));
              } catch (MalformedURLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    but when I run it in forms
    when it run Graphics offScreenGC = offScreenImage.getGraphics();
    It throw a exception:
    java.lang.NullPointerException     at com.avicit.aepcs.calendar.PrintEmailLogo.init(PrintEmailLogo.java:72)     at oracle.forms.handler.UICommon.instantiate(Unknown Source)     at oracle.forms.handler.UICommon.onCreate(Unknown Source)     at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)     at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)     at oracle.forms.engine.Runform.processMessage(Unknown Source)     at oracle.forms.engine.Runform.processSet(Unknown Source)     at oracle.forms.engine.Runform.onMessageReal(Unknown Source)     at oracle.forms.engine.Runform.onMessage(Unknown Source)     at oracle.forms.engine.Runform.processEventEnd(Unknown Source)     at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)     at oracle.ewt.lwAWT.LWComponent.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.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.run(Unknown Source)
    I change it to:
    import java.awt.BorderLayout;
    import java.awt.Image;
    import java.awt.Graphics;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.swing.JFrame;
    import com.sun.jimi.core.Jimi;
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.VBean;
    public class PrintEmailLogo extends VBean {
         URL url;
         Image img;
         public void paint(Graphics g) {
              try {
                   url = new URL("file:print/77G.gif");
                   img = Jimi.getImage(url);
                   g.drawImage(img, 0, 0, this));
              } catch (MalformedURLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         public void init(IHandler arg0) {
              super.init(arg0);
    But it display nothing.
    It isn't paint continuous.
    what's wrong in my vbean?
    please help me.

    The following code works fine for me:
    package oracle.forms.fd;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.CustomEvent;
    import oracle.forms.ui.VBean;
    public class test extends VBean {
      private URL url;
      private URL m_codeBase; 
      private Image img;
    public void paint(Graphics g) {
      // draw the image
      g.drawImage(img, 0, 0, this);
    public void init(IHandler arg0) {
       super.init(arg0);
       // load image file
       img = loadImage("file:///c:/coyote.jpg");   
    public test()
        super();
       *  Load an image from JAR file, Client machine or Internet URL  *
      private Image loadImage(String imageName)
        URL imageURL = null;
        boolean loadSuccess = false;
        Image img = null ;
        //JAR
        imageURL = getClass().getResource(imageName);
        if (imageURL != null)
          try
            img = Toolkit.getDefaultToolkit().getImage(imageURL);
            loadSuccess = true;
            return img ;
          catch (Exception ilex)
            System.out.println("Error loading image from JAR: " + ilex.toString());
        else
          System.out.println("Unable to find " + imageName + " in JAR");
        //DOCBASE
        if (loadSuccess == false)
          System.out.println("Searching docbase for " + imageName);
          try
            if (imageName.toLowerCase().startsWith("http://")||imageName.toLowerCase().startsWith("https://"))
              imageURL = new URL(imageName);
            else if(imageName.toLowerCase().startsWith("file:"))
              imageURL = new URL(imageName);
            else
              imageURL = new URL(m_codeBase.getProtocol() + "://" + m_codeBase.getHost() + ":" + m_codeBase.getPort() + imageName);
            System.out.println("Constructed URL: " + imageURL.toString());
            try
              img = createImage((java.awt.image.ImageProducer) imageURL.getContent());
              loadSuccess = true;
              System.out.println("Image found: " + imageURL.toString());
              return img ;
            catch (Exception ilex)
              System.out.println("Error reading image - " + ilex.toString());
          catch (java.net.MalformedURLException urlex)
            System.out.println("Error creating URL - " + urlex.toString());
        //CODEBASE
        if (loadSuccess == false)
          System.out.println("Searching codebase for " + imageName);
          try
            imageURL = new URL(m_codeBase, imageName);
            System.out.println("Constructed URL: " + imageURL.toString());
            try
              img = createImage((java.awt.image.ImageProducer) imageURL.getContent());
              loadSuccess = true;
              System.out.println("Image found: " + imageURL.toString());
              return img ;
            catch (Exception ilex)
                    System.out.println("Error reading image - " + ilex.toString());
          catch (java.net.MalformedURLException urlex)
            System.out.println("Error creating URL - " + urlex.toString());
        if (loadSuccess == false)
          System.out.println("Error image " + imageName + " could not be located");
        return img ;
    }Francois

  • How can I display images in drop down.

    Hi All,
    How can I display images in drop down.
    <select><option>image here</option></select>
    please reply soon.
    anser please
    Thanks

    I have not found html forum..That's just incredible.
    where can i find it ?Sorry, I'm still recovering from that remark.
    please reply soonEvery time you end a post with this, or "urgent" or other such keywords, the forum automatically introduces a 5 minute delay so that will actually make the whole process slower (not faster).

  • How can i display image in RTF template when Oracle Apps running in Windows

    Can any body help how can i display image in RTF template when oracle apps running in Windows Server.
    Thanks
    Ravi

    Hi Ravi,
    You can add images into your rtf template using MS Word Insert Picture feature.
    Did you try this method?
    Thanks
    Ravi
    [email protected]

  • How do I delete images in Finder's "all my Files" when I have the same pictures in a file in Documents? It seems like a lot of duplication. If I delete the individual image it disappears in the folder. Thank You.

    How do I delete images in Finder's "all my files" without deleting the images in a separate folder I have in Documents? It seems to be so much duplication. Just set up our new Mac and am not understanding how the files work. Thank you.

    All My files is a "search folder"
    it isn't real storage location. All files within your home folder are found by the criteria set for the search folder and displayed to you In one place.
    If the folder doesn't meet your needs, remove it from the sidebar.

  • How to import multiple images at the same time in illustrator?

    How to import multiple images in a document at the same time in illustrator?
    It's possible?

    Script: Place Multiple Files in Illustrator (Kelso)
    http://kelsocartography.com/blog/?p=2047

  • How to have multiple images on the same screen? like in the movies where you see several actions at

    how to have multiple images on the same screen? like in the movies where you see several actions at the same time ....
    i don't find  a tutorial in adobe tv....
    thanks !!

    The short answer is that you'll put the source clip(s) for each inset on a different video track, all stacked up. Then use the Scale and Position effects (under "Motion" on the Effect Controls panel) to reduce their size and place them where you want.
    If the content of an inset will involve edited content (where you're cutting among various clips or just trimming out unwanted content from a single clip), then you'll probably find it easier to do all those edits in one sequence, then nest that sequence in the master sequence, where you apply the Scale and Positioning effects. That will save the step of applying the scale and position effects to each edited track item.

Maybe you are looking for

  • Select from table containing clob

    If i try to select from table containing clob column in SQL PLus it gives error. Tab1 contains 3 clob columns and 1 blob column select * from tab 1; SP2-0678: Column or attribute type can not be displayed by SQL*Plus The same statement works in SQL D

  • Copy & Paste into Dialer - Cannot Edit Number!

    I am curious as to why the supposed enhancement to enabling you to paste a number into the Dialer app does not allow you to edit the number once pasted. I do a lot of international calls and people send out email invites (especially US based people)

  • RMI JNDI Lookup on remote iAS causing "Not Authorised"

    Hi all I'm running through an OJMS example using AQ and all is looking good until I try and Update my plan from Design Studio.. I get: IMessageSourceReceiver->messageReceive: javax.naming.NamingException: Lookup error: javax.naming.AuthenticationExce

  • CRM portal link do not work

    Hi, My CRM URL stopped working. My webdispatchers and CI is up and running without problem. Could you please suggest how to proceed further. thanks and regards Syam

  • Bluetooth on HP Pavilion dv7-2173cl Entertainment Notebook PC

    I can't seem to make this work with my Droid Razr Maxx or bluetooth wireless speaker even though there are icons in Devices and Printers dialog box with little yellow triangles on them.  Ever since I have owned this laptop, I have not been able to us