Search text in FXZ images

Hi all
I want to develop a piece of code which will search the text in FXZ images in javafx which is similar to the following program
http://java.sun.com/docs/books/tutorial/uiswing/components/textfield.html
which is in swing and searching in a text of filenow i need just like this functionality but using FXZ images not plain text
any one have idea then please post here

Thanks Pavel.Benes
as you said
use internal API from fxdloader to open content files. It is possible - however completely unsupported and with high probability also not backward compatible.i am using fxdloader
and i was tried something like
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.fxd.FXDLoader;
import javafx.scene.Group;
import javafx.ext.swing.SwingTextField;
import javafx.ext.swing.SwingButton;
import java.lang.Void;
import javafx.scene.Node;
var myScene: Scene;
var fxdContent = FXDLoader.loadContent("{__DIR__}images/12_2008_123-7.fxz");
var RootGroup = fxdContent.getRoot();  //root node
var GroupA = RootGroup.content as Group[];  //first level siblings
var rootsize=sizeof GroupA;                 //size of first level siblings
var textarray = GroupA[0].content;          //content of first level first node
var newtextarray: Text[] = for (i in textarray where i instanceof Text) {
            i as Text
//textfield to input text
var inputtext = SwingTextField {
            editable: true
            translateY: 10
            columns: 20
            text: "Enter Text to search"
//search button
var search = SwingButton {
            text: "Search"
            translateX: inputtext.boundsInLocal.maxX
            translateY: 10
            action: function (): Void {
                 var tex = bind inputtext.text;
                for (i in newtextarray) {
                if (i.content.contains("{tex}")) {
                i.underline = not i.underline;
                       }//if
                i
                }//for
                delete RootGroup from myScene.content;
                insert RootGroup before myScene.content[0] ;
//now the stage
Stage {
    title: "Application title"
    scene: myScene = Scene {
        content: [
            RootGroup,
            inputtext,
            search,
}this is the code i have written but this code have some drawbacks like
0)It is not highlighting but underling the text and that too whole text screenshot is [http://lh5.ggpht.com/_XZ5lTObJ3ZY/S5XmNL2TqXI/AAAAAAAABac/z5IS6yjXjyE/s512/1.jpg]
1)it is particular to one particular FXZ image which is having Text nodes at first level first node(which is a Group)
2)after first search when you make second time search with another key it is not removing previous searched textnow what changes i have to make to this code for avoiding the above drawbacks please help

Similar Messages

  • If Image is Saved As a Text, Would the Image Text, As a Link, Be Indexed by Search Engines.

    Hi I want to put a text long the height of the brown box.
    The text would be vertical as one looking at the page.
    I believe with page make the text can be rotated.
    If Image is Saved As a Text, Would the Image Text, As a Link, Be Indexed by Search Engines.
    or how else to do this?
    an

    If Image is Saved As a Text
    Impossible. It's either image or text.  Save a JPEG as a Word document.  Try it.  Seriously, change the file extension, open it in Word and see what happens.
    Would the Image Text, As a Link,
    Huh?  You lost me here.
    Be Indexed by Search Engines.
    Indexing of search engines.  Yes, Google sees links and Google sees alt text for images.  Google does not see images nor Flash.

  • [CS2][JS] Search text & replace with inline Image

    I am working with a large layout with many entries. There is a text "placeholder" that I need to search for and replace with an inline image in that exact spot.
    I need to apply an Object Style to that image.
    There is a loop above this for each find/replace to perfom
    I have supplied samples to show what the variables will hold
    The following assumes that an Objectstyle named "image" exists
    //places the image
    app.changePreferences = null;
    findName = "OR-00014500-24-0000-1";
    fileName = "Ads:OR-00014500-24-0000-1:OR-00014500-24-0000-1.eps"
    myFinds = app.search(findName)
    for (j = myFinds.length - 1; j >= 0; j--) {
    app.select(myFinds[j]);
    app.place(fileName, false,{appliedObjectStyle:"image"});
    This doesn't apply the style to the placed object and I have tried many different ways to apply this in the properties.
    Any help would be appreciated.

    I've seem to hit another hurdle....
    The code works well for searching and replacing the images. It applies the style to the image, but these images are not inline they are anchored. I ended up with a nice stack of images in the same corner.
    Ok... I need to then apply styles based on the images that have been placed already..
    This works well for cycling through the pages and with a bit more will change the style...
    myDoc = app.activeDocument;
    pagecount = myDoc.pages.length;
    for ( page=0; page < pagecount; page++){
    if (myDoc.pages.item(page).textFrames.length != 0){
    app.select(myDoc.pages.item(page).textFrames.item(0));
    piccount = app.selection[0].rectangles.length;
    if (piccount != 0){
    for ( bob=0; bob < piccount; bob++){
    app.select(myDoc.pages.item(page).textFrames.item(0));
    app.select(app.selection[0].rectangles.item(bob));
    // Get geometric bounds
    // alert(app.selection[0].geometricBounds);
    // Get object Style
    // alert(app.selection[0].appliedObjectStyle.name);
    // Do more here....
    I can't use this though :(
    I need to determine how many images have already been placed on the page before placing the image in the search and replace....
    myFinds = app.search(replaceName)
    for (j = myFinds.length - 1; j >= 0; j--) {
    app.select(myFinds[j]);
    myStory = myFinds[j].parent;
    myIndex = myFinds[j].index;
    //This will change using a series of Case Switches
    // Here is where I need to find the page and run the previous script or something like it myStyle = app.activeDocument.objectStyles.item("image");
    app.place(fileName, false);
    myStory.characters[myIndex].pageItems[0].applyObjectStyle(myStyle);
    app.select(myStory.characters[myIndex].pageItems[0]);
    //alert(app.selection[0].appliedObjectStyle.name);
    What I need to do is kind of combine the two....
    But I can't seem to get the current page of the selected image....
    I could use the page by page script, but it moves the character anchor point of images and pushes them to the next page. This throws off the pretty layout I'm going for.
    What am I doing wrong here ?

  • [Microsoft][SQL Server Native Client 11.0][SQL Server]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.  'Items' (OITM) (OITM)

    Dear Experts,
    i am getting the below error when i was giving * (Star) to view all the items in DB
    [Microsoft][SQL Server Native Client 11.0][SQL Server]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.  'Items' (OITM) (OITM)
    As i was searching individually it is working fine
    can any one help me how to find this..
    Regards,
    Meghanath.S

    Dear Nithi Anandham,
    i am not having any query while finding all the items in item master data i am giving find mode and in item code i was trying to type *(Star) and enter while typing enter the above issue i was facing..
    Regards,
    Meghanath

  • Text block as image -- should I care?

    It was pointed out to me that most of the text on my site is an image, rather than lines of text. All of the text on my site was typed onto the site into text blocks, and none of it was cut and pasted. I did use Garamond for the font.
    A few threads have covered this topic, which I have read.
    Two of those blocks of text-as-image are on my home page and the text in those blocks appears in Google (on the listing of the site on the first "search result" -- or whatever it is called -- page).
    Doesn't this mean that the text in those "text-as-image blocks" (sorry for all the quote marks, but I don't know the real names of these things) are indeed searchable by google, even if they are images rather than lines of text?
    I have tried cutting and pasting the text into TextEdit and then repasting the text back but that didn't solve the problem.
    So:
    1. Does any of this really matter to the search engines and the ability of people to find text on my pages? Or for some weird reason does the home page act differently than the other pages?
    2. Does anyone have a consistent solution to this problem?
    3. Is this something that Apple may think significant enough to have already fixed for the next version -- which I hope is out in a couple of months?
    But mainly, should I even care?
    Thanks!
    Mark

    1. Does any of this really matter to the search
    engines and the ability of people to find text on my
    pages? Or for some weird reason does the home page
    act differently than the other pages?
    No and no. It sounds like your page is already coming up in the search results...graphic or text? It doesn't matter.
    2. Does anyone have a consistent solution to this
    problem?
    Not sure that it is a problem that needs fixing.
    3. Is this something that Apple may think
    significant enough to have already fixed for the next
    version -- which I hope is out in a couple of
    months?
    Again, I doubt that Apple sees it as a problem. iWeb converts text into an image for a reason.... your happiness. Most people would probably want to have a webpage that looks the way it is supposed to look (the way they want it to look). Most people probably don't care about text converted to image as long as it looks the way they expect it to look. This is why iWeb does the text to graphic conversion....to ensure uniform and consistent rendering of the text on the page. I think many, many more people would be upset if iWeb allowed them to put different fonts and text effects on a page and then left it up to a browser to determine how those fonts and effects were to be rendered.
    But mainly, should I even care?
    I think in the grand scheme of things, you shouldn't care. But that's just my humble opinion.

  • Search text on RTF with lingo

    dear all ...
    can help me?..
    I make glossary with RTF text because on RTF Text is easy to change content but can help me to make search text or word on RTF text with lingo..?
    Thankyou

    Changing the BG colour of a chunk of text is not easy. It can be done with some imaging-lingo hoop-jumping, or by having a pool of shape sprites that can be dynamically allocated, sized and positioned.
    Place the following in a JavaScript typed #movie script:
    function jsSearch (aString, aMatch) {
      var aPattern = new RegExp(aMatch, "gi");
      var found;
      var results = list();
      while((found = aPattern.exec(aString)) != null) {
        results.append(found.index);
      return results;
    and this in a "regular" Lingo #movie script:
    on mHighlightMatches aMember, aString
      -- error check inputs
      if ilk(aMember, #member) = 0 then
        aMember = member(aMember)
        if ilk(aMember, #member) = 0 then
          exit
        end if
      end if
      if stringP(aString) = 0 then aString = string(aString)
      if stringP(aString) = 0 then exit
      -- will only work with #text nmembers
      if (aMember.type <> #text) then exit
      aMember.color = rgb(0, 0, 0)
      len = length(aString)
      lMatchPositions = jsSearch(aMember.text, aString)
      if count(lMatchPositions) = 0 then
        alert "Search text not found"
      else
        repeat with aStart in lMatchPositions
          aMember.char[aStart..(aStart + len)].color = rgb(255, 255, 0)
        end repeat
      end if
    end
    and now your button script might look like:
    on mouseUp me
      mHightlightMatches(member("text2"), member("text1").text)
    end

  • 1.1 - text converted to image

    I've read all the posts regarding problems with publishing, as well as with comments and search features (some of which I have experienced myself).
    But has anyone else but me had all of the text on their web-site changed to images (.png) after re-publishing using 1.1?
    My website text (except titles) is web-friendly... I'm using Arial. And it all worked fine before 1.1.
    I have sent feedback to Apple about this. Just want to know if anyone else has the same problem.
    I can actually publish now (with no more error messages) but:
    -all text is still in .png format
    -comments don't work (I was getting "@post" rather than "add a comment", so I have removed the option)
    -search function obviously doesn't work (since all text is in image format, there is nothing to search through)
    Here is my main site: www.maitaionline.com
    Same problems on my secondary site (jandb.maitaionline.com) where I am also having problems with some photo pages.
    Powerbook G4   Mac OS X (10.4.6)  

    That's weird. My site was all .png before 1.1 (I'm using web safe Georgia). Now, it's real type and not .png.

  • Verrrrryy Slloooow at search: text not found

    Hi, when i use the upper left quick-search-box (does that thing have a name?) and i hit a "text not found" it first displays a rectangular box over the textbox after 10 seconds (or something like that) the litte popup "Text not found" come's in.
    See images http://soffitta.cuijpers.it/shareimg/57997e1ed2020ff59e00c4f71f0ebf6a.png
    and http://soffitta.cuijpers.it/shareimg/4536ec106831af9ccf829f9a5667edf2.png
    It happens also when the search-text appears somewhere on the page before the cursor position.... This is very annoying because i use this search method a lot..
    btw i'm using 3.1 on osx (in oracle-look because the osx look keeps crashing :(....)
    Thanks in advance!

    Had the "Text not found" message a couple of times and was unable to dismiss it all together.
    Searching another text would display another popup message on top of the other. This last one could be dismissed, but the first one remained.
    Had to restart sqldev :-(
    Hope it's the same issue and that it gets bugged/fixed,
    K.

  • Grep Search / Text Search + Past Searches

    Is there a way to clear out previous GREP searches / Text Searches (Find/Change) from the "Find what" and "Change to" boxes? Is this document specific or an ID Preference issue?

    Hi Eugene,
    Thanks for the info, but I am not looking to make shortcuts. I want to delete all the pre-filled text that appears from previous searches. For example in the original image this is represented as
    http
    and the dropdown box is blue indicating that there is stored data. Having cleared ALL ID Preferences fixes the problem, however, I don't want to be forced to delete ALL preferences to delete this data. See pic below

  • Error in SQL Query The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query

    hi Experts,
    while running SQL Query i am getting an error as
    The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    T2.LineText
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,T2.LineText
    how to resolve the issue

    Dear Meghanath,
    Please use the following query, Hope your purpose will serve.
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    CAST(T2.LineText as nvarchar (MAX))[LineText]
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry --where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,CAST(T2.LineText as nvarchar (MAX))
    Regards,
    Amit

  • Text jobs with images - printer cancels

    When I print a text document with images the printer stops printing and cancels the print job when it starts to print any image.
    Help
    This question was solved.
    View Solution.

    Hey @sudiegal!
    Thanks for posting on the HP Forums!
    I would be happy to provide some suggestions that may resolve the issue.  I can see that the printer cancels the jobs when you add a photo to you text document.  The first thing I suggest is to remove the printer by resetting the print system.  After the printer is removed re-add the printer and try printing the document again. 
    To reset the printing system:
    1. Click the Apple icon at the top left of the computer
    2. Click System Preferences
    3. Click Printers and Scanners
    4. Hold down the "control" key on the keyboard and click with the mouse in the white space bellow the printer
    5. Click reset printing system dropdown
    6. It may ask for Mac ID and will color wheel for a moment until the printer is removed
    To re-add the printer:
    1. Click the Apple icon at the top left of the computer
    2. Click System Preferences
    3. Click Printers and Scanners
    4. Click the plus (+) icon under the printers list
    5. Select your printer
    6. Choose HP ENVY 7640 series in the dropdown next to "use" or "print using"
    7. Click add
    Please post back and let me know if this works out for you!
    Cbert
    I work on behalf of HP.
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" at the bottom of this post to say “Thanks” for helping!

  • How do I add text to an image?

    I have purchased a template and imported it to Photoshop. I then sliced the template into sections, saved it for web and opened the index file in dreamweaver. My questions is, how do I add text to the images? I want to add the text content, within the boxes on the template, but because they are exported as images from Photshop I can't seem to do it...So let's say there is a box in the middle of the template and I want it to say, Services at the top and below that have a little information about the services offered with a "read more" button at the bottom. I have exported the template out of photoshop with text added and with the boxes empty. I tried to add the text in dreamweaver but couldn't. When I export the sliced template out of photoshop with the text already included, it does show up in Dreamweaver, however it is not in html and I would like it to be for SEO purposes. Forgive me if this question is silly or already answered, I have looked everywhere and couldn't find the answer.
    Thanks in advance to anyone that can help.

    Hi,
    I prefer to use tables for that. For example (First of all you have to store this new file):
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>AddedText</title>
    </head>
    <body>
    <table width="40%" border="4">
      <tr>
        <td>Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text </td>
      </tr>
      <tr>
        <td align="center" valign="top"><div align="center"><img src="yourPicture.jpg" alt="image 01" width="127" height="33" /></div></td>
      </tr>
      <tr>
        <td>Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text </td>
      </tr>
    </table>
    </body>
    </html>
    Here I took a table with only one column, you can modify my choice.
    There is so too a possibility to use a complete flow text around a picture. If you like that, please give me a shout.
    About the story "hotspots" look here where I tried to give an answer a short while ago: http://forums.adobe.com/message/2700306#2700306
    Hans-G.

  • Search text in sql server 2000

    how can i preapre a script to search all stored procedure, view, etc. which contain search text. just list out all the sp name, view name.

    select distinct
    object_name([id]) as obj_name,
    case
    when objectproperty([id], 'IsProcedure') = 1 then 'stored procedure'
    when objectproperty([id], 'IsScalarFunction') = 1 then 'scalar function'
    when objectproperty([id], 'IsTableFunction') = 1 then 'table function'
    when objectproperty([id], 'IsView') = 1 then 'view'
    end as obj_type
    from
    syscomments
    where
    objectproperty([id], 'IsProcedure') = 1
    or objectproperty([id], 'IsScalarFunction') = 1
    or objectproperty([id], 'IsTableFunction') = 1
    or objectproperty([id], 'IsView') = 1
    and objectproperty([id], 'IsMSShipped') = 0
    and [text] like '%orderid%'
    order by
    obj_type, obj_name
    go
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Dynamic Text in Flash/Image

    Hi All,
    I cant find any simple tutorials, can anyone help me and
    explain how to very simply, display one variable of text from a
    database as flash format (or a type of dynamic image)?
    Using CS3, and ColdFusion. I'm playing games with it and
    think i'm just name the variable wrong either in a flash file or cf
    page. But anyway, any simple method to dynamically display text as
    an image will work.... please help.
    Thx,
    Mike

    probably the simplest way will be passing your text to your
    flash movie
    as the movie url's query string variable (in the
    [object]/[embed] html
    tags). inside the flash movie set a dynamic text box to
    display the
    passed variable:
    if you google "pass variable to flash" you will see a lot of
    examples of
    code involved. just make sure your flash movie is large
    enough to
    display all passed text, and the passed text is url-encoded.
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • How search text in current frame of external swf?

    Hello Everyone
    I am loading an external swf using loader.
    How do search and highlight the text in the current frame only?
    Is there a frame class which I could use?
    Thanks

    This is not likely to be possible in the general case, depending on what you mean by "searching text"
    For instance, a Word doc might have the text "Hello, world!" when viewed in Word, but that doesn't mean that the sequence of characters 'H', 'e', 'l', 'l', 'o', etc., exists in the file. There might be one letter, then some binary data indicating that the next letter is some other font or color, then one more letter, then more binary data, etc.
    Conversely, there could be textual metadata in a "binary" file that a person reading the file in the appropriate viewer would never see. Unless you know the details of the format you're reading, you won't be able to distinguish that from "real text".
    And what do you mean "strings" is not efficient? Have you tried it? Does it do what you want? Did you measure and determine that it does not meet your well-defined performance requirements? It's unlikely you'll be able to write code that does the same thing as "strings" but more "efficiently."
    The first step is to put more realistic boundaries on your requirements and define them more precisely. "Extract text from any binary file," is not a valid, meaningful, or reasonable requirement.
    EDIT: I may have misunderstood your requirements. I thought you wanted to "extract all text" from binary files. If that's not what you meant, and you're looking more to replicate grep, then follow Joachim's advice.
    Edited by: jverd on Mar 29, 2010 1:33 PM

Maybe you are looking for

  • How can I disable save sleep in Snow Leopard

    I've installed 10.6.2 on a 16 GB SDHC card as an emergency boot drive for my MacBook Pro as an alternative to carrying an external HD when travelling. I would also want to use this card for download of large numbers of digital photos in the event of

  • Canon HV20 In Photo Mode Does Not Appear On Desktop ?

    I can't think where else to post this and it is connected with an iMac! Normally when I connect a digital still camera to my iMac via USB I get a "No Name" Hard Drive type icon on my desktop. The camera is basically just another HD. I can then open t

  • LDAP Configuraton: Is it possible to block 2500 users??

    Hello experts, we are running an EP with about 2500 users. The database for all users is the Protal´s DB sofar. However we would like to use the company´s AD for retreiving user data. Now, the users in the portal database have more o less the same Lo

  • Recovering file pre-migration backup

    I am trying to recover a Themes file from inside my old iWeb application on my pre-migration MacBook Pro backup, however, in Time Machine the all pre-migration backups for the MacBook pro are shown on the right, but are grayed out and not accessible.

  • Sending iOS camera stream to FMS

    I'm currently developing an app that requires video conferencing for iOS. I've used a fairly basic approach with Flex that streams the camera and microphone on H.264 with Speex to FMS. It does actually produce a stream but I pressume the quality is s