Setting the background color of the selection when text selected (input TextField)

My input TextField has a black background. The problem is,
when some text is enter and then selected, the selection background
color remains black and the selected text remains white. Because of
this it's imposible to tell that the text has been selected. Is
there a way to change the selection background color, or do I
really have to write a custom textfield? :(

Yes, I do have an additional attribute called "identity" which is set to the original table where it came from. The problem is that I do not know how to check for it in my renderer. I will post my renderer code here
public class myTableRenderer extends DefaultTableCellRenderer{
public Component getTableCellRendererComponent( JTable table,Object value,boolean isSelected,boolean hasFocus,int row,int column) {
final Component component = super.getTableCellRendererComponent(table, value,isSelected,hasFocus, row, column);
if ( value != null ) {
if ( value instanceof String ) {
String val = value.toString();
if ( val.compareTo("DisplayKnown") == 0 ) {
component.setBackground(Color.CYAN);
else
component.setBackground(Color.LIGHT_GRAY);
} // end if value not null
return component;
} // end mytablerenderer
What happens here, is that only the column with the identity value "DisplayKnown" gets the color blue. I would like to color the whole row with that column value to be Blue.
Does this make sense??
Thanks,
npatel

Similar Messages

  • Changing the background color of the row of the selected cell in table view

    How can I change the background color of the table row when user clicks on table cell in table view?
    Edited by: a_brar on May 5, 2012 11:12 PM

    You could apply the following css style (by defining a custom stylsheet with the following lines and loading it into your app).
    The last color sets the background color of the selected row while the table-view has focus (in this case to orange).
    .table-view:focused .table-row-cell:filled:focused:selected {
        -fx-background-color: -fx-focus-color, -fx-cell-focus-inner-border, orange;
    }There are quite a lot of subtleties in the css styling for the tableview (e.g. different colors for the selected row when the control has focus vs when it doesn't or when the user hovers over a selected row in an unfocussed tableview), which you may want to cater for when chaning the background color of the selected row in a table view. There is also alternate styling for when the tableview is in row selection vs cell selection mode. So you may want to look at customizing further based on the css styles in caspian.css in sdk/rt/lib/jfxrt.jar if you can understand the complex css there.

  • Dynamically Set Subreport Background Color to the Same Value as Main Report Background Color

    I have a report that contains a subreport.  The main report has groupings in it.  I am dynamically setting the background color of the group rows based on an expression.  That part is working fine.  The problem that I am having is that
    I don't know how to get the subreport to "inherit" the background color of the grouping that holds it.
    Basically, I have different row shadings on my report differentiating the groupings except for the rows where the subreport shows.
    How do I go about setting the subreport background color to equal it's contaiing grouping's background color?  Thanks in advance for any and all assistance provided.

    The parameter method given by gpshukla will send the info to the subreport, but you don't need the color parameter in the main report, only the subreport. The trick is in setting the value of that parameter.
    Right-click the cell with the embedded subreport, you can select subreport properties.
    Select Parameters and add a parameter.
    The name column is the name of the parameter in the subreport (color) and value is the value to set it to.
    Set name to "color" (no quotes).
    Set Value to the same expression used to set the background color for the row.
    In the subreport, click the design surface to select the report (not header or footer).
    In the properties pane, select background color and choose expression from the dropdown.
    Type =Parameters!color.Value into the expression builder.
    This will work assuming that background color in the main report row will not change without also refreshing the subreport.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • Hi there, I want to change the background-color of the browser, when a popup-picture is shown. This picture pops up by clicking a hyperlink in the text...can anyone help me please...thanks a lot

    Hi there, I want to change the background-color of the browser, when a popup-picture is shown. This picture pops up by clicking a hyperlink in the text...can anyone help me please...thanks a lot

    Hi,
    CSS is interpreted by your browser, so server cache seems unlikely in htis case. There is however some hierarchy in CSS, so parts of the APEX CSS, theme CSS or page CSS might overwright or block yours.
    Does changing the CSS on runtime affect your page? Eg, run the following in your browser console and see if your page turns black: $('#uBodyContainer').css("background-color","black")
    Also try moving up your css in the hierarchy labeling it as important:
    div#uBodyContainer { 
      background-color:#000000 !important;  
    See:Assigning property values, Cascading, and Inheritance
    Regards,
    Vincent
    http://vincentdeelen.blogspot.com

  • How can I change the background color in the inbox?

    The background color in my inbox (well, all mailboxes) is white. A yellow background would make the existing black text a lot easier to read. How can I change the background color in the inbox?

    Themes work in Thunderbird - duggabe was not refering to Firefox.
    Another useful addon is theme and font changer:
    * https://addons.mozilla.org/fr/thunderbird/addon/theme-font-size-changer/
    However, Thunderbird allows you to modify all sorts of things.
    Make hidden files and folders visible:
    * http://kb.mozillazine.org/Show_hidden_files_and_folders
    Help > Troubleshooting Information
    Click on 'show Folder' button
    a window opens shwoing profile folder name
    Close Thunderbird now - this is important
    In the profile name folder, Create a new folder called '''chrome''' - note the spelling
    It should be in the same place as the 'Mail' folder.
    see first image below.
    Open Notepad
    Can be located : Start > Programs > accessories
    Copy everything shown between the lines below.
    Paste into Notepad.
    Save as '''userChrome.css''' - note the spelling (edit updated - this was a typo error)
    This should be saved in the '''chrome''' folder.
    see second image below.
    Restart Thunderbird.
    I have chosen a yellow for you
    <pre>
    #f6f58c = a yellow....it is a hex code for a colour.
    </pre>
    You can change it if required. Remember when updating anything in the profile folders, you must close Thunderbird first.
    More info on colours.
    * http://www.yourhtmlsource.com/stylesheets/namedcolours.html
    <pre>
    * Do not remove the @namespace line -- it's required for correct functioning
    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
    /*Background colour for message list*/
    #threadTree > treechildren::-moz-tree-row {
    background-color: #f6f58c !important;
    </pre>
    -------------------------------------------

  • How do I change the background color of the pages?

    I have been having trouble finding how to change the background color of the pages. I would prefer a black background.
    thanks

    Do you  know how to edit the template?   If not  simply  choose a rectangle shape, change colour to Black and using ARRANGE, send to back and  bring forward till it replaces whatever is there.
    The best way is to  pull down the book slide to reveal the Layout - which shows you the chapters and section etc  which make up a template.  You have to  use the same procedure on ever page from the template you intend to  use.
    In the Template Layout, select  your page. Click on whatever your background colour is...IF its unlocked you see the  square pull handles in corners - now simply select Black and it should change the colour - if not and its unlocked, it  may be a black image, in which case delete it, Insert a new rectangle, pull to  fit the  page and change colour to  black. It should now be hiding  the other content, ARRANGE > Send to Back and it should sit  behind all your content. Now go back to arrange and LOCK.
    You should see a red marker on  the left with whatever page you are editing "Save Changes" click it and its done... repeat on all other pages.

  • Change the background color of a particular word without changing the background color of the rest of the text in a textbox

    Hello,
    I'm designing my own website and want to know how to change the background color of a particular word without changing the background color of the rest of the text in a textbox. If i can't do this, how can I create a Table, similar to Excel with iWeb?
    Thank you very much!
    Roger.

    If i can't do this, how can I create a Table, similar to Excel with iWeb?
    Read this :
         Create and add a TABLE in iWeb »
         More about a TABLE in iWeb »
         Sample 1
         Sample 2

  • The new operating system changed the background color of the photos app from black to white.  How do I change the color back to black?

    The new operating system (IOS 7) changed the background color of the Photos App (Camera Roll) from black to white.  How do I change the color back to black?

    You can't. Sorry.
    http://www.apple.com/feedback/
    You can tell apple that you'd like it and see if they respond....eventually. (you don't get responses from your feedback mails but they have been known to issue changes that users have asked for, such as the ability to mass delete apps)

  • Changing the background color of the Modern interface of an user

    Hi
    How do I change the background color
    of the Modern interface of an user in
    Windows 8.1 Update 1?
    Thanks
    Bye
    Balubeto

    Hi,
    Just switch to the start screen, then move the mouse to the right side, click the "Settings" bar, then click "Personalize", then choose a colour you want.
    Add: you can also refer to this link to change the colour by editing registry
    http://www.eightforums.com/tutorials/29573-color-background-accent-force-windows-8-1-a.html
    NOTE
    This
    response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.
    Microsoft
    does not control these sites and has not tested any software or information found on these sites.
    Yolanda Zhu
    TechNet Community Support

  • When converting word doc to pdf, my images with text only show the background color of the text box.

    I have a word doc that I am trying to conver to pdf.  I have jpegs with text boxes on top of them on one page.  It looks great on the screen but after I convert to pdf, the text boxes only have half the text, the first half of the text box is just white - the background color.  If I take the background color out of the text box, the text converts over fine but I need the background color.
    I have tried many things here on the print settings, standard, high quality print, unchecking the compression on the images.  Any help?

    Thank you for your posting. These forums are specific to the
    Acrobat.com website and it's set of hosted services, and do not
    cover the Acrobat family of desktop products. Please visit the
    following forums for any questions related to the Acrobat family of
    desktop products:
    http://www.adobeforums.com/cgi-bin/webx/.3bbeda8b/

  • How to change the background color of a button when the button is emphasized

    Hi,
    I have a button that is in the "emphasized" state, I realized there is a default color "light blue" when the button is emphasized. is there any way I can change this default color? so if mu button goes to emphasized state I can control which color it should be
    I am using "Halo" for the theme, and I was not able to change the Focus color through the "Appearance Window" in Flash Builder 4
    any help would be appreciated

    Take a look at the accentColor flag of <s:Button>. It looks like you can do it there. But, it also looks like emphasized needs to be "true" and that you may need to interrupt the button's automatic update event... I've never tried to do this though. And, I imagine you only need to listen to button state changes if you want to dynamically control the emphasized color. If you just want to set a static value other than the default, it looks like setting emphasized to true and the uint of the accentColor will do the trick...

  • Help setting the background color in the browser

    I’m setting up my web pages to be 960 x 600 pixels (or possibly 960 x 660).  How do I define a background color for the overflow in case people are viewing on higher than 1024 x 768 resolution -  right now everything outside of my webpage shows up as the default white.
    Thanks

    Use CSS.
    body { background-color:heliotrope; }

  • In Pages 09' how do I change the background colors on the templates?

    I have been trying to change the background on one of the templates from red to green for a while.  I can't figure it out and i can't find answers online any where that are helpful at all.  I just need to changes the background color to what I want it to be and not what the programs sets them too.  Any ideas?  I'm totally stumped!
    Thanks for the help!

    Hi Burke,
    Here's the result, using Peggy's suggestion:
    Process:
    Click on the thin strip of red to the left of the title ("THE THOMPSONS") to select the background.
    You'll see the small x in each corner, indicating the object is locked.
    Go Arrange > Unlock (or press option-command-L) to unlock the object.
    Click on the Fill Color well in the format bar, and choose a new colour from the palette.
    Go Arrange > Lock (or press command-L to re-lock the object.
    Save the result.
    Regards,
    Barry

  • Why does converting word into PDF does not take the background color of the page?

    When I do a page background on a document, and save as pdf, it does not take the background color. It shows only white background.

    This may be a limitation with the built in PDF writer in OS X. Never tried it so I have no idea if it does the same on my Mac.
    As this is not a MS Word problem you are in the right set of forums.
    Have you tried another PDF writer other then the built in one?

  • How can i change the background color in the mobile windows adobe reader app? i want to change it from black to white but don't know how.

    really want to change the background color of my documents in the mobile app. ive tried to search the answer online, in blogs and other various 'life hacks' blogs or articles, but so far everyone is talking about the desktop version. i really want to figure this out. is there even an option for the mobile version for windows? the only editing icons when a document is open are: export, home, make public, search in document, highlight/strikethrough/underline/comment and continuous/single view. if there isnt an option to edit background color, can i suggest that the makers of the windows mobile version make one, and make it fast please! any help would be appreciated. -CHANGE BACKGROUND COLOR

    hi, thanks for helping me ...
    i have used the above url and made changes to my OAF page, but i didn't get the desired output and its also giving as the above code output .
    i kept OraBgGrayVeryDark in Css style in property inspector for every region including PageLayout and i also did some changes in cabo/styles/*.css classes.
    eventhough it is picking the color upto footer level only and it is not applying for advanced table also.
    can anyone please give your views in this..

  • Change the background color on the textbox with setToolTipText method

    Hi there,
    Is there anyway to change the little help text background color
    with the setTipToolText() method ???
    Thanks a million
    Christian

    use the javax.swing.UIManager and set the appropriate properties:
    ToolTip.backgroundInactive
    ToolTip.borderInactive
    ToolTip.foregroundInactive
    ToolTip.border
    ToolTip.foreground
    ToolTip.font
    ToolTip.hideAccelerator
    ToolTip.background <- this is probably the one you want

Maybe you are looking for

  • I tunes update 10.5 and music files not playing correctly

    After I updated iTunes to 10.5, a vast majority of my music files do not play correctly. When they do play, they sound as if they have been super compressed and I cannot figure out why. I have un installed/re installed, checked all of my drivers and

  • How can I get an image to stretch the length of my Website when being viewed on larger screens?

    Heres an example of my site im working on HERE I would like for the image on the landing page to stretch from edge to edge as needed when being viewed on larger screens. I know it's possible because it's done here I just don't know how to do it PLEAS

  • CC&B 2.1 on Oracle RAC 10.2.0 - any issues,tips,gotcha's

    I am installing CC&B 2.1 on Oracle RAC 10.2.0.3. Is there anyone in the forum has experience of this and wants to share / compare notes. The architecture is 2 SUN M4000 servers (32gb RAM) for RAC with dataguard standby physical and logial. Applicatio

  • Cannot connect to server without blocking.

    I've been able to execute and fetch in non blocking fashion but I cannot seem to call ServerAttach or SessionBegin and have either of them return OCI_STILL_EXECUTING even though both calls take a pretty long time to complete. Can someone please expla

  • IDVD on a superdrive

    I read other posts regarding what im going to ask, but none seem to be applicable to my computer. Having said that, my problem is that I want to burn a DVD on iDVD that is 4.6 GB... I tried using that french patch, but it seems not to work for the iD