Creating new Attributes for use with AttributedStrings

I trying to find a way to change the color of key strings in a phrase so that they stand out. For example.
the String (The water is HOT). I want the word HOT to be the color RED.
I have noticed in using the TextAttributes option on the AttributedString doesn't have an option to change a color for a particular word in a String only a way to swap the foreground and background colors. In general is there a way to add new attributes for doing the above example?
Just a note. This modification is not being done in an editor pane or text field. I'm looking for a way to do this without user interaction.

If you are not drawing this in an JEditorPane, but just with DrawText, you will have to split the text up your self, draw the first half, then switch colors, then draw the second half.

Similar Messages

  • Can 10G express be used to create an application for use with a 10G instanc

    Hi
    Can 10G express be used to create an application for use with a 10G instance? I am new to Oracle 10G. I like the interface for creating applications, maintaining users, etc. Can this tool be pointed at a regular instance of 10G so that applications can be created against a regular 10G database not the express database?
    Can PL/SQL proceedures that are created in 10G express also be migrated to a 10G database?
    Thanks in advance
    Dean-O

    Can 10G express be used to create an application for use with a 10G instance?Yeah, that's the whole point from a marketing perspective ;)
    Can this tool be pointed at a regular instance of 10G so that applications can be
    created against a regular 10G database not the express database?Yes but it's a different version. Check out:
    http://www.oracle.com/technology/products/database/application_express/index.html
    Can PL/SQL proceedures that are created in 10G express also be migrated to a 10G database?Yes they can!
    ~Jer

  • Creating Plugin Modules for Use with Compiled Code

    Hi all,
    While programing a data analysis package in Labview, I've run into a problem that I don't really know how to answer.  It goes something like this: my program receives data from measurement devices in the form of ASCII or binary files, which I must then process and evaluate.  The problem is, the data files can have a variety of different formats.  Right now, I only know of 4 or 5, but more could literally be added at any time.
    My thought is this: I'd love to have some sort of modular plugins for reading the data files.  In other words, I could have a subfolder under my application's space in the "Program Files" directory.  The subfolder would contain any number of "ReadFileX.xxx" modules.  Upon initiation, my code would scan that folder, determine the possible formats (based on the *.xxx files therein), and be capable of reading any of the files.  Ideally, the user would select a file, I would note its format, and call the appropriate plugin module to handle reading the data into my code.
    What is the best approach for doing something like this?  I looked (briefly) into using DLL's, but (from what I can tell) I would need to explicitly define the function name and the inputs / outputs in the "Call Library Node" function.  This would appear the break the modularity feature, as I want to be able to load the software, and then develop new plugins down the road when the need arises.  I also found some information on source distributions (in an LLB).  This option would probably work, but my efforts at coding a basic test of VI-Server were met with errors.
    Does anyone have any experience performing a similar task?  If so, would you share your knowledge / secrets with me?  I would be extremely grateful for your feedback.
    Thanks!
    Mark

    Mark - there is a Coding Challenge currently going on, and I have submitted an entry that shows how to dynamically instantiate a class based on a class that resides on disk. Specifically, you're going to be interested in "Get LV Class Default Value.vi" under the "Cluster, Class, and Variant" palette that allows you to create an instance of an object based on the path of the .lvclass file. The class you load is going to be what's called a child class of a parent class (or base class), where the child class implementation overrides the function of the parent class. The "Get LV Class Default Value.vi" is very loosely analogous a Class Constructor.
    You can deploy your application having implemented all the base class functions, then subsequently develop and deploy new classes to reside in a "plugins" folder without needing to change the original app code.
    If you find that contest entry helpful, consider dropping a vote, huh? The LabVIEW Communities have had access errors sporadically the past few weeks, so if you get a "Server Error" you may need to try again later. There's also going to be Forums maintenance today and tomorrow.
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • How to  create new pattern for se38 with  200 line

    Hi ,
             i want  to create a new pattern as a template  for  report.
    when i checked  it allows me to write only 100  lines.  but in our prj we do use  200 lines of template  .how do i create it .

    Hi,
    Try this following code in the first line of the report in SE38
    Report sy-repid line-count 200.
    Regards,
    Mansi.

  • I'm buying a new computer for use with Creative Cloud. Are there any advantages to PC vs Mac?

    I'm replacing a seven year old Dell that still works but is getting rather long in the tooth. I have CS4 web design. (For PC)
    I have a Macbook Pro (so I'm familar with Mac OS)
    I'm upgrading my computer to mainly use the Creative Cloud.
    Are there any advantages (related to Creative Cloud) to buying a Mac or a PC?
    I just don;t wan't to a Mac and then find that many features don;t work that are on the PC (or vice versa)
    Or is one interface easier to use than another?
    Thanks in advance for any help.

    It usually boils down to personal preference.
    The software is, to all intents and purposes, the same in either operating system. There are minor differences between them, usually related to the hardware or the operating system. But if you can use the software in Windows, you'll be able to use it on a Mac too.
    It's a matter of which environment you prefer: Windows or Mac. I use both daily since the Cloud allows you to install on Windows and/or Mac.

  • Seeking new camera for use with FCP

    Right now, I get dropped frames when I import video, whether via direct FireWire from my Panasonic 601, via my VCR or when I run video through an ADS converter. I run the video into a LaCie 500 GB Big Disk Extreme and I can't imagine that FireWire would not be enough to bring in video without dropped frames. I have read many posts here and all seem to lead to the hard drive, which mine should be more than adequate.
    I had intended to upgrade my camera last year, that did not happen, so looking at doing it now. This camera will be used for personal use, not for gigs. But I do not want to get a camera that will A) not dump video into FCP without a fight and B) continue this dropped frame garbage (if it has anything to do with the camera at all).
    I need to be able to hook the camera up to the FW port, got to log & capture, hit play and watch that sucker take the whole piece without a hiccup. It never made sense to me that FCP would not just keep capturing video even if there is a gap between segments. Maybe I am just missing a setting, but that never made sense to me. I can see it losing sync, but doing the whole stop-drop-&-roll makes no sense to me as a user. Granted, I am not an engineer.
    Any hints on good affordable cameras are appreciated. I still have about 30 home videos of 90 minutes length to get on DVD, so I am leaning back towards miniDV again. If someone can make an argument otherwise I am all ears.
    Thanks!!
    jf

    What device control setting are you using? there is firewire ntsc, and firewire ntsc basic. Try changing that to see if it makes any difference.
    In your user preferences there are options to set how fcp reacts on dropped frames and timecode breaks during capture. Check that these settings are to your satisfaction.
    Are you attempting to capture now? Or are you logging and capturing/batch capturing?
    Personally I suspect that it is the Lacie BigDisk causing the problem, in that you're trying to capture video, perform device control, and send the video to the external drive, all via firewire. Try capturing to the internal drive. Also, a lot of cameras don't play nice with other stuff on the firewire bus. All the fw ports on a mac are on the same bus so it's sometimes necessary to actually unmount the drive before trying to capture. I'd try all these options in the interest of establishing what the problem is before you spend money trying to fix it.
    You'd really be better off getting a big internal SATA drive to use as your media drive, much better value and faster.

  • New camera for use with IM09

    Looking at upgrading my camcorder and trying to figure out which would be best with IM09...
    This is what I have been looking at...
    http://www.bhphotovideo.com/c/product/576009-REG/Canon3085B001_VIXIA_HG20_AVCHDHard.html#features
    I tend to lean towards the Canons, but how does this JVC compare?
    http://www.bhphotovideo.com/c/product/572458-REG/JVCGZ_HD30US_GZ_HD30_Everio_HighDefinition.html#features
    Then the other questions I have are:
    Should I got HD based or stay MiniDV?
    The Canon says it records progressive footage at 60i, does that mean it is not true progressive?
    Will an MiniDV HD cam improve my standard MiniDV captures, will it up scale them?
    Thanks for the help...
    Message was edited by: s.m.t.

    Sheryl Kingstone wrote:
    I believe the real answer is not HDV vs ACHDV but progressive vs interlaced format. Imovie works better with progressive vs interlaced. However, shooting in 1080 60p needs a mac pro to really edit properly. Plus you need to trick imovie to consume it. However, I would still look into shooting progressive. Do a search on progressive and there are a few threads on it.
    Yes, I have discovered that by working with IM09 with my standard DV cam. But it appears to me that both of the new formats will record in 30p and 24p (at least on the canon line). So will I not be importing progressive with either? Your right that is my top priority (and the major reason for getting a new cam) is to be able to record and import in progressive format...
    The more I read, the more I am tending to lean toward HDV. I just want to make sure the qualities are the same...
    Message was edited by: s.m.t.

  • To create new user for rpd with Admin access in obiee 10g

    Hi All,
    I need to create a user in RPD which has equivalent privileges as Administrator in RPD.Please note that this is for accessing RPD Admin not for Dashboard admin access.Can anyone please let me know of how we shall implement this?..
    Regards,
    Vengatesh.

    Hi,
    Create a user and give the check box for 'Administrators' group and check.
    If required give 'Presentation Service Administrator'group too.
    In Settings->Manage Privileges you can restrict the user to the Answers.
    Hope this helped/ answered
    Kind Regards
    MuRam

  • User defined attributes for use with personalization

    Hello,
    I have a stand alone region that works correctly and is able to be added to seeded pages via personalization. I would like to allow the personalization to define the value of a user defined attribute when the personalization is added to the page. However I do not see any user defined attributes in the list when I add the region via personalization.
    Has anyone ever done this before?
    Kristofer Cruz

    If you are not drawing this in an JEditorPane, but just with DrawText, you will have to split the text up your self, draw the first half, then switch colors, then draw the second half.

  • Problem in creating new versions for existing DIR using CV01N

    I am working in SAP ERP 6.0 EHP 4.0 system.
    I have problem in creating new versions for existing DIR using CV01N
    I create a DIR version 00 with functional location and mpd cycles. Then when i try to create a new version by copying the contents created from already created document.I change the MPD cycles in the new version and save it.
    once when i display the first document created the mpdcycle specified in version 01 is copied to the 00 version.
    The document is inconsistent where versioning of document doesnot work properly wrt MPDCYCLE and MP HEADER.
    The problem which i found was the document identification guid remains the same for all the document versions getting created.
    The same is working fine in SAP ERP6.0 EHP3.0 sytem.
    Please someone help me in resolving the above issue.
    Regards,
    Prasad.B

    There is a change in the standard code.The reason for the above problem was  because of a missing Enhancemnet point in a standard function module 'CV110_DOC_CREATE_WITH_TEMPLATE'.
    IS-ADEC-MPD  - Enhancement to copy MPD data
    ENHANCEMENT-POINT CV110_DOC_CREATE_WTEMPL_01 SPOTS ES_SAPLCV110.
    +*$*$-Start: CV110_DOC_CREATE_WTEMPL_01----------------------------------------------------------$*$*+
    +**ENHANCEMENT 1  ZSF_AD_MPD_SAPLCV110.    "active version**+
    +*** copy MPD relevant data from templ. doc to current doc**+
      +**CALL FUNCTION 'MPD02_COPY_MPD_DATA'**+
        +**EXPORTING**+
          +**is_draw = ls_draw**+
        +**TABLES**+
          +**ct_drad = lt_drad.**+
    +*ENDENHANCEMENT.**$*$-End:   CV110_DOC_CREATE_WTEMPL_01----------------------------------------------------------$*$*+
    Created a custom enhancement point similar to SAP ECC6.0 EHP 3.0 system.
    The reason was the buffer was not getting cleared previously.After inserting the above code the DIR's are getting created withot any issues.
    Regards,
    Prasad.B

  • I have a company Ipad that belonged to a deceased employee. no access to his icloud or appleID. how can I restore it for use with a new apple ID

    I have a company Ipad that belonged to a deceased employee. no access to his icloud or appleID. how can I restore it for use with a new apple ID?
    The apple ID was his personal account and can no longer gain access. Im sure I can get purchase recipts from the accounting department if needed. I tried to put the Ipad in restore mode and used itunes to "recover" the ipad but it still wont let me in because he registered the device with the "lost iphone" feature or whatever that is.

    Activation Lock in iOS 7  >  http://support.apple.com/kb/HT5818
    The Apple ID and Password that was Originally used to Activate the iDevice is required
    If you do not have that information you will not be able to use the Device.

  • HT4191 iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.

    iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.  I've seen reference to the  "My iPhone" local storage put no mention on how you create this folder or access this folder within the Notes app.  I realize storing information in a local storage like this provides no syncing between other iDevices but that is exactly what I'm looking for.  I'm running iOS7.0.4 on a iPhone 5S, and a iPad Air.  Any help would be greatly appreciated.

    If you go to Settings > Notes > Default Account you will see "On My iPhone" as the default account and the only choice if you have not enabled syncing Notes in Settings >iCloud or Settings > Mail, Contacts, Calendars. If you have enabled syncing you can still select "On My iPhone" as the default account. When you are in the Notes app you won't see any accounts listed if you have not enabled syncing because they are all in the On My iPhone account and that is the only place possible. It is not a folder that you create.

  • HT3529 Is there a way to create, store and use preset messages for use with "Messages"?

    Is there a way to create, store and use preset messages for use with "Messages". I often have a recurrinig message to send, after a repeating event, and need to enter the same short message each time. It would be nice to have this short message stored and selectable so that I do not need to enter each time.

    found an answer that seems to work:
    https://discussions.apple.com/message/17997300#17997300

  • Just downloaded latest updates to Camera Raw for use with my new Sony RX100 M3 but still can't get the RAW files to open. Any suggestions?

    Just downloaded latest updates to Camera Raw for use with my new Sony RX100 M3 but still can't get the RAW files to open. Any suggestions?

    Never mind, I finally got it working, thanks!

  • I heard there is a new Apple TV for use with apple ipad air. Is this true?

    I heard there is a new Apple TV for use with apple ipad air. Is this true?

    Re: I heard there is a new Apple TV for use with apple ipad air. Is this true?

Maybe you are looking for

  • What is the price of adobe?

    How much does it cost to buy adobe?

  • Experience Definitions - Change during a user's session

    I'm attempting to change a user's experience definition during their session and I would like the new experience to appear during their session. I am removing their ID from a default group via the server API, so now they hit the second experience def

  • Adobe After Effects - Not in Adobe Manager?

    Hey, I was wondering if you could help me in an Issue i am having? I have installed the Adobe Application Manager and it was succesful and it has a list of all the programs i can install/try but im scrolling down and I can see no Adobe After Effects

  • Jdeveloper 11g: how to change the extension library Oracle JDBC

    Hello We use JDeveloper 11g for our desktop (swing) projects. When I debug the project in IDE, the classpath includes this jar: C:\Oracle\jdevstudio1117\oracle_common\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar The ojdbc6dms.jar is in Oracle JDBC extens

  • Change of policy

    A Year ago, from Japan I subscribed to a US/Canada package. Now that subscription is no longer available. I am in the US Military stationed out of Japan and can no longer call my family. Is there no way I can renew this subscription so that I can kee