Font color issue with inserted HTML content in JTextPane (HTMLEditor)

Hi everyone,
I have a very serious issue with the HTMLEditor I'm developping. This editor is a little bit special since it is intended to edit blocks of HTML content that are loaded when the editor is initialized.
You can in fact decide to keep this loaded HTML content or start a new HTML document from scratch. Alright, now my issue is the following :
When text is loaded, it's properly rendered. I have a functionality which let's you see the HTML code from the HTML document used in the editor, so I can check and see if code is correct, and yes, it's correct.
The problem is that when I try to change the color attribute of some text on my loaded content, nothing happens ! I don't know what's the matter with this bug, I only have it with the color attribute, with every other attribute everything's fine (font, size, etc.)
The funny thing is that, after I change another attribute for loaded content, like font family, then changing color attribute funcionnality starts to work again !
I've also noticed that I don't have any of these problems when I start my HTMLDocument from scratch (when I create a new HTML document and start typing text).
Another weird thing, is that I have a feed-back feature in my editor which reflects attributes for text over which the caret is positionned. For example, if you put caret over red text, the color combo box displays a red value, you know, just like in MS Word. Well, with my loaded content if I have a red text color and I decide to put it in green, the color combo box displays the green value when I click over text for which I have changed color, but in my JTextPane it's still red !! And when I try to see the HTML code generated nothing has changed, everything is still red !
There is something really strange here, this means that when I get the attributes of the loaded text from the HTMLDocument, color appears to be green, but when it gets rendered in the JTextPane it's still red and when it gets anlyzed to produce the corresponding HTML code, these changed attributes are not taken into account.
But the most weird thing above all, is that I don't have this bug everytime, sometimes I start my HTML editor applet and it works fine, and some other times this color issue is bakc there. Is this a known bug for Swing API or not ?
=============
This is more or less my technique :
//I declare a global reference to my HTMLDocument
HTMLDocument _docHTMLDoc;
//Create a JTextPane
JTextPane _tpaEditor = new JTextPane( );
//Set type content to automatically select HTMLEditorKit
_tpaEditor.setContentType("text/html");
//Get a referene to its HTMLEditorKit
HTMLEditorKit _kitHTMLEditor = (HTMLEditorKit) _tpaEditor.getEditorKit( );
//I then have a function to create new documents
void newDocument(){
  _docHTMLDoc = (HTMLDocument) _kitHTMLEditor.createDefaultDocument();
  _tpaEditor.setDocument(_docHTMLDoc);
   //I do other stuff wich are not important to be shown here
//I then have another function to load content
void loadContent(){
   //I get content from a HashMap I initialized when I started my applet
   String strContent = (String)_mapInitParameters.get("html_content");
   //I set content for my editor
   _tpaEditor.setText(strContent);
//Notice.. I have tried many other ways to load this text : via HTMLEditorKit and its insertHTML method, I
//have also tried to store this content in some reader and make HTMLEditorKit read it... and nothing,
// I always get the bug
//To change color it goes like this :
JComboBox _cboColor = new JComboBox();
//I correctly initialize this combo with colors
//then I do something like this
ActionListener _lst = new ActionListener(){
   public void actionPeformed(ActionEvent e){
      Color colSel = (Color) _cboColor.getSelectedItem();
      MutableAttributeSet mas = new SimpleAttributeSet();
      StyleConstants.setForeground(mas,colSel);
      setAttributeSet(mas);
_cboColor.addActionListener(_lst);
//Set Attributes goes something like this
private void setAttributeSet(javax.swing.text.AttributeSet atrAttributeSet) {       
        //Get current 'End' and 'Start' positions
        int intCurrPosStart = _tpaEditor.getSelectionStart();
        int intCurrPosEnd = _tpaEditor.getSelectionEnd();
        if(intCurrPosStart != intCurrPosEnd){
            //Apply attributes to selection
            _docHTMLDoc.setCharacterAttributes(intCurrPosStart,intCurrPosEnd - intCurrPosStart,atrAttributeSet,false);
        else{
            //No selection : apply attributes to further typed text
            MutableAttributeSet atrInputAttributes = _kitHTMLEditor.getInputAttributes();
            atrInputAttributes.addAttributes(atrAttributeSet);

hi, friend!
try this:
void setAttributeToText(JTextPane pane, int start, int end, Color color) {
MutableAttributeSet new_att = new SimpleAttributeSet();
StyleConstants.setForeground(new_att,color);
HTMLDocument doc=(HTMLDocument)pane.getDocument();
doc.setCharacterAttributes(start,end,new_att,false);
It works fine in my Application, hope will work in yours, too.
good luck.

Similar Messages

  • Font color issue with animated text in Captivate 5

    When I prepare a new animated text and open the property and then click the square to choose a color , I only get a  little part of the color panel (when I click the color box) and I have  no possibilities to enter the color code either:
    I'm working with a Windows XP, 64 bits desktop and I have Captivate 5 version 5.0.1.624.
    Any ideas to solve this issue would be appreciated as it is becoming urgent for me.

    @Lieve: You're on the French version of Captivate 5 aren't you?
    Can you provide a screenshot of what the Animated Text font colour dialog looks like on your PC and upload it here?
    This is what that box looks like for me:
    It seems that on this user's PC the colour picker isn't able to float on top of the dialog as it should.
    I encouraged Valerie to post her issue on this forum in the hope that one of the Captivate developer technicians would chime in with a possible solution.  I think this one has got to be some kind of bug due to a language version of Cp.

  • CP 6 issue with inserted videos

    Hi All,
    I have an issue with inserted videos in CP6. They play in preview (F8) but not in published output (swf nor html).
    This is what I do:
    The videos created with CP6, Record new Demo
    output cpvc
    open cpvc in CP 6
    publish see settings below:
    Now I want to insert the captured and published demo into my training CP6 project
    click 'Video' on menu bar -> Insert Video -> select 'Event Video' -> browse to the file on my computer -> select file (mp4) - click OK
    Video gets loaded into CP6 project with default skin
    Before save the changes of the project I change the settings on the property panel to:
    Now I preview my project
    Press F8
    Preview is generated
    video demo plays automatically as expected
    This all even works well with multiple demo videos on one slide which can be selected by clicking different show me buttons (advanced actions created to show and hide according videos)
    BUT now I publish my project and nothing works anymore, videos do not show on scene and cannot be selected with respective show me buttons
         Publishing settings are:
    At the end of the publishing dialogue I click to view output in web browser (IE9) and there starts the trouble:
    IE shows up withfollowing dialogue:
    I allow blocked content and select cancel in the following dialogue box:
    And the training loads, everything works fine except the videos integrated to start automatically there is a blank space nothing.
    Does anyone have an idea solution for me?
    I am so puzzled and do not know hoe to proceed...
    Thanks in advance for your reply!!!
    Stephanie

    Hi RodWard,
    Thanks for your fast reply!!!
    The video files are present in the same folder as the SWF publish location.
    The drive letter is on my local PC with multiple partitions and not a network drive.
    Flash global security settings are set for E:
    To your last suggestion about file naming I did the following:
    Generate new mp4s
    Name them only with alphanumerics ie. DemoScroll
    insert them into project
    preview OK
    publish and check if demos are in folder - yes they are
    open html in IE9  - NOK!!!
    Now frustration rose...
    So I tried one thing that I had not yet tried - open html in FireFox and there it is OK :-)
    I do not understand....BUT we need to be able to support IE!!!!
    Do you think there are specific settings that need to be changed in IE to make it work?
    I would highly appreciate a suggestion what to look for in IE...
    Do you think it is related to IE9?  ´
    Since I have IE 9 and CP6 I also get the LMS messages and actriveX message when viewing projects in browser.
    Looking forward to your help.
    Thanks in advance Stephanie

  • Font color issues in published output

    I have just upgraded a couple of older Captivate projects to 5.5. 
    On some of the slides I have click boxes set to open URLs when clicked, and I have colored the text blue and underlined it so that it looks like a hyperlink.
    When viewing the published content I've noticed that my hyperlink text is black, instead of blue. 
    Has anyone run into this issue before?  I've searched the forums and couldn't easily find any references to this issue, although this is not the first time I've seen this problem with my courses.
    Thanks in advance for any help!
    Brian

    Rod, thank you so much for the reply.
    The blue is just your standard #0000FF blue, which should be safe with 8 bit quality, and the slides were set to 8 bit quality the last time they were published (and worked) in an older version Captivate.  Kind of weird, right?
    BUT, being the optimist that I am, I took your suggestion and tried setting one of the slides to 24 bit, and the blue is blue once again rather than black!  Very bizarre, but faster than the work around I had found yesterday so I'm probably going to roll with it.  I found that changing the slide quality to 24 bit has a minimal impact on the size of the published swf file, so I'm good.
    Again, oddly enough, my work around mentioned above involves changing the default caption style to what Captivate calls "default caption capture style".  With my caption style set as this my blue is blue, even with the slide quality set at 8 bit.  I took one of my older courses and went through changing all of the caption styles.  Took me a little while as changing the caption style changes the font, font color, font styles, font sizes, paragraph alignment settings, etc., etc.
    And on a side track, I got to thinking after I noticed that changing the caption style seemed to fix the font color issue...  My original project used a custom caption style, one that I had not yet "reinstalled" since upgrading to Captivate 5.5.  So, I added the custom caption styles, even changed the name of the caption style and tried to reapply it, but no dice.
    It seems that, with the slide quality set at 8 bit, if I use a caption style of "default caption style", my blue is black on publish.  But, if I use a different caption style, such as "default capture caption style", my blue is blue, even at 8 bit quality.

  • Font smoothing issues with Samsun 23 inch LCD

    I am having a font smoothing issue with my MacBook and my Samsung LN-S2352W 23 inch LCD (http://www.samsung.com/Products/TV/LCDTV/LNS2352WXXAA.asp). I am using the mini-DVI to VGA adapter and the plugging that into the VGA port of my LCD. It doesn't matter which app I run, but as long as it has fonts, they come out blurry, hazy, colors bleed, etc.
    I have played with the font smoothing settings and that has not helped at all. I have heard of TinkerTool and will try it to see if it makes any difference, but am not expecting much.
    I also have a PC running Windows Vista and I connected it to the VGA port of my LCD. Wow...the difference in picture quality was astounding. I'm ******. I want my MacBook to look that sweet on my LCD.
    Anyone have any thoughts? Can this be fixed?

    TinkerTool didn't make any difference for me. I played around with it and found that there was no improvements using it or disabling font smoothing.
    I have watched DVD's on this LCD being played with my MacBook. I have seen 2MB+ full screen digital pictures. Both the DVD and digital pics look absolutely amazing on it.
    It's only the fonts that appear blurry or in some areas they appear to have a shadown to the right. This happens with any text that appears in every app.
    Keep in mind too, Windows Vista looks perfect on this display, but my prized MacBook looks really sub-par.
    I'm not quite following you on changing the display preferences to change to pixel size to that of the MacBook...

  • How to insert HTML content in a IVIEW

    Hi,
    How to insert HTML content in a iview any body help me with the solution.
    Thanks & Regards
       kiran.B

    Hi,
    You can just spit out HTML in the request object:
    request.write("<B>Whatever</B>");
    Or if you have a single HTML page, you might want to just add it to KM and create an iView from it.
    Hope this helps.
    Daniel

  • Issue with Insert in SP

    Gurus,
    I have an issue with inserting rows into temp table through SP.
    Here is my proc. its running fine. After the execution completed when i try to select the rows from srini_temp table its showing 0 rows. Whats wrong here.
    CREATE PROCEDURE BO_HR_RPT.SRINI_TEST AS
    BEGIN
    insert into BO_HR_RPT.srini_temp (
    COURSE_TITLE,
    COURSE_ID,
    CLASS_NO,
    DELIVERY_METHOD,
    LEARNER_OWN,
    DURATION,
    score,
    VENDOR,
    START_DATE,
    END_DATE,
    INSTRUCTOR_NAME,
    TRANS_STATUS,
    LEARNER_NAME,
    LEARNER_EMP_TYPE,
    INSTRUCTOR_OWN,
    INSTRUCTOR_EMP_TYPE,
    EFFT_PERIOD,
    YEAR,
    AS_OF_DATE,
    LMS_SOURCE,
    REPORT_CATEGORY)
    SELECT COURSE_TITLE,
    COURSE_ID,
    CLASS_NO,
    CASE WHEN COURSE_ID LIKE 'TIS%' OR COURSE_ID LIKE 'TIWEB%' OR COURSE_ID LIKE 'TIVLAB%' OR COURSE_ID LIKE 'TIWVT%'
    OR COURSE_ID LIKE 'STARELT%' OR COURSE_ID LIKE 'TIELT%' OR DELIVERY_METHOD ='Web Based Training'
    OR DELIVERY_METHOD = 'e-Learning or via backend Import' THEN 'E-Learning'
    WHEN DELIVERY_METHOD = 'IDL' THEN 'IDL'
    WHEN DELIVERY_METHOD = 'IDL Replay' THEN 'Replay'
    ELSE INITCAP(DELIVERY_METHOD) END AS DELIVERY_METHOD,
    RTRIM(LEARNER_OWN) as LEARNER_OWN,
    CASE WHEN LMS_SOURCE ='SABA' THEN ROUND(DURATION/60,1)
    ELSE DURATION END AS DURATION,
    CASE WHEN SCORE='0' then '' else score END as score,
    CASE WHEN (vendor_name IS NOT NULL) AND (UPPER(SUBSTR(COURSE_ID,1,2)) = 'TV') then vendor_name
    WHEN COURSE_ID LIKE 'TIWEB%' then 'SKILLSOFT'
    WHEN COURSE_ID LIKE 'TIVLAB%' then 'ELEMENTK'
    ELSE 'N' END AS VENDOR,
    START_DATE,
    END_DATE,
    INITCAP(INSTRUCTOR_NAME) AS INSTRUCTOR_NAME,
    TRANS_STATUS,
    INITCAP(LEARNER_NAME) AS LEARNER_NAME,
    INITCAP(LEARNER_EMP_TYPE) AS LEARNER_EMP_TYPE,
    RTRIM(INSTRUCTOR_OWN),
    INITCAP(INSTRUCTOR_EMP_TYPE) AS INSTRUCTOR_EMP_TYPE,
    trim(initcap(TO_CHAR(TRUNC(NVL(END_DATE,START_DATE)),'MONTH'))) AS EFFT_PERIOD,
    TO_CHAR(TRUNC(NVL(END_DATE,START_DATE)),'YYYY') AS YEAR,
    TRUNC(ADD_MONTHS(LAST_DAY(load_date) ,-1)) AS AS_OF_DATE,
    LMS_SOURCE,
    REPORT_CATEGORY
    FROM BO_HR_RPT.ELM_GLD_MASTER_BASE
    where ROWNUM <= 10
    ORDER BY COURSE_ID,CLASS_NO,START_DATE,END_DATE,INSTRUCTOR_NAME;
    COMMIT;
    END;
    Thanks for great help.
    Srini

    Are you completely sure this isn't a global temporary table?
    it really would explain your problems!
    Have you got access to run a
    select tablename from all_tables where TEMPORARY = 'Y'[pre]                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to add a parallax scrolling (jquerry plugin) to Muse with Insert HTML?

    I know the parallax scrolling feature will come to muse in 2 weeks. But I must do a website with parallax scrolling before that time.
    I actually have a site ready in MUSE but i want to add some parallax scrolling effects to this site. I know this is possible without the incoming muse updates because people did it with older muse versions.
    There are some jquerry plugins that should do the work:
    http://plugins.jquery.com/stellar/
    http://plugins.jquery.com/parallax/   for example.
    How can i add these effects to Muse with insert html/Edit html feature? I am not good at code so Could you please tell me the steps clearly even like putting the plugin into the directory?
    Even if i include the plugin, how can i adjust the pluginn settings to some specific elements of a site?
    Please help,
    thank you!

    If you're not comfortable with code, the simplest way to add parallax to Muse would be to join the Muse beta and download the beta build with the new parallax feature.
    http://www.adobekb.com/participating_in_muse_beta.html

  • Issues with writing html coding and how safari interprets it

    Hi,
    I have been having a frustrating 24 hours with my basically brand new iMac.
    I have just started a course in web design and just doing a basic html unit. When I put the following in Textedit it comes up very strangely.
    <!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> Shifty Sam’s Saleyard</title>
    </head>
    <body bgcolor="blue">
    <h1 align = "center">
    <font color = "red" face = "verdana, arial">Shifty Sam's Saleyard</font>
    </h1>
    </body> </html>
    The h1 isnt centered, isn't in the correct font and comes up as green!
    I have tried using other text editors like the Notepad App in the App Store and Textwrangler with the same result. Then I thought I would try a different browser and downloaded Firefox with the same result.
    The frustrating this is that if I type out this html in Notepad on my Windows machine and open in IE it works perfectly.
    I just did an experiment and emailed the html doc to my windows machine and tried to open in Notepad and it came up very strangely.
    I have looked at other posts and changed around preferences in TextEdit.
    I hope someone can help - this is really doing my head in that I can't even do the most simple task on my brand new computer!
    Thanks

    Because i do
    Seriously, I've programmed all my adult life working in Unix until I switched to OS X.  I've been through the complete range of editors starting with ed to vi to emacs with a bit of teco thrown in.
    When I switched over to OS X I tried using TextEdit, trying to stay with all the native Apple tools and just found it to limiting for programming.
    While I was able to get it to be a plain editor and not throw in things I didn;t want in my files or change things in the files behind my back it never had the 'right feel' or the power I was looking for.
    I think if you're doing text TextEdit is fine but for programming tasks it's to limited. And why would you not want to use the best tool (or at least a better tool) for the job if it will make the job easier?
    No, for the user doing some programming and system work (looking at plist files and such) TextWrangler is the way to go. Good power and expandability but fairly easy to use for a new or casual user.
    regards

  • Export color vs. print to file color issue with 2.3RC

    Hi,
    I'm having problems with exporting photos for web-site usage.
    In short: colors get extremely washed out and plain when using "export to disk" (requesting sRGB color profile, in jpg-format). But, when "printing to file" using sRGB profile and rendering intent perceptual colors are reasonably close to what I see in LR. Yes, I know, sRGB is limited, but...
    Why there is such a difference when both methods are using sRGB for generated jpg? Is it the fact that rendering intent can not be selected for "export to disk"?
    As I can not control pixel dimensions in Print mode is not an option for my use (and I can not control sharpening with plug-in, but the color issue is there to begin with without any export plugin intervention).
    In contrast, LR 1.4 export to disk gives reasonable colors, the color issue has appeared with 2.x series.
    Running Windows XP SP3, LR 2.3RC, display calibrated with Color Vision SPyder 2.
    Please help, this is driving me nuts :(

    I think, that your examples shows the same problem as my observations.
    It seems that your display has even smaller gamut than sRGB (on my notebook DELL D620 this is also the case) so after you calibrated it, both lightroom and color managed firefox shows more saturated colors than windows explorer showing exported image (as far as I know, export from library module works correctly, but win explorer is not doing conversion to your monitor profile, that's why image is undersaturated). This is correct. It is really hard to calibrate such a low quality display, which can often be found on cheap notebooks - I have my own experience with it. Blue shades are really weak so heavy corrections have to be done in the profile (generated with spyder in your case), which can result in purple skies (why? Read this: http://www.brucelindbloom.com/index.html?WorkingSpaceInfo.html).
    Problem is with image printed to file. This should look same as file exported from library module given that you use sRGB both as a destination space in export from library and as a printer profile while printing to file. In your case LR printed your image using values corresponding to your monitor profile (even if sRGB was selected) which resulted in oversaturated image (because your display has smaller gamut than sRGB). In my case images printed to file are undersaturated (because my monitor has gamut wider than sRGB). But I'm sure this is a bug! Your monitor profile should not affect printing to file in any case if sRGB is selected as printer profile!
    Summary: purle sky in LR and in color managed FF is ok, but purple sky in image printed to file is not ok. :-)
    And my hint: do not try to calibrate this display... :-)
    You can try to make some measurements of your UNCALIBRATED NB display using this freeware: http://www.homecinema-fr.com/colorimetre/index_en.php You will probably see a very uneven color temperature across grayscale and much smaller gamut than sRGB.
    Let us know your findings.

  • Adobe Bridge issue with index.html files

    Hi, I have a perplexing problem.... Three weeks ago, I created a web photo gallery in Bridge. I transferred it to my website via FTP and it worked like a charm. Three days later I created another web gallery transferred it to my website using my ftp and the address of what I uploaded takes me to a blank page. I contacted my web hosting support and was told it looks like an issue with my index.html file. Here is a link to the gallery that is working: www.janieblanchard/com/galleries/prettylights/index.html
    Here is the link to the site that is not working:
    www.janieblanchard.com/galleries/macrogallery/index.html
    Any advice would be so helpful, I've spend too many hours trying different galleries and uploading multiple times.
    Thanks!

    What exact camera make and model?
    What specific, exact version of Adobe Camera Raw (ACR) plug-in?
    What specific, exact versions of Bridge and of Yosemite?
    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Cintiq 21ux Color Issue with Snow Leopard

    I just recently upgraded to Snow Leopard from Tiger. I have a Cintiq 21ux tablet that is noticeably "faint" now on the new SL. It appears hazy and the colors just don't pop like they did on Tiger. I didn't have this issue with Tiger. Does anyone have any ideas on how to correct the issue? I'm a graphic designer so color is EXTREMELY critical in my day to day operations.
    I adjusted the gamma and that showed some improvement but there is still a dramatic difference between my Apple monitor and the Cintiq.
    I noticed this was posted earlier but no resolution provided and it was archived.
    Please help!

    Something just occurred to me that has happened in the past that when I've upgraded the OS that the ColorSync profile that was previously selected for the Cintiq and/or my main display for whatever reason gets unselected. You may want to look in the System Preferences/Display/Color Tab to make sure that the color profile you previously had selected is in fact still there and selected. Make sure that "Show profiles for this display only" is unchecked so that all profiles are visible. More than likely it should be named something like Cintiq 21UX or Cintiq 12WX which was installed when you set up the tablet.

  • Inserting HTML content into an animated DIV

    Can you, and if so how, insert HTLM content into an EGDE animated Div box? Specificaly an HTML table?  I can get the html code in the box but it won't read/render it as html code. In flash you can tell the program that the contents of the box is html code and it will read it as such but I don't see any way to do that here. I've tried several ways and I can get the code to display in the box but it won't render the code instruction in the boxCan it be done ??
    Thanks
    joel

    Hi,
    1) Your json file is not valid.
    You can copy and paste your datas here: http://jsonlint.com/
    Red commas must be deleted.
          "player": [
                "image": "images/player1.jpg",  //this is the URL I want to retrive
               "name": "player1",
                "image": "images/player2.jpg",
                "name": "player2", 
                "image": "images/player3.jpg",
                "name": "player3", 
                "image": "images/player4.jpg",
                "name": "player4",
    2)An example from http://docs.jquery.com/Ajax/jQuery.getJSON:
    3) compositionReady Tests.
    On compositionReady, i write:
    var profiles = {
                   "player": [
                        "image": "images/player1.jpg",
                        "name": "player1",
                         "image": "images/player2.jpg",
                         "name": "player2", 
                         "image": "images/player3.jpg",
                         "name": "player3", 
                         "image": "images/player4.jpg",
                         "name": "player4",
    console.log(profiles.player[1].image); // this line returns: "images/player2.jpg"
    Note: i deleted the first "[" and the last "]".

  • Font/Type Issue with Slideshow & Transitions

    DVDSP 4.1.0. I've created a slideshow in DVDSP. I created all the photos in Photoshop.Each has a small caption at the bottom created as part of the actual photo. When I create a slideshow in DVDSP everything looks great. However, if I had a transition to the slides (say a fade through color for 1 second) the type on the caption looks crazy bad on SOME DVD players. Looks fine on my computer and two of my DVD players, but on one other one (and unfortunately my clients) DVD player the type looks very bad when the transitions have been added to the slideshow. The photo still looks great, but the type at the bottom looks horrible. Clearly it's an issue with some DVD players and some don't seem show the problem. Just wondered if anyone had any insight into this problem. Thanks.

    hi, friend!
    try this:
    void setAttributeToText(JTextPane pane, int start, int end, Color color) {
    MutableAttributeSet new_att = new SimpleAttributeSet();
    StyleConstants.setForeground(new_att,color);
    HTMLDocument doc=(HTMLDocument)pane.getDocument();
    doc.setCharacterAttributes(start,end,new_att,false);
    It works fine in my Application, hope will work in yours, too.
    good luck.

  • CS5 trial issues with ram and content aware issues.

    I run a vista 32 machine with 4 gigs.  I have tried just about everything including running the machine in minmum and loading only windows and adobe CS5.  I still get the error of "Could not fill because there is not enough memory (RAM)".  I have tried playing with the performce settings and GL settings to give adobe as much memory as it needed but it is still not working.
    I am working with a file that is 6.49mb which is the average of what my raw file convert to when I download them from my camera.  Now the only way I can get it to work is seriously downgrade the file in size and then the content aware fill works great or decrease the area that is going to be filled.
    So am I missing something or do I have to convert everything over to 64 bit and throw 8 gigs in this machine to get this to work with those tyoe of file sizes?
    Thanks

    Hi again everyone. I tried the original solution of turning off OpenGl support in preferances and that worked for me. Granted there are still some problems.
    To recap:
        I have an Intel Core i7 processor with 4GB RAM and Windows 7 Ultimate 32bit (didn't want to go down the 64bit route for compatability issues with other programs). Because Adobe do not support the Canon EOS 5D Mk II in CS3's camera RAW I upgraded to CS4 (that's were things began to become unstable). CS4 was flakey at best. Nice new feel (when it worked). Now I am no dummy when it comes to computers (I run my own IT company as well as photographic business - they kinda compliment each other). After loading CS5 (mainly for content aware feature and hoping it was a bit better than CS4 turned out to be - like most of you on this forum) the neat feature that Adobe had been raving about didn't work as advertised.
    Back to where I am up to now. I will not turn this into a Mac vs PC debate since we have aldready had earlier, someone with a "brand new MacBook Pro" complaining of the same issue. I can state that, of all the systems I work on with Windows 7 (which is alot), the only one I am having major issues with is my own. And the only piece of software giving me grief (if you saw my two screens you would have trouble counting the apps on my system), is Photoshop CS5! After turning off OpenGL I can now stitch 12 or more RAW 5D MarkII photos with no problem, generating a file 938MB in size. The first time I did this I still had to original files open and it would not let me do any content aware modifications. Fair enough. I closed all the source files, flattened the layers to produce a single flat layer to work with and then tried content aware. "Not enough memory". I had to bring the file down in size to under 50MB to get it to work on any decent sized area. Now I don't want to have to go out and buy "Blow up" to renlarge my photos because Adobe can not get their memory management working! Lets be clear about this. This is not a Windows problem. Photoshop assigns its own memory, its own scratch disk and interfaces with the Graphics card. So if I assign 1.5GB of memory to Photoshop, 400GB as a scatch disk and have 1GB of video memory why does it still have issues with a 50MB file!!!! Piss poor programming!
    Here are my issues. I was sold on CS5 due to a brilliant (if not misleading video) that showed "content aware" at work on Adobe's web site. There was no mention that I would need a super computer or 64bit operating system to work its magic. On purchasing the product as so many of you have discovered it does not work as promissed. In two days of posting to this site I have not seen one representative of Adobe making any comment as to even if they are working on this issue.
    Please ADOBE, you big multinational software company, PLEASE make us feel better for having purchased CS5 and not let it be the big white lemon it seems to be.

Maybe you are looking for