Can the colour of a highlighter be changed?

hi,
I am using few highlighters to display text in different colours in a JTextArea. I would like to change the colour of a highlighter based on the colour chosen from a JColorChooser. Is this possible?
Thanks
ramya

You can't change the color of existing highlights. You'll have to replace each highlight with a new one using the new HighlightPainter. You can do that with the Highlighter methods getHighlights(), removeHighlight() or removeAllHighlights(), and addHighlight().

Similar Messages

  • Can the current line be highlighted using a background color or have the cursor flash?

    I use the split screen and left click in the Design pane to jump to where I want to be in the Code pane in Dreamweaver CS6. The problem is that it can be very hard to tell where the cursor is in the Code pane since the cursor doesn't flash.
    Is there a way to force Dreamweaver CS6 to change the background color of the currently selected line or at least have the cursor flash in both panes? There must be some way to make it easier to find the current line of code.
    Thanks.

    John Waller wrote:
    The cursor does not flash in Code View only when Code View is not in focus i.e. you're working in the Design View window in Split View.
    In those caases, I just highlight a word or two in Design View and the corresponding words are highlighted by DW in Code View (even when Code view is not in focus).
    Thanks. I've been doing that, but sometimes there is no text to highlight. I hoped Dreamweaver might have a hidden setting that I could enable. That's a lot of extra sliding of the hand/wrist for no good reason when it would be easy for the Dreamweaver programmers to change the background color of the current line or make the cursor flash or do something else to indicate where you are in the code besides making the user constantly make a smearing action with the mouse. All of those extra movements add up the wear and tear when you're trying to avoid getting a repetitive stress injury, especially if you already use mouse gestures in a browser.

  • Can the text on toolbar buttons be changed?

    In my Customize Toolbar window, I have it set to show toolbar buttons - such as Back/Forward, New Tab, Home - as Text. Is it possible to change the actual text that shows for these buttons, for example Bk/Fwd for "Back/Forward"?

    Yes, if your on iCloud you can go into the calendar application and tap the calendars button. Then tap Edit, [Name of Calendar], then tap which colour. If you using any other client [Gmail, Exchange etc] you can go onto the change the colour online.

  • Can the load order of subforms be changed?

    I have a form with two subforms.  Subform A is a datasheet which has a Form_Current event which is suppose to call a subroutine in the main form, which in turn tries to change a control in Subform B.
    However, on startup, Subform B has not loaded and an error occurs ("You entered an expression that has an invalid reference to the property Form/Report").
    Is there a way that I can force Subform B to load before Subform A?
    b.hata

    Not that I know of. Trying to change this default behavior is a recipe for disaster.
    You COULD have an error handler in that function that ignores the specific error because not there yet. Or you could re-think the whole thing and perhaps trigger it from the main form.
    On rare occasion, and I am reluctant to even mention it, I would tick a 1 msec timer and upon Form_Timer do my thing. This event is pretty much guaranteed to happen AFTER everything is loaded and is settling down.
    -Tom. Microsoft Access MVP
    I have had situations in the past where things were working fine and then after some changes, I would get errors similar to my current database development problem.  Somehow the order of subform loading would change.  There must be something in
    Access that determines the order in which subforms (and parent form) gets loaded.  I can't imagine it should matter to Access what the order would be.  I was hoping there was some way I could change it.
    re: error handlers... I typically don't like to do much in error handlers.  I much prefer to prevent errors from happening in the first place, such as setting an "Initialization Flag" during Form_Open and testing it in "Form_Current".
    re: timer... I wouldn't want to use Form_Timer as it is not full proof. 
    b.hata

  • Can the time capsule hard drive be changed?

    Can the hard drive in a time capsule be swapped out for a larger one?

    SimonTemplar wrote:
    What size and type hard drive does the TC use?  A,lso, does it need any special setup prior to installation in the TC?
    The TC uses a standard 3.5" SATA drive..
    It is usually a green drive.. WD often being used.. standard WD green drive.. but they use SAMSUNG and have used Hitachi, although I haven't seen them lately. Mostly it is WD.
    See the pics.. http://www.anandtech.com/show/4577/airport-extreme-5th-gen-and-time-capsule-4th- gen-review-faster-wifi-/4
    Size is depending on what you buy.. now they are 2TB for reasonable price and 3TB for absolute rip off price.. there is no improvement to the 3TB model. So don't buy it.. unless you have excess money.
    The use of solid state drive .. SSD in the TC would be pointless.. it is slow.. even a 7200rpm drive gains very little.. read the review where they tested a ssd in the TC.
    It is designed for back of laptops where wireless speeds are the rate determining step.. a slow green drive is more than fast enough and produces less heat, although this is marginal.
    When you upgrade the drive.. you can either just put it in the TC, then erase the drive from the airport utility. It will be formatted HFS+ with one large space and a few small partitions for local use. So no drive preparation is necessary.
    But you can plug the HDD into the computer using a usb to sata cable.. or whatever other access you have, and partition the drive beforehand.. this is the only way to partition a TC.
    Use HFS+ with GUID type drive. The partitioned drive will work fine in the TC.. the small extra partitions needed by the TC will be added when you first boot it.

  • Can the music in iMovies trailer be changed?

    I am using the imovies trailer but i really want to change the music. Does anyone know how to change the music?

    If you choose File>Convert Trailer to Movie, you'll be able to edit or delete all the individual elements including music.
    Then you can just drag in your replacement music.
    Matt

  • Can the Mail App color scheme be changed in Yosemite

    Can you change the color scheme/theme in Yosemite Mail app?  If yes, how do your do this.

    The answer is "Sort of."
    You can set Mail to automatically delete *every message retrieved from Hotmail* into Mail after the specified time period, so that the copy retrieved into (Apple) Mail is _the only_ copy.
    Then, when you delete the retrieved Hotmail message from Mail, it's gone. But (depending on the timeframe you select) it was already gone from Hotmail, just by retrieving it into Mail.
    1) In Mail, Preferences, select the Hotmail account.
    2) In the Advanced tab, check 'Remove copy from server after retrieving a message'
    and then the additional option *Immediately, After one day, After one week, or After one month.*
    3) Note that only messages coming into the Hotmail Inbox are retrieved and then removed. If you have set filters in Hotmail to put specified messages into Hotmail folders, they will NOT be retrieved into Mail.
    4) Messages that Hotmail puts into the Hotmail Junk folder are NOT retrieved into the Mail junk folder either.
    Message was edited by: kostby

  • Can the crop tool resize resolution be changed?

    When using the crop tool, and resizing it via the mouse, the dimensions tend to jump by 6-15 pixels depending on the phase of the moon (or more likely which dimension I am changing).
    It would be nice if I could get LR into a 1-pixel movement mode or otherwise be able to set an exact pixel size for the cropping.  Putting my mouse into high-resolution mode does not help.  The crop tool always runs in a "fit" zoom mode so cropping at 1:1 zoom is not an option.
    The "custom aspect ratio" dialog does not get me there because it does not do pixel dimensions.
    I am aware that after doing the crop, I could use the export tool to get the exact pixel dimensions, but that is not what I am looking for.

    When you email a picture from Photos, you can choose the size.
    http://i1224.photobucket.com/albums/ee374/Diavonex/3bec08e4423ac97de93d4560186b6 daf.jpg

  • Can the initial startup galaxy picture be changed?

    The "new" Galaxy startup Screen in Leopard seems very dated to me. Is it possible to change it?
    This would be pre logging into account. I know how to change individual account
    desktop pictures.
    tks

    There are two better ways to do what you want (messing with system files is bad karma IMO).
    1. Use Terminal (one line)
    sudo defaults write /Library/Preferences/com.apple.loginwindow DesktopPicture "/path/to your Favourite/Background.jpg"
    This sets a preference in your system for the login background to be whatever you want it to be. The picture MUST be in a directory accessible to all users (e.g Users/Shared) otherwise you just get a blue screen.
    2. Use this application to set the login window background to be the same as your desktop background: http://www.apple.com/downloads/macosx/icons_screensavers/desktop2login.html
    Message was edited by: RodneyW

  • IPrint Appliance can the IP and/or Certs be changed on the iPrintAppliance?

    Hope someone can help:
    we recently replaced a few of our printers with new models..kept the same iprint printer definition - simply updated the...

    iPrint Appliance
    Version: 1.1.0.407-HP.416
    I cannot print to any Ricoh Multi-Function printers from Droid phones or iPads.
    I can print to all...

  • How to permanently change the colour of a button

    I am using an action to change the colour of a button.  This works but the colour changes for only about a second and then reverts to the original colour.  How can I make the colour change permanently?

    Hi RajeevAdobe,
    Sorry I didn't give enough detail. What I want to do is have a page with buttons that link to a number of tasks. At the start only task 1 button will be enabled and it will be a different colour from the rest.  Once they get task 1 right they go back to the first page and task 2 button will be enabled and the colour changed. The way I am doing this is if they get task 1 right I set a variable task1Success as yes then take them back to the first page which I am calling the "wall".
    So when they first enter the "wall":
    Then user goes to task 1.
    Using:
    Then when they get back to the "wall" I check if the task1Success variable has been changed to yes and if it has I enable the task 2 button and change it's colour using Apply Effect - Advanced - Colour Effect - Advanced.
    This all works OK and when the wall first loads it looks like below but the colour of task2 button only changes for about a second I want it to change permanently.
    Thanks for your help,
    Chris

  • Can the color of the message app be changed on the new iOS 7 release.

    Can the new message app colors be changed?  The new format is white and quite stark.

    Appartently not!  I might as well chime in and say that the choice of a white background and sharp font is not good and needs an update.  You can invert the colors and suffer the changes to everything else but it does make the iMessage better or follow the suggestions above and increase the boldl and sharpness.

  • Can I make form fields highlighted by default?

    When the user opens the form, can the form fields be highlighted by default?
    Thanks.

    Normally you;d place the code in a  document-level JavaScript, outside of a function definition. To do  this, select: Advanced > Document Processing > Document  JavaScripts > Add
    - Yes, that's exactly what I did and pasted the code above into it, giving it a name.
    Delete the function skeleton that it provides by default and enter the code.
    - I didn't see any function skeleton, but a blank window.
    But  I want to make sure we're talking about the same thing. What I  suggested will highlight the active fields (e.g., not hidden and/or not  read-only) with a background color, which defaults to light blue. If  you're asking about a field border color, what you may be seeing are the  red borders of the fields that are marked as required, which is a  different matter. Can you clarify which you're asking about?
    - No, I don't see any red borders. Yes, I wanted to highlight the active fields with a background color. In the case of the code above, the color is "red" not blue so I expected to see a red background color. Won't the code above make the background color red? My forms open with a blue highlight by default (can't figure out why) so the only way I can check to see if it's working is to use a different color.

  • Is it possible to change the colour of the highlighted fields in a form? And if so how?

    Hi there,
    I would like to know how to change the highlighted fields that show up on a form once it has been designed and PDF'd. I know i can turn it on or off but i would like to just change the colour so it matches our styling of the company.
    Is there a way to do this and if so how??? If not thats fine i just need to know if there is a way.
    Thanks
    Jennah

    Hi,
    What do you mean by travel? Is that when it wont change all settings across the board? e.g another staff member with adobe acrobat wont have the same settings as i do?
    I am the only one creating the forms and using any adobe settings anyway so i guess it wont really matter that they dont have the same settings as i do but its not hard to change them on all pc's anyway.
    Thanks though.

  • Change the colour of search result highlight?

    Hi i am wondering 2 things. Firstly, why the default colour that a search result is highlighted in is a strange medium-dark blue, and secondly why there is no option to change it.
    Its really hard to see any search result on almost any document, and its common knowledge that almost all documents in general have black text.
    I thought the main purpose of any search tool anywhere in the world was to save time trying to find a word amongst hundreds or thousands of other words.
    I guess adobe with their millions of dollars and experienced team weren't able to think of this.

    Click calendars at the bottom of the page the click on the i symbol for info and then you can select the colour you'd like.

Maybe you are looking for