Help with adding an icon in a JTextPane

Hy guys,
i have the following code:
Document doc = DisplayArea.getDocument();
String temp = s.substring(0, s.indexOf("Smile"));
         doc.insertString(doc.getLength(), temp , st);
         Style regular = chatArea.addStyle("regular", def);
         Style stl = chatArea.addStyle("icon", regular);
         StyleConstants.setIcon(stl, new ImageIcon("smile.gif"));
         doc.insertString(doc.getLength(), s , stl);
         temp = s.substring(s.indexOf("Smile")+1+"Smile".length(), s.length()) + "\n";
         doc.insertString(doc.getLength(), temp , st);The problme is that after it displays the image the second part of the text on the next line.
Is there any way to make it be all in one line with the image in the middle ?
Thx in advance

Sorry for this guys but i managed to solve it by looking in the forum
thx anyway for wanting to help

Similar Messages

  • Help with adding image onclick

    Hey everyone,
    I am making a simple game in AS3 and need help with adding an image once they have click on something.
    On the left of the screen are sentences and on the right an image of a form. When they click each sentence on the left, writing appears on the form. Its very simple. With this said, what I would like to do is once the user click one of the sentences on the left, I would like a checkmark image to appear over the sentence so they know they have already clicked on it.
    How would I go about adding this to my code?
    var fields:Array = new Array();
    one_btn.addEventListener(MouseEvent.CLICK, onClick1a);
    one_btn.buttonMode = true;
    function onClick1a(event:MouseEvent):void
        fields.push(new one_form());
        fields[fields.length-1].x = 141;
        fields[fields.length-1].y = -85;
        this.addChild(fields[fields.length-1]);   
        one_btn.removeEventListener(MouseEvent.CLICK, onClick1a);
        one_btn.buttonMode = false;
        //gotoAndStop("one")
    two_btn.addEventListener(MouseEvent.CLICK, onClick2a);
    two_btn.buttonMode = true;
    function onClick2a(event:MouseEvent):void
        fields.push(new two_form());
        fields[fields.length-1].x = 343.25;
        fields[fields.length-1].y = -85;
        this.addChild(fields[fields.length-1]);
        two_btn.removeEventListener(MouseEvent.CLICK, onClick2a);
        two_btn.buttonMode = false;
        //gotoAndStop("two")

    I don't know where you're positioning the button that should enable/disable the checkbox but for "one_btn" let's just say it's at position: x=100, y=200. Say you'd want the checkbox to be to the left of it, so the checkbox would be displayed at: x=50, y=200. Also say you have a checkbox graphic in your library, exported for actionscript with the name "CheckBoxGraphic".
    Using your code with some sprinkles:
    // I'd turn this into a sprite but we'll use the default, MovieClip
    var _checkBox:MovieClip = new CheckBoxGraphic();
    // add to display list but hide
    _checkBox.visible = false;
    // just for optimization
    _checkBox.mouseEnabled = false;
    _checkBox.cacheAsBitmap = true;
    // adding it early so make sure the forms loaded don't overlap the
    // checkbox or it will cover it, otherwise swapping of depths is needed
    addChild(_checkBox);
    // I'll use a flag (a reference for this) to know what button is currently pushed
    var _currentButton:Object;
    one_btn.addEventListener(MouseEvent.CLICK, onClick1a);
    one_btn.buttonMode = true;
    function onClick1a(event:MouseEvent):void
         // Check if this button is currently the pressed button
         if (_currentButton == one_btn)
              // disable checkbox, remove form
              _checkBox.visible = false;
              // form should be last added to fields array, remove
              removeChild(fields[fields.length - 1]);
              fields.pop();
              // clear any reference to this button
              _currentButton = null;
         else
              // enable checkbox
              _checkBox.visible = true;
              _checkBox.x = 50;
              _checkBox.y = 200;
              // add form
              fields.push(new one_form());
              fields[fields.length-1].x = 141;
              fields[fields.length-1].y = -85;
              this.addChild(fields[fields.length-1]);
              // save this button as last clicked
              _currentButton = one_btn;
         // not sure what this is
        //gotoAndStop("one")
    I'd also centralize all the click handlers into a single handler and use the buttons name to branch on what to do, but that's a different discussion. Just see if this makes sense to you.
    The jist is a graphic of a checkbox that is a MovieClip symbol in your library exported to actionscript with the class name CheckBoxGraphic() is created and added to the display list.
    I made a variable that points itself to the last clicked button, when the "on" state is desired. If I detect the last clicked button was this button, I remove the form I added and the checkbox. If the last clicked button is not this button, I enable and position the checkbox as well as add the form.
    What is left to do is handle the sitation where multiple buttons are on the screen. When a new button is pushed it should remove anything the previous button added. This code simply demonstrates clicking the same button multiple times to toggle it "on and off".

  • Help with adding a hyperlink to a button?

    We have a simple little site we built in Catalyst and everything works great. The only problem is that we cannot figure out how to add a hyperlink to one of the buttons in the animation. We simply want to be able to click on the button and go to another site (the client's Facebook page specifically). Can anyone provide some insight? Thanks!

    The message you sent requires that you verify that you
    are a real live human being and not a spam source.
    To complete this verification, simply reply to this message and leave
    the subject line intact.
    The headers of the message sent from your address are shown below:
    From [email protected] Tue Nov 03 19:08:07 2009
    Received: from mail.sgaur.hosted.jivesoftware.com (209.46.39.252:45105)
    by host.pdgcreative.com with esmtp (Exim 4.69)
    (envelope-from <[email protected]>)
    id 1N5TPy-0001Sp-J1
    for [email protected]; Tue, 03 Nov 2009 19:08:07 -0500
    Received: from sgaurwa43p (unknown 10.137.24.44)
         by mail.sgaur.hosted.jivesoftware.com (Postfix) with ESMTP id 946C5E3018D
         for <[email protected]>; Tue,  3 Nov 2009 17:08:03 -0700 (MST)
    Date: Tue, 03 Nov 2009 17:07:49 -0700
    From: Tvoliter <[email protected]>
    Reply-To: [email protected]
    To: Matthew Pendergraff <[email protected]>
    Message-ID: <299830586.358941257293283616.JavaMail.jive@sgaurwa43p>
    Subject: Help with adding a hyperlink to a button?
    MIME-Version: 1.0
    Content-Type: multipart/mixed;
         boundary="----=_Part_36702_1132901390.1257293269030"
    Content-Disposition: inline
    X-Spam-Status: No, score=-3.4
    X-Spam-Score: -33
    X-Spam-Bar: ---
    X-Spam-Flag: NO

  • Need help with adding emoji to my hubby's phone don't see it when I click on the keyboard tab

    I need help with adding emoji to my hubby's iPhone when I go to settings then the keyboard tab it's not there

    I did that bad it's not there and doesn't give me to option to click on it

  • [CS3 JS] Help with adding textMacros

    I can get a textMacro added with the following.
    app.textMacros.add("myName", "this is some text")
    What I am having trouble with is having the Remember Text Attributes be grabed or set to true.
    Any one know what the syntax is for setting this during the add()
    also how do you insert a macro via a javascript?
    Mahalo
    David

    These forums are pointless. Adobe must believe that other users will cut the mustard. Absolutely a waste of effort for everyone. Adobe should PAY at least a junior developer involved in the projects to monitor and help with these posts. FLEX rules yeah and thousands more do scripting than develop plug ins...
    Come on Adobe, step up your better than this. Customer Service can be free to the customers ... we are not talking about GET IT ALL FREE, talking about buy it and create a community and support it, but then again LAYERS and INDESIGN SECRETS have people who actually want to help users rather than rabbit hole everything.
    Please join hands and SING...

  • Help With Adding Back Up of Songs & Lists on Re-Installed iTunes v 7.0.2

    I have a portable hard drive with a back up of my 10,000 songs. I have to get my Gateway PC laptop serviced as it continues to crash, and so I will need to re-install iTunes v 7.0.2 and then add back my songs from the portable hard drive.
    I need help with a couple of questions:
    1) Is there a quicker way to add the songs back on to iTunes rather than adding individual files (for songs) and individual folders (for albums)?
    2) I have several song lists (some used to make CD's). How can these lists be backed up as well so that I do not have to re-create these lists?
    Any advice very much appreciated.

    There is a good article on backup here:
    http://discussions.apple.com/thread.jspa?messageID=1522195&#1522195
    If all your music is in the iTunes Music folder and you have room, just copy the iTunes folder to your external drive.
    This will include both your music files and the iTunes library files.
    If you music is stored in other places, you need to backup those too. When you restore you need to ensure the full path name is the same.
    Life is also much easier if you can keep exactly the same account name if you reinsall windows as the account name is part of the path to My Documents.

  • Archive applet. Help with adding files to archive, then show.

    I need help with this applet: http://pastebin.com/589064
    The user is supposed to add, remove and open archives with text in it.
    My problem is now the highlited area in the code (the lines with the @@'s).
    This button should list all files i have added to the archive, however when i press the button, i only get a numberlisting. eg, if i have added 4 files to the archive I get: 0123
    However I want the Joptionpane to show a listing of the files in the archive.
    When I press "open" i can choose a file, press add, then open a new file, press add, and then when i click show archive, the filenames of the two files i added, should list through a Joptionpane..as you can see, i've tried, but i'm very unfamiliar with this.

    OK..i've done it
    check out http://pastebin.com/589268
    however, now i'd like to change the code, so that if i try to add to files with the same filename, the applet should show an error message..
    How do i do that, please? :-)

  • Need help with adding images option

    I was using the add images option a few weeks ago just fine.. using my tablet and uploading the images via usb. then all of the sudden it stopped working.
    please help with this issue.
    Danny

    A few questions. What result are you experiencing? Did PS Touch crash? Have you tried to force quit-and restart PS Touch? -Guido

  • Help with adding new song to 2007 iPod shuffle

    I have an iPod shuffle from 2007 and just recently went to add new songs to it.  Itunes program keeps telling me I have to erase everything and reload w/ new playlist I've added??  Confused, don't remember it working like this last year when I added songs.  Any help??

    With the 1st and 2nd gen iPod shuffle, it can only be associated with one iTunes library at a time.  That has always been the design.  It is basically like a mobile playlist for iTunes the library.  The 3rd and 4th gen shuffles work more like the "bigger" iPods that have a screen, which is different from the very simple 1st and 2nd gen.
    If you previously used this shuffle with a different iTunes library, iTunes is asking if you want to associate the shuffle with the iTunes library you are now using.
    Any help??
    What do you want to do...?

  • Need help with adding a Key flex field to a seeded OAF page

    We have a seeded OAF page on which we already have Account Key Flex Field.
    Properties of this flex field are:
    The ApplShortName - SQLGL
    Name - GL#
    Type - Key
    As per the client requirement, in the KFF screen, we have disabled the seeded structure for Accounting Flexfield and created a custom structure.
    Our custom structure for the KFF is displayed correctly on the OAF page.
    But now the requirement is to add a new KFF on the OAF page which is duplicate of the existing KFF, along with the existing KFF field; the structure and segments are same. Only difference being the display name of the existing KFF field is Account; the new one needs to be Tax structure.
    Using personalization we added a new flex item and added the properties same as the existing KFF.
    ApplShortName - SQLGL
    Name - GL#
    Type - Key
    But the page is giving following error:
    The data that defines the flexfield on this field may be inconsistent. Inform your system administrator that the function: KeyFlexfieldDefinitionFactory.getStructureNumber could not find the structure definition for the flexfield specified by Application = SQLGL, Code = GL# and Structure number =
    We tried options like compiling the flexfield definition, but the error persists.
    Any help in this regard is highly appreciated.
    Regards,
    Kiranmayi.

    Hi,
    Please check whether your key flex structure is frozen or not. If now please freeze it and re compile and try.
    This may helps too
    error while developing KFF in oaf
    Thanks
    Bharat
    Edited by: Bharat on May 10, 2013 4:51 AM

  • Help with adding text please.

    Hi- Im new to the forum and even newer to Dreamweaver.
    Ive just started putting a site together using a youtube
    tutorial which has gone really well. Ive designed my layout in
    photoshop, then put it into imageready to edit/slice, saved as
    html- then opened with dreamweaver. I found it easy this way, and
    rollovers can be made within the html file in image ready.
    Anyway- heres where the problems started- Im trying to add
    text over on image. The tutorial I went off said to cut the image
    from the Src then paste it into the Bg field so that you can type
    over it- but it goes nuts! When you enter at the end of text lines
    the image begins to repeat itself underneath and white blocks show
    up at the side of the image!?
    Is there a way to just easily type over on image- i tried
    doing this in image ready which works, but saves the text as an
    image, but I want the text the be recognised by google- Im
    confused- please help.
    I was reading about tables and adding the image as a table
    background- but positioning the table in the correct place is
    confusing too- told you i was a newbie!
    Thanks in advance for any help!
    Claire

    Universal wisdom, except of course, at this NG. :-)
    Walt
    "Nancy O" <[email protected]> wrote in message
    news:[email protected]...
    > At YouTube, you get what you pay for. ;-)
    >
    > --Nancy O.
    > Alt-Web Design & Publishing
    > www.alt-web.com
    >
    >
    > "Walt F. Schaefer" <[email protected]> wrote
    in message
    > news:[email protected]...
    >> I confess I've never been to YouTube but I don't
    think it would be my
    > first
    >> choice for DW tuts.
    >>
    >> --
    >>
    >> Walt
    >>
    >>
    >> "Nancy O" <[email protected]> wrote in
    message
    >> news:[email protected]...
    >> > Walt is 100% correct. Image Ready code - yuck!
    >> >
    >> > To give you a basic idea of how to work with
    image slices in DW, have a
    >> > look
    >> > at this page:
    >> >
    http://alt-web.com/Image-slices-in-a-CSS-based-layout.html
    >> >
    >> > Also this: Taking a Fireworks (or Pshop) comp
    to a CSS based layout in
    > DW
    >> >
    >
    http://www.adobe.com/devnet/fireworks/articles/web_standards_layouts_pt1.html
    >> >
    >> > If none of this makes any sense to you, start
    here:
    >> > www.w3schools.com
    >> >
    >> >
    >> > --Nancy O.
    >> > Alt-Web Design & Publishing
    >> > www.alt-web.com
    >> >
    >> >
    >> > "claire 83"
    <[email protected]> wrote in message
    >> > news:[email protected]...
    >> >> Hi- Im new to the forum and even newer to
    Dreamweaver.
    >> >> Ive just started putting a site together
    using a youtube tutorial
    > which
    >> > has
    >> >> gone really well. Ive designed my layout in
    photoshop, then put it
    >> >> into
    >> >> imageready to edit/slice, saved as html-
    then opened with dreamweaver.
    > I
    >> > found
    >> >> it easy this way, and rollovers can be made
    within the html file in
    > image
    >> > ready.
    >> >> Anyway- heres where the problems started-
    Im trying to add text over
    > on
    >> > image.
    >> >> The tutorial I went off said to cut the
    image from the Src then paste
    > it
    >> > into
    >> >> the Bg field so that you can type over it-
    but it goes nuts! When you
    >> > enter at
    >> >> the end of text lines the image begins to
    repeat itself underneath and
    >> > white
    >> >> blocks show up at the side of the image!?
    >> >> Is there a way to just easily type over on
    image- i tried doing this
    > in
    >> > image
    >> >> ready which works, but saves the text as an
    image, but I want the text
    >> >> the
    >> > be
    >> >> recognised by google- Im confused- please
    help.
    >> >> I was reading about tables and adding the
    image as a table
    >> >> background-
    >> > but
    >> >> positioning the table in the correct place
    is confusing too- told you
    >> >> i
    >> > was a
    >> >> newbie!
    >> >> Thanks in advance for any help!
    >> >> Claire
    >> >>
    >> >
    >> >
    >>
    >>
    >
    >

  • Need help with adding formatted text and images to Crystal Report?

    Here's my scenario:
    I have a customer statement that's generated as a crystal report and that has a placeholder for advertisement. The advertisement is mixture of formatted text and images. Until now we only had one advertisement that was always used on the report. The new requirement is that we would have a pool of hundreds of advertisements and would need to display one specific advertisement on the customer statement based on various marketing criteria. They key is that the advertisement content will be determined programmatically and cannot be hardcoded into the report. I'm using Crystal2008 with .net SDK.
    Here are the solutions I thought of, but I'm still rather lost and would appreciate your help/opinion.
    1) Pass HTML or RTF to the report
    Not really sure if this is possible and how to get it done. Also how would I pass in images? Would display formatting be reliable when exporting to PDF?
    2) Create each add as a subreport and append it programatically
    I actually have this working, but I only know how to append a new section to the end of the report and then load the subreport to the section. I have no other controll of the placement. Is there a way to dynamically load a subreport to a predefined section in the main report? How about adding a dummy subreport in the main report as a placeholder and then replacing it with a different subreport? How could I do this?
    3) Pass an Image to the report
    I would create each advertisement as an image and then would somehow add the image to the report. How would I load the image and control the placement? Could I somehow define a placeholder for the image in the main report-maybe a dummy image to be replaced?
    Thank you.

    Hello Pavel,
    I would got the third way.
    You can use dynamic images in your report.
    Just by changing the URL to the image the image can be changed.
    Please see the [Crystal Manual|http://help.sap.com/businessobject/product_guides/cr2008/en/xir3_cr_usergde_en.pdf] and search for images.
    or directly here
    [Setting a Dynamic Graphic Location Path on an Image Object|https://boc.sdn.sap.com/node/506]
    [Dynamic image and HTTP://|https://boc.sdn.sap.com/node/3646]
    [codesample for .NET|https://boc.sdn.sap.com/node/6000]
    Please also use
    [Crystal Reports 2008 SDK Documentation and Sample Code|https://boc.sdn.sap.com/developer/library/CR2008SDK]
    [Crystal Reports 2008 .NET SDK Tutorial Samples|https://boc.sdn.sap.com/node/6203]
    Hope this helps
    Falk

  • Please help with newline non-printing character in JTextPane.

    Hi.
    I need to implement "View non-printing characters" feature in my JTextPane.
    So when this feature is toggled, the newline character is displayed at the end of every line like in Microsot Word editor.
    I been digging around for few hours now and I cant find a solution for this.
    Please help me with any tips guys.

    StanislavL:
    ok i digged around and i found code example... i got my code to show "X" at the end of every line as a newline character. here is code I used:
    import javax.swing.text.StyledEditorKit;
    import javax.swing.text.ViewFactory;
    import javax.swing.text.Element;
    import javax.swing.text.View;
    import javax.swing.text.AbstractDocument;
    import javax.swing.text.LabelView;
    import javax.swing.text.IconView;
    import javax.swing.text.StyleConstants;
    import javax.swing.text.ComponentView;
    import javax.swing.text.BoxView;
    import java.awt.Graphics;
    import java.awt.Shape;
    import java.awt.Rectangle;
    class MyEditorKit extends StyledEditorKit
         public ViewFactory getViewFactory()
              return new MyRTFViewFactory();
    class MyRTFViewFactory implements ViewFactory
         public View create(Element elem)
              String kind = elem.getName();
              if (kind != null)
                   if (kind.equals(AbstractDocument.ContentElementName)) {
              return new LabelView(elem);
                   } else if (kind.equals(AbstractDocument.ParagraphElementName)) {
    //              return new ParagraphView(elem);
                        return new MyParagraphView(elem);
                   } else if (kind.equals(AbstractDocument.SectionElementName)) {
    //              return new BoxView(elem, View.Y_AXIS);
                        return new MySectionView(elem, View.Y_AXIS);
                   } else if (kind.equals(StyleConstants.ComponentElementName)) {
                        return new ComponentView(elem);
                   } else if (kind.equals(StyleConstants.IconElementName)) {
                        return new IconView(elem);
                   // default to text display
                   return new LabelView(elem);
    class MySectionView extends BoxView {
         public MySectionView(Element e, int axis)
              super(e,axis);
         public void paintChild(Graphics g,Rectangle r,int n) {
              if (n>0) {
                   MyParagraphView child=(MyParagraphView)this.getView(n-1);
                   int shift=child.shift+child.childCount;
                   MyParagraphView current=(MyParagraphView)this.getView(n);
                   current.shift=shift;
              super.paintChild(g,r,n);
    class MyParagraphView extends javax.swing.text.ParagraphView
         public int childCount;
         public int shift=0;
         public MyParagraphView(Element e)
              super(e);
              short top=0;
              short left=20;
              short bottom=0;
              short right=0;
              this.setInsets(top,left,bottom,right);
         public void paint(Graphics g, Shape a)
              childCount=this.getViewCount();
              super.paint (g,a);
              int rowCountInThisParagraph=this.getViewCount(); //<----- YOU HAVE REAL ROW COUNT FOR ONE PARAGRAPH}
              System.err.println(rowCountInThisParagraph);
         public void paintChild(Graphics g,Rectangle r,int n) {
              super.paintChild(g,r,n);
              //g.drawString(Integer.toString(shift+n+1),r.x-20,r.y+r.height-3); // line number
              g.drawString("X",r.x+r.width,r.y+r.height-3);
    }this line here draws "X":
    g.drawString("X",r.x+r.width,r.y+r.height-3);How would I modify this to draw a small picture there?
    Thanx a lot.

  • Help with disabling close icon of last opened tab in JTabbedPane

    Hello
    Would someone help me out ? I have 3 tabs opened in a JTabbedPane, each with close icon "X". I am looking for a way to tell my program: if the user closes 2 tabs and only 1 remain, disable the close icon "X" of the last opened tab so that the user is unable to close the last tab. I have searched the forum, most I have run into are how to create the close icon. Would someone give me some insight into how to go about doing this? or if you have come across a forum that discusses this, do please post the link. Also, I am using java 1.6.
    Thanks very much in advance

    On each close, look how many tabs are remaining open in the JTabbedPane (getTabCount).
    If there is only one left, set its close button to invisible. Something like this:
    if (pane.getTabCount() == 1) {
        TabCloseButton tcb = (TabCloseButton) pane.getTabComponentAt(0);
        tcb.getBtClose().setVisible(false);
    }

  • I need help with adding fire to an existing picture in elements 8

    I'm a painting contractor and I'm trying to create a new picture for my buisness cards and tee shirts. What I want to do is put flames coming from a brush and work pot that I'm holding in my hands. I've looked everywhere on line, but I can't find exactly what I want. I'm hoping that someone in this forum will be able to help me. Thanks.

    Okay, I have been playing with for a few days. Warning, this is going to be loooong. I do this differently in Photoshop but couldn't get it to work with the elements workset as it doesn't have the curves tool that Photoshop has so I had to find an alternate method to pump up the flames. Luckily, I ran into a video that used a method other than curves to get me on track. I assumed you want realistic flames...so I was pushing for how real could I make flames using paint and blend mode operations.
    Edit: I should let you know that you can try to extract flames from other photos and composite them into your photo. First, need a good fire image. It works best if you can find a fire with a black background. Screen blend mode will drop out black. Try working with two copies of the image. Turn off the topmost copy of the flames. Leave the bottom flames in Normal blend mode. Mask or erase the outer edges of the flames with a soft brush so that only the interior of the flames are visible. Now, turn on the topmost version of the flames. Leave the topmost version of the intact...don't mask or erase anything. Change this topmost flame layer's blend mode to screen blend mode. If you see any problems with your flames, you can erase or mask any defects. You can duplicate the screen layer to brighten the effect. Use opacity to control the volume. This would be the easiest solution but you'll have to find some flames that trip your fancy. I haven't tried this out yet so can't say how much better or worse it would be than using a good set of flame brushes along with some blend mode tricks.
    Below shows how close I can get using paint. I only used options available in PSE. I used layer masks that if you had PSE 9 would be native. Since you have PSE 8, you'll need to either download an install an add on that adds the basic layer mask function or use clipping masking.
    Below is a link to a freeware set that includes layer masks. Install instructions are on that site.
    http://www.cavesofice.org/~grant/Challenge/Tools/Files.html
    If you want to go the clipping mask route, have a look at this tutorial:
    http://www.photokaboom.com/photography/learn/Photoshop_Elements/layers/layer_groups_clippi ng_masks/1_layer_groups_clipping_masks.htm
    Before and After the effect.
    I would have posted sooner but had to find a workable solution to making the flames look realistic in Elements as I can’t use the curves tool as it isn’t native to Elements.
    With the help of this YouTube video I came up with something…
    http://www.youtube.com/watch?v=cOIBkWvHOqk&feature=related
    I based this tutorial on the hue/sat numbers, blend modes, and blurs.
    First, I downloaded a flame brush set. This set in specific:
    http://luexo.deviantart.com/art/Scorching-Flames-Brushpack-92945924
    The above set is really nicely done and  has large high resolution brushes.
    One thing I do not agree with in the video is the color used. White is hard to change in the Hue/Saturation dialog. Instead I use 50% gray as my paint color. This is easy to set…either use the 50% color swatch or open the Color Picker and set H to 0, S to 0, and B to 50...hex number is 808080.
    Things to keep in mind include fire is gaseous, bright and the way it burns…it one direction, fire reflects and there is probably going to be some smoke.
    In my example, I am going to set a  lunch cake. Nice 4th of July theme. J
    Let’s start my scorching the item that will be burned. In this case the lunch cake will be scorched.
    Scorch the item…preparing to light it up.
    1. Duplicate image and put image into Linear burn blend mode; opacity 100%. Add layer mask or erase everything but the item to be scorched…the lunch cake.
    2. Duplicate layer you just made in step #1. Change the blend mode to Multiply 100%. Desaturate this layer.  Image Adjustments<Hue/Saturation…move Master Saturation slider to  -100. Take burn tool set to Range: Midtones; Exposure 35%; air brush on…and scorch the item. Make it kind of smudgy. You don’t want an even coat. Make it darker as you get closer to the flames.
    Note: Here I’ve jumped ahead. I already know where my flames are going to be. Either visualize where you want your flames or jump ahead and laid down the basic paint and transform into the correct position. Turn off flame layer (s) when done. So step #3 if you do any repair work isn’t affected.
    3. If you feel you need to do any clone repairs, create a composite image ctrl + shift + alt + e if on PC…cmd + shift + opt + e if on a Mac. Do the clone work on a blank layer over this. With clone tool selected, check the box in the options bar that says something like “All Layers”, “Use All Layers”, “Sample All Layers”…the box says one of those things beside it. I can’t recall which and not sure if it’s consistent between all versions of Elements.  Anyway, Leave layer in Normal blend mode 100% and likewise leave tool in Normal blend mode…opacity to taste. Fix any defects on this layer. You can do the same thing with the healing brush if you need to do any healing. I find it best to heal to a separate layer and not mix and match the healing tool and  clone stamp on the same layer.
    4. Turn off or trash the Clone Stamp comp layer when finished with step #3.
    Let’s Build a Fire…
    5. Create a blank layer in the layers palette….Normal blend mode; 100% opacity.  Make white your foreground color chip.  Grab the paint brush tool…normal blend mode; 100% opacity. Paint one flame on your layer. I have used the 1220 sized flame near the bottom of the brush set I linked earlier. Use the transform command …Ctrl + t (PC) or Cmd + t (Mac)…to size and position the flame. I used  also slightly warped the flame using transform warp. Since you don’t have that in Elements…slightly warp the flame in the liquefy dialog.
    Note: The above flame is pretty much backlighting…you are done with it.
    6. Change the color foreground color chip in your layers palette to 50% gray. Use the same brush tip you used in step #5. Size and position it so it closely matches the white flame in Step #5. Go to liquefy dialog and slightly warp it.
    Note: The goal is for the flames in step #5 and step #6 to be very similar but not exact.
    7.. Duplicate the 50% gray flame you made in step #6 twice. Turn off the top 50% gray flame for now.
    Fire is Bright...
    8. Now that video comes in that I linked.
    (1) Blur the 50% gray flame with Gaussian blur. I used 6 pixels. Go to menu and click Enhance or is it Adjustments<Hue/Saturation…check the box that says “colorize”; change master sliders to Hue 42; Saturation 100; Lightness 0.
    (2)Duplicate the flame you made above…step  (1). Go to the menu bar and click Enhance or is it Adjustment<Hue/Saturation…change master sliders to Hue -43; saturation 0; Lightness 0. Change this layers blend mode to Color Dodge blend mode and merge down…Ctrl + e on PC; cmd + e on Mac.
    Note: This layer will now say Normal blend mode; 100%.
    (3)I duplicated the merged layer I now have from step (2). I changed the blend mode of this layer to Screen and set the opacity to 100%.
    (4) I made a duplicate of the layer I have made in step (2)…the one that now says it’s in Normal blend mode; 100%… then blurred it with Gaussian blur. I used 46 pixels. I moved this layer down in my layers palette so that it rests beneath my other two colored flame layers. The white flame layer is directly below it. Leave this layer in Normal blend mode; 100% opacity.
    9. Go back to 50% gray flame you made in step #6...visibility eye should be off. You should have two of these gray layers if not duplicate one so that you do have tow 50% gray flame layers. (These were not blurred.)  These two layers need to be on the top of the stack. If they are not, move them up so that they are the top two layers. Turn on the visibility of the bottom 50% gray layer. Change the layer’s blend mode to Screen blend mode; opacity 100%. Grab the burn tool. Burn some of the flame base and randomly in the flame of the 50% gray.  Press and hold in the alt key (PC) or the opt key (Mac) and dodge the tops of the flames and do some random dodge work.
    10. Turn on the visibility for the top 50% gray layer. Leave this one alone…no dodge + burn. Set this layer to Screen blend mode; opacity 96%.
    11. Add layer masks to white and color flame layers…not the gray ones. Paint away any unattractive color spill. Bright orange edges…bright white distractions where flame edges don’t align.
    12. Make a composite layer of all layers up to date. Set this layer’s blend mode to multiply; opacity 47%. Add a layer mask and mask out everything but the flames. Tip: You can select the flames by ctrl + shift clicking on each flame layer thumbnail…the shift lets you add to a selection. On the Mac, cmd + shift click the layer thumbnails.
    Flames Reflect…
    13. Make a copy of one of your blurred color flames. Transform it so it rest over item that it should reflect on. In this case I have added a blurred flame onto my son’s eye. The flame is in Overlay blend mode; 33% opacity.
    14 Several steps Eye enhancements to my son’s eye…omitted because it’s off topic
    15. I used a gradient map with a fire like black/red/yellow/white gradient map set to Softlight blend mode; 17% to give my image a hint of a color cast. I masked it so only some skin, hair, and car areas have this slight color cast.
    Where there’s fire there is going to be some smoke...
    16. To make my smoke, I made a separate large document my photo size. I set my color chips to the default b/w. (Shortcut is D.) I went to menu bar and clicked Filter<Render<Clouds. Next I went back to my menu bar and clicked Filter<Render<Difference Clouds. I used Ctrl + f to repeat the Difference Cloud filter until I was happy with the effect…looking for swirled black lines…kind of like lightning. (If on a Mac, use Cmd + f to repeat a filter. I then used the transform command to enlarge the pattern I made. Be sure to scale it so that height and width both are enlarged equally. Next, go to the men bar and select<All ; Edit<Crop. You want to do to get rid of the excess. I think I transformed my patter to something like 200% which makes the file really big. You can do it on your image file but because of file size the transform will take a really long time. When happy copy/paste or drag/drop this pattern into your photo file.
    17. Now blur pattern really good using Gaussian blur. Now, add a layer mask to your pattern layer. Click the layer mask in the layers palette to target it and run the the clouds and difference clouds on the mask just as you do on the pattern layer. Just those filters…no blur.
    Basic smoke pattern final
    18. Duplicate this layer w mask twice. You should have three smoke copies. Turn off all but the bottom pattern copy. Use the paint brush and paint black in mask to hide the smoke everywhere but where you want to keep it. Set this layer’s blend mode to Multiply blend mode; opacity 15%.
    View of the inside one of the smoke layer masks
    19. Turn on the visibility of the next smoke pattern. Again use a black paint to paint where you don’t want paint. (Make this variable as you want the smoke to be varying opacity.)  Layer blend mode Multiply; opacity 15%.
    20. Turn on the visibility of the next smoke pattern…top one in stack. Again use black to paint where you don’t want the smoke. Set this layer’s blend mode to Multiply blend mode; opacity 1%.
    Fire is Gaseous...
    21. Make a composite of all layers by pressing ctrl + shift + alt + e if on PC. Use Cmd + shift + opt + e if on a Mac. Blur your composite image. I used 3 pixels. Set the blend mode to Normal; opacity 64%. Add a layer mask and fill it with black paint to hide the blur effect. Use the paint brush with white paint in the layer mask to blur any sharp edges and base of flames. Remember flame is gaseous.
    Above shows my layers for completed image. Notice the comp for clone layer is off. I did not need it after I did the clone to a blank layer to add some scorched cake around my son's fingers.

Maybe you are looking for

  • How to display the out put of the sql query in a text file using forms

    I want to display the out put of the sql query in a text file using forms 6.0.Same could be done using spool command in sqlplus but i want it using forms....Fiaz

  • Installing Essbase on Windows Server 2003 64bit

    Hi, A few weeks back, I ran into trouble with Essbase on my Windows 7 64 bit machine. Somone suggested I try installing on Windows Server 2003 which I am trying to do. Is there a reason why nothing happens when I double click the Installtool.cmd icon

  • Basic Producer/Consumer loops for a newbie

    Labview neewbie here. I was looking at Producer Consumer loops. Can anybody give me a very basic explanation of how to set one up. I want to take readings from a HP 53131A counter and store them in an excel spreadsheet. I understand the part about la

  • Java Embedded Database Recommendation

    Does anyone have a recommendation for a Java embedded database solution? I have been using Borland's JDatastore for a while and I have become frustrated by some of its' bugs. Has anyone had a better experience with some of the other Java embedded dat

  • Fluid Grid and IE7/8?

    I'm using Dreamweaver CC with a one page fluid grid design (www.stratum-group.ca/index_fix.html). It checks out everywhere except with a client who is getting some weird behaviour. In trying to replicate the effect, it seems like the problem is eithe