Alignment/image insertion inTextArea  Problem

can any one tell me how can I set the allignment for TextArea. And how to insert an image in TextArea.

Can you tell me about Alignment in Simple TextArea not in JTextArea.I tried the Component class field ALIGNMENT_RIGHT LEFT OR CENTER, but can not solve this problem. can u help me.

Similar Messages

  • Align Image and Text Problem

    I have DW CS4 and Windows XP with plenty of memory and have used this method before to align text with an image.  I insert the image on the page and then type in the text beside the image that I want.  If the text is long, then the second line of text will wrap below the image.  I select the image so the properties show.  In the align box, I select how I want the text to align (Top for example).  What is happening is that the first line of text aligns as I want, but all the other text stays below the image. 
    I have tried selecting the alignment first then type the text in and results is the same.
    I am not sure what is causing this.   I have checked properties and unless I am missing something, there is nothing there to make this happen.
    Any suggestions would be greatly appreciated.

    Use CSS floats and padding.  See demo below for details.
    http://alt-web.com/DEMOS/CSS2-Captions-on-floated-images.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Image inserting problem

    Whenever I want to insert an image, DW 8 no longer makes a
    box pop up where I
    can browse to the image, but in stead the prompt for
    inserting an Alt text
    comes up. After that I get a weird looking symbol
    http://www.xs4all.nl/~hogen/voorbeeld/image.htm
    , but no image is inserted.
    Only when I click on the symbol do I get the normal window
    that lets me browse
    to the image.
    This is a recent problem. Unfortunately I do not remember
    precisely when it
    started nor what I have changed that might cause this.
    The problem occurs both with the keyboard short cut for
    inserting an image and
    when trying from the Insert menu.
    Does anyone have anu ideas about how to solve this?
    Regards,
    Adriana.
    [ put out the rubbish if you need to reach me by e-mail ]
    www.spinsister.nl

    That's an image placeholder. Most likely you enabled the
    accessability
    options for image insertion in PREFERENCES....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "A.Translator" <[email protected]> wrote in
    message
    news:[email protected]..
    > Whenever I want to insert an image, DW 8 no longer makes
    a box pop up
    > where I can browse to the image, but in stead the prompt
    for inserting an
    > Alt text comes up. After that I get a weird looking
    symbol
    >
    http://www.xs4all.nl/~hogen/voorbeeld/image.htm
    , but no image is
    > inserted.
    > Only when I click on the symbol do I get the normal
    window that lets me
    > browse to the image.
    >
    > This is a recent problem. Unfortunately I do not
    remember precisely when
    > it started nor what I have changed that might cause
    this.
    >
    > The problem occurs both with the keyboard short cut for
    inserting an image
    > and when trying from the Insert menu.
    >
    > Does anyone have anu ideas about how to solve this?
    >
    > --
    > Regards,
    > Adriana.
    > [ put out the rubbish if you need to reach me by e-mail
    > www.spinsister.nl
    >
    >

  • Can't get Photoshop CC panorama maker to align images properly on distant horizons.

    Can't get Photoshop CC panorama maker to align images properly for objects further away (ie For distant horizons) Tried reloading CC but no better. Tried manually aligning images but when finished seems to jump and misalign everything as if I'd used auto. Is there anything I can do / doing wrong or is there a software glitch. Never had this problem until started using CC?

    Hi Guys - Thanks for the info.
    I have now downloaded the latest upgrade for Photoshop CC 2014 (the one that now opens photoshop with a face like 'The Scream') and it seems to have cured the problem. However, now Photoshop couldn't run any slower if it tried. Really really slow, and the more Panoramas I try to do, the slower it gets. Oh well, at least it works now.
    Regards
    Mik D

  • Is there a way to accomplish a dynamic image insertion linkage?

    I have a cell in my spreadsheet where I have inserted a graphic, let's say .../GRAPHICS/PICTURE-1.JPG for reference.
    I would like the image displayed in Numbers to change dynamically by virtue of my changing the contents of .../GRAPHICS/PICTURE-1.JPG (through renaming, of course).
    What I really want is a dynamic link, rather than having to manually reinsert the image. (No problem for PICTURE-1.JPG, but more than a minor annoyance when it gets to, say, PICTURE-23.JPG, right?)
    Thanks for any suggestions.
    -- Ranebo

    Hello
    I hope that the given script will fit your needs.
    I took care to comment many instructions.
    --(SCRIPT exchangePictures.app]
    Save the script as a Bundle Application
    In the bundle, create a folder whose name is the one of the iWork's document to change (stripped of its name extension)
    In this folder, store the "new" pictures in a subfolder named "New".
    CAUTION: as you wrote, YOU MUST check that new files dimensions are the same that the old ones.
    Drag and drop the icon of an iWork document on the script's icon.
    The "old" embedded files having a "replacement" in the folder "New" are duplicated in the folder "Old"
    and the replacement file is copied in the document's package.
    Yvan KOENIG (28 mars 2008)
    property permitted : {"com.apple.iwork.keynote.keynote", "com.apple.iwork.numbers.numbers", "com.apple.iwork.pages.pages"}
    property nouveau : "New"
    property ancien : "Old"
    -- ==================
    (* lignes exécutées si on double clique l'icône du script
    • lines executed if on double click the script's icon *)
    on run
    tell application "System Events" to set _ to choose file of type permitted
    my traiteFichier(_)
    end run
    -- ==================
    (* lignes exécutées si on glisse-dépose l'icône d'un document iWork sur l'icône du script
    • lines executed if we drag&drop the icon of an iWork document on the script's icon *)
    on open (sel)
    local theFile, ti
    set theFile to first item of sel
    tell application "System Events" to set ti to type identifier of theFile
    if ti is in permitted then my traiteFichier(theFile) (*
    if the dropped document is not a Pages or a Numbers one, exit. *)
    end open
    -- ==================
    on traiteFichier(theDoc) (*
    theDoc is an iWork's document *)
    set theDoc to theDoc as Unicode text
    tell application "System Events" to tell disk item theDoc
    set leNom to name (* document's name *)
    set nomExt to name extension (* document's name extension *)
    set liste to files (* the files stored in the document's package *)
    end tell
    set nomDossierDoc to (text 1 thru -(2 + (length of nomExt)) of leNom) & ":" (*
    the document's name minus the name extension *)
    tell application "System Events" to set myPath to (path to me) as Unicode text (*
    grab the script's pathname *)
    if myPath ends with "Script Editor.app:" then return (* The script can't be used from the Script Editor *)
    set DossierDoc to myPath & nomDossierDoc
    set DossierDocNew to DossierDoc & nouveau & ":"
    tell application "System Events"
    set dossierExiste to exists folder DossierDoc
    set newExiste to exists folder DossierDocNew
    end tell
    if (dossierExiste is true) and (newExiste is true) then (*
    the required folders are available *)
    set DossierDocOld to DossierDoc & ancien & ":"
    tell application "System Events"
    if not (exists folder DossierDocOld) then make new folder at end of folder DossierDoc with properties {name:ancien}
    end tell (*
    now we are sure that the folder DossierDocOld exists *)
    repeat with f in liste (*
    with every files stored in the documents's package *)
    set f to f as alias
    tell application "Finder" (*
    We must use Finder because at this time, System Events is unable to duplicate *)
    set nf to name of f
    if exists file (DossierDocNew & nf) then (*
    here we are sure that we have a replacement file *)
    try
    duplicate f to folder DossierDocOld with replacing (*
    stores a duplicate of the original file *)
    end try
    try
    duplicate file (DossierDocNew & nf) to (theDoc as alias) with replacing (*
    put the new file in the document's package *)
    end try
    end if -- exists file…
    end tell -- to Finder
    end repeat
    end if -- dossierExiste and newExiste
    end traiteFichier
    --[/SCRIPT]
    Yvan KOENIG (from FRANCE vendredi 28 mars 2008 19:51:15)

  • Help need for loading aligned images in JEditorpane

    Hi all,
    I need to align image with text using JEditorpane, If i load the html document with aligned image, there is no alignment for image in final display. So please suggest any ideas if u have on this topic. I am in great hurry.
    Thanks in advance,
    Nageswara Rao.V

    Hello,
    I'm also having the same problem, did anybody find any solution ?
    -sanjaymishra70

  • Image insertion in Database

    Case I:-
    int fileLength =(int)ft.length();
    PreparedStatement pstmt = con.prepareStatement("insert into image values(1,empty_blob()");
    pstmt.setString(1,"MyImage");
    pstmt.setBinaryStream(2,fis,fileLength);          
    int insertcount = pstmt.executeUpdate();
    if(insertcount == 1)
         System.out.println("Image inserted successfully");
              else
                   System.err.println("Some Error occured while writing the image to the database");
                   throw new SQLException("Some Error occured while writing the image to the database");
              try{
                   con.commit(); */
              }catch(Exception et){
              et.printStackTrace();     
              JOptionPane.showMessageDialog(null, "The Image and its record is saved ");
    Case II
         String str = "insert into image values(1,empty_blob())";
    Statement stmt = con.createStatement();
    stmt.executeQuery(str);
    str = "select * from image where id = 1" ;
    ResultSet rs = stmt.executeQuery(str) ;
    if (rs.next())
    oracle.sql.BLOB blob = (oracle.sql.BLOB)rs.getBlob("photo");
         File ft=new File(imageName);
         fis= new FileInputStream(ft);
         System.out.println("After Reading the file");
         OutputStream outstream = blob.getBinaryOutputStream();
                        byte buffer[] = new byte [100] ;
                        int length = - 1;
                        System.out.println("Before writing the file");
                        while ((length = instream.read(buffer)) != -1)
                        outstream.write(buffer, 0, length);
    Case I : The Exception occur as : TNS End Data Channel
    Case II: The insert take place but the value of Orablob is NULL
         If You have any Workable code for just inserting the image and reteriving it just send the code i will try it

    Hi,
    try something like that, it works for inserting. For getting image from database use the second select within changing of input and output streams.
    target = new File("Pictures\\" + tarName + ".jpg");
    String sqlCommand0 = new String("INSERT INTO T_PICTURES VALUES(?,sysdate,empty_blob())");
    String sqlCommand1 = new String("SELECT CODE, PICTURE FROM T_PICTURES WHERE code ='"+ tarName +"' FOR UPDATE");
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@pxedms:1521:cam1",user.getUsr(), user.getPass());
    conn.setAutoCommit(false);
    PreparedStatement pstmt = conn.prepareStatement(sqlCommand0);
    pstmt.setString(1, tarName);
    pstmt.execute();
    pstmt.close();
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery(sqlCommand1);
    while(rset.next()){
    FileInputStream inFile = new FileInputStream(source);
    FileOutputStream outFile = new FileOutputStream(target);
    int c;
    BLOB blobFile;
    OutputStream oraOut;
    blobFile = ((OracleResultSet)rset).getBLOB(2);
    oraOut = blobFile.getBinaryOutputStream();
    while((c = inFile.read()) != -1){
    outFile.write(c);
    oraOut.write(c);
    outFile.close();
    oraOut.close();
    stmt.close();
    rset.close();
    conn.commit();
    conn.setAutoCommit(true);
    conn.close();

  • Why does an image inserted goes outside the html structure

    I used the image insert command to place an image on my page in design view but when I looked at the image in code view, it was below the html structure. Yet when I move it in code view into the body section it disappears in design view. Any suggestion of what I'm doing wrong. This never happened before. No matter how many times I inserted the image it still places below the the closing html tag. The  extension is png.

    I suggest change your code manually by going into code view so that it looks like this:
    <body>
    <img src="/letters/letters.png" width="504" height="360" alt="towers" />
    </body>
    hth

  • "Merge to HDR" & "Align Images" will not work with 5000+ pixels

    Merge to hdr will work almost instantly for any size image as long as you dont use the "align Image" function. When used, it drastically slows down at about 4000 + pixel images then craps out completely at 5000 + pixels.
    I dont get it, worked just fine in CS2, now it doesnt work in CS4?
    merge to hdr is useless without the "align" function

    Hi,
    The Ps CS6 public beta version contains the same camera support as found in Ps CS5/5.5 compatible CR 6.6. There will be future updates to CR 7 for Ps CS6 to pick up more camera support. The Nikon D800 NEF files are not supported, yet.
    If you like to work with your D800 files in the public beta build now, you'll have to get the DNG Converter 6.7 from here: http://labs.adobe.com/technologies/cameraraw6-7/
    and convert your files to DNG.
    regards,
    steve

  • Please verify my account so i can post an image of my problem. Thanks. Adam.

    Please verify my account so i can post an image of my problem. Thanks. Adam.

    All future people who find this thread - Click the link below and look for the current verification thread as a sticky:
    https://social.technet.microsoft.com/Forums/en-US/home?forum=reportabug
    EDIT: Clarification - accounts will be automatically verified after 15
    points have been accumulated.
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

  • Single record insert performance problems

    Hi,
    we have on production environment a Java based application that makes aprox 40.000 single record Inserts per hour into a table.
    We ha traced the performance of this Insert and the medium time is 3ms, that is ok. Our Java architecture is based in Websphere Application Server and we access to Oracle 10g through a WAS datasource.
    But we have detected that 3 or 4 times a day, during aprox 30 seconds, the Java service is not able to make any insertion in that table. And suddenly it makes all the "queued inserts" in only 1 second. That "pause" in the insertion cause problems of navigation because is the top layer there is a web application.
    We are sure that is not a problem with the WAS or the Java code. We are sure that is a problem with the Oracle configuration, or some tunning action for this kind of applications that we don´t know. We first thought it could be a problem with a sequence field in the table. Also, a problem when occurs the change of the redo log. But we've checked it with our DBA and this is not the problem.
    Has anybody any idea of what could be the origin of this extrange behaviour?
    Thanks a lot in advance.
    Jose.

    There are a couple of things you'd need to look at to diagnose this - As Joe says it's not really a JDBC issue from what we know.
    I've seen issues with Oracle's automatic SGA resizing causing sporadic latency in OLTP systems. Another suspect would be log file sync wait events, which are associated with commits. Don't discount the impact of well meaning people using tools like TOAD to query the DB - they can sometimes cause more harm than good.
    Right now I'd suggest you run AWR at 10 minute intervals and compare reports from when you had your problem with a time when you didn't.

  • Image Insert Dialog with Navigation Bar?

    How come the Image Insert dialog now shows the

    No, that stuff wasn't there before.
    No, it isn't necessary.
    I guess is some sort of style sheet is begin applied that wasn't before.
    Take a look at this.
    When I first typed this message, my typing looked like this.  I went and posted and it all pretty much disappeared except for some blank lines.  A couple other times I've seen the overlapped lines of typing.
    (And the jumping of the box on Autosave is still occurring.)
    I think the last forum updates must have broken more than they fixed.
    Attachments:
    bad edit window.PNG ‏10 KB

  • Auto align images and save them individually

    Is there a way to let photoshop auto align images and then save them to separate .tiff files?
    Best regards

    File > Scripts > Export Layers to Files
    Don't forget to crop the auto aligned imaged so that all layers share the same outline.

  • Iphoto gives message "no images were selected" when hit print button.  Yet the the images are clearly selected in the print window.  I've printed hundreds of images without a problem before.  Iphoto 6.0.6, MAC 10.5.8

    Iphoto gives message "no images were selected" when hit print button.  Yet the the images are clearly selected in the print window.  I've printed hundreds of images without a problem before.  Iphoto 6.0.6, MAC 10.5.8, Suggestions?

    I have recently started having this problem in PSE8. The Adobe workaround
    did work, but I don't fancy having to re register each time I use it.
    What I have discovered is that it's nothing to do with the image metadata as it occurs before any image is opened.
    It SEEMS to only occur if you use file/open with to open an image in the editor - IE start PSE with that command.
    If you close elements down, and start it using programs/PSE/Elements (or your desktop shortcut) - the panorama feature magically works.
    Each time I've opened the editor 'automatically' using image/open with, it seems to create the problem.
    Hope this helps

  • Having problem aligning images in slideshow

    Thw slide show can be viewed here http://www.jimslounge.com/slideshow/bio.swf
    The images are added to a background MovieClip they are set to align in the center both horizontal and vertical.  They usually do but often they are a little off and sometimes they are way off.  Pics are added tha a Sprite called holder then holder is added to the background MovieClip holderBG the problem occures in the displaySlide function.  I've noticed the alignment problem seems to go away when I create a new instance of holder there but when I do that the memory usage steadly climes higher with each new slide.
             import com.greensock.*;
             import com.greensock.easing.*;
            import flash.display.*;
            import flash.utils.*;
            import flash.events.*;
            import flash.net.*;
            var myFont:Font2 = new Font2();
            var externalReq:URLRequest = new URLRequest("bio.txt");
            var externalLoad:URLLoader = new URLLoader();
            var myFormat:TextFormat = new TextFormat();
            var bars:Bars = new Bars();
            var n:int = 0;
            var intCurrentSlide:int;
            var req:URLRequest;
            var holder:Sprite = new Sprite();
            var holderBG:HolderBG = new HolderBG();
            var loader:Loader;
            var rand:int;
            var nxtNum:int;
            var picNum:String;
            var slideCount:int;
            var xmlLoader:URLLoader;   // slideshow xml loader
            var xmlSlideshow:XML;  // slideshow xml
            var strXMLPath:String = "bioPics-data.xml";
            var slideName:String;
    //        var history:Array = new Array();
             var duration:Number=.5;
            var prevSlide:String;
            var timeline:TimelineMax;
            addChild(holderBG);
            holderBG.x = stage.stageWidth / 2 - holderBG.width / 2;
            xmlLoader = new URLLoader();  
            xmlLoader.addEventListener(Event.COMPLETE, onXMLLoadComplete);
            xmlLoader.load(new URLRequest(strXMLPath));
    ///////////// text setup ////////////////////                                           
            myFormat.font = myFont.fontName;
            myFormat.size = 14;
            myFormat.leading = 2.5;
            bioText.setStyle("textFormat", myFormat);
            bioText.setStyle("embedFonts", true);
            bioText.textField.alpha=1;
            externalLoad.load(externalReq);
            externalLoad.addEventListener(Event.COMPLETE, textReady);
    /////////////text setup////////////////////////           
                createTimeline();
            function textReady(event:Event):void {
                bioText.htmlText = event.target.data;
            function onXMLLoadComplete(e:Event):void {
                 xmlLoader.removeEventListener(Event.COMPLETE, onXMLLoadComplete);
                 xmlSlideshow = new XML(e.target.data);     // create new xml with the received data
                 slideCount = xmlSlideshow..image.length();   // get total slide count
                loadSlide();
             function loadSlide():void {
    //            prevSlide=history[history.length-1];
                rand = Math.ceil(Math.random()* slideCount - 1); 
                 loader = new Loader();
                req = new URLRequest(xmlSlideshow..@src[rand]);
                 loader.contentLoaderInfo.addEventListener(Event.COMPLETE, displaySlide);
                 loader.load(req);
                slideName = xmlSlideshow..@src[rand].toString();
            function createTimeline():void {
            timeline =new TimelineMax({repeat:1,repeatDelay:5,yoyo:true,onComplete:loadSlide, paused:true});
            for (var count:int = 1; count <=10; count++) {
                var mc:MovieClip=bars["bar"+count];
                timeline.append(TweenMax.from(mc, duration, {x:"64", alpha:0, ease:Cubic.easeOut}), -.4);
            function displaySlide(e:Event = null):void {
                loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, displaySlide);
    //           holder = new Holder();  if I do this lose the alignment problem but gain a menory problem.
                if(holder.numChildren > 0){holder.removeChildAt(0);}
                holder.addChild(loader.content);
               // center the pic
                holder.x=holderBG.width/2 - holder.width/2;
                holder.y=holderBG.height/2 - holder.height/2;
                // make the mask position over the pic
                bars.x=holder.x;
                bars.y=holder.y;
                bars.cacheAsBitmap=true;
                holder.cacheAsBitmap=true;
                holder.mask=bars;
                bars.width = holder.width;
                bars.height = holder.height;
                holderBG.addChild(holder);
                holderBG.addChild(bars);
                timeline.restart();

    Aha... I haven't had my coffee either
    . That did it
    if (holderBG.holder)
                holderBG.removeChild(holder);
                holderBG.holder = null;
    It isn't perfect it sitll wonders around slightly like a drunk weaving on the road but only slightly he's only had a couple of beers and isn't likely to get pulled over which is an improvement.  I'll go with it.   Thanks!

Maybe you are looking for

  • How to analyze and evaluate Service Desk Tickets

    Hi folks, we are running SolMan 4.0 SP12 and I implemented Service Desk as well as ChaRM. For ChaRM I copied SDHF (Urgent Correction) to ZDHF (does not work properly right now, but I won't give up on that..). My question: how do I evaluate those proc

  • Unable to open PDF directly if user use Acrobat 8

    Unable to open PDF directly if user use Acrobat 8. We are facing some problems in our production site. When user click PDF icon, "FileDownload" windows pops up, but it only has "Save" or "Cancel" button, so user needs to download and save the file to

  • Calendar on ML stopped syncing with Exchange but...

    Hi Community, I use 5 Apple products: - iMac at work - iMac at home - MacBook at work for travel - iPhone - iPad (lucky me...) The iMac and MacBook at work stopped syncing my calendar entries. The iMac, iPhone and iPad do sync properly and show all m

  • Network Signal question- What does the "E" mean?

    I have an 8GB iPhone, with the prepaid account from AT&T- I notice that occasionally, I have a little emblem next to the phone carrier- it's a square with a capital E in it. What does that mean?

  • JMX Monitoring JARS

    Hi Guys, I am requesting for your help again . I am pretty new to this Oracle OSB and especially the scripting world. Could you please help me out on the below I am trying to make a JMX Connection to the server using the link/blog post below  and hav