Disabled font and background color
I am trying to change the font and background color of a disabled h:inputtext tag. Currently, if I set disabled=true on an h:inputtext tag, the background in gray and the font is white. I would like to somehow customize that to be background gray and font color black. Any ideas?
Check these
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ccb6bcf4-0401-0010-e3bc-ec0ef03e13d1
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d2b1d790-0201-0010-25b7-d1fb059a8ad9
Regards, Anilkumar
P.S : https://www.sdn.sap.com/irj/sdn/advancedsearch?query=theme&cat=sdn_library
Message was edited by:
Anilkumar Vippagunta
Similar Messages
-
Setting fonts and Background color
Hi,
Is there anyway to set the font and background color on a jLabel? Thanks for your help!...emmmm lets see... for the font and the background...
maybe setFont and maybe setBackground!
http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JComponent.html -
Tableview Cell - setting the font and background colors
Hi,
I am developing a BSP with a Tableview. The user asked me about displaying a row with a diferent color (font or background) when some data changes on this table.
I am thinking about using a Tableview Iterator to evaluate the content of a cell... but I dont know if I can change the look and feel of the row on where this cell is.
Has someone dealed with this? Can you tell me how?
thanks
ArielActually this is the whole purpose of the Iterator.
I would suggest you take a look at the SBSEXT_HTMLB and SBSEXT_TABLE BSP Application as well as the following weblogs.
/people/thomas.jung3/blog/2004/09/15/bsp-150-a-developer146s-journal-part-xi--table-view-iterators
/people/sap.user72/blog/2004/09/07/bsp-howto-exploring-bsp-development-and-the-miniwas-620
/people/sap.user72/blog/2004/08/27/bsp-howto-tableview-iterator--column-header-graphics
/people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator
In those examples you'll see how easy it is to alter the content of the current cell or a cell with a specific value and output anything from graphics to input fields or dropdown boxes or even just change the text, color and styles of the content. -
Changing font and background color for all components
Hi,
This is my first time writing a GUI, and I'm pretty new to Swing and Java. I just recently switched from C++, and so far Java seems to be doing a nice job =)
Currently I have a gazilion components (textfields, labels, panels) and I'm wondering if there is a way to change their background/foreground colours without adding in setBackground/setForeground for every single component.
I've done some researching onto using Look and Feel, but there aren't any current ones that suits my needs. And everyone seems to mention that programming your own is pretty complicated.
My boss wants a slick white text on black background interface, so you can imagine that he's not very impressed with the current default greyish colours =)
Thank you for any help!
CindyHi Cindy,
I'm not sure how effective a solution this will be, but you could try:UIManager.put("TextField.background", Color.BLACK); // Default text field background becomes blackThere are many more defaults you'd have to change and could probably achieve it more reliably and simply by creating or editing the properties file that controls the way the look and feel (even if it's the default) is implemented. Take a look at:
http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/UIManager.htmlHope this is helpful
Chris. -
How to change the font and background color in PowerShell
From your error messages to your output parameters, changing the colors of different PowerShell variables and outcomes is a straightforward and useful way to customize your PowerShell console. You can quickly identify ouputs, error messages, parameters and more with simple color cues – and when you're dealing with a longer script, being able to quickly identify anything is a huge help.In aguide on how to configure and customize your color settingsin PowerShell, Petri walks through each and every step, and even donates some of itsown custom PowerShell color themes scripts. (It should be noted that this only works for PowerShell console and not PowerShell ISE.) You can access your color configuration by entering:Powershell$host.privatedataThis will pull up a list of all your colors as they are currently set.Image credit:Jeff HicksNow...
This topic first appeared in the Spiceworks CommunityUse a custom Renderer. This is the JTable tutorial:
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html -
Mx|Tree disable hover, selection and background color
Hello.
I would like to know how can i disable the dhover, selection and background color.
i don't need selection at all so if i can just disable the selection in a tree component (plus make the background color transparent) it would be great.
thanksRTFM
Use Tree's "selectable" property and "backgroundAlpha" style. -
How to set text and background color of current row in a adf table?
Hi,
In jdev 11.1.2.3,
How to set text fond and background color of current row in a adf table?
I tried to set Background color in table property, but that is not what i want.
Thanks.Hi,
We almost had the same requirement, but we just needed to color a specific column.
Here goes the solution to that, you might do the same for your row highlighting
Changes are required in jsff and one method to be added in backing bean
1. JSFF :
<af:column headerText="Amount"
id="c4" width="100"
inlineStyle="#{backingBeanScope.BackingBean.cellColor}">2. Backing Bean
//searchResultTableVO is Table's VO
public String getCellColor() {
FacesContext ctx = FacesContext.getCurrentInstance();
ExpressionFactory ef = ctx.getApplication().getExpressionFactory();
ValueExpression ve = ef.createValueExpression(ctx.getELContext(), "#{row}", FacesCtrlHierNodeBinding.class);
FacesCtrlHierNodeBinding node = (FacesCtrlHierNodeBinding)ve.getValue(ctx.getELContext());
Row row = node.getRow();
if(row.equals(searchResultTableVO.getCurrentRow())){
//You can add your inline style for font-style too
return "background-color:Red;";
return null;
}Hope this is helpful :)
Regards,
Neha.. -
Numeric Control - Text and Background Color changes when operating inc/dec arrows
Hi,
I'm developing an application that has a panel with black background and green or red numbers. I've added numeric controls and configured the text color and text background color attributes accordinglingy. I set the numeric control to hot or validate control mode and show the inc/dec arrows, since I want to be able to incr/decr the numbers.
The problem is that when I run the application and I hit the inc/dec arrows, then the colors inside the numeric control frame become inverted: the black background becomes white and the green number becomes cyan. I've created a callback function assosicated with the numeric control and tried forcing the text and background color, in the EVENT_VAL_CHANGED section, using the SetCtrlAttrribute() function, but to no avail. Also added ProcessDrawEvents didn't help.
When I mouse click again outside the numeric control, then it reverts back to its original colors (green text, black background).
Any suggestions as to how I can fix this ?
I want it to keep its original colors at all times, even when I'm clicking the incr/decr arrows...
Kind regards,
pgriep
Solved!
Go to Solution.Ok, now I see what's happening.
The effect you are seeing is a resul of standard numeric control behaviour combined with the black bcakground: when you use arrows to increment/decrement a numeric control its value will be automatically highlighted; on the default background you'll see the white area and figures highlighted in black (white numbers on balck background). If you set the background to black the system will automatically change the colors used to highlight the text, and that's what you're seeing.
By the way, this does not happens if you use up and down keys on the keyboard: text is not highlighted so colors are not changing.
Additionally, this is not only valid for numerics: see the behaviour of the string controls on the bottom of your panel when you tab up to them. This effect does not happen on controls set as indicator like the big clock in the upper part of the panel.
The only way I can see to overcome this behaviour is to hide control built-in arrows and create your own up and down buttons with which you can manipulate the numeric control. I am attaching a modified version of your project with buttons on the left numeric; sorry for the poor aesthetic: I have used some arrow icons I had on my disk, you may want to create your own arrows with the colors and shape you prefer.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?
Attachments:
ModifiedApplication.zip 9 KB -
How to change foreground and background color using CC SDK?
Hello all,
I am just starting to study the sdk (Mac CC). Currently, I am seeking the answer to change foreground and background color using CC SDK?
Is it possible to do so? In addition, will the Image Mode such as RGB, CYMK or Grayscale be effecting such solution?
Thanks in advance.These are NOT dropdown menus. They are dropdown LISTS.
http://web.me.com/toad.hall/Demo1/Drop_DownMenus.html
And from the links in the Google search you can learn that a list item has no style.
And a dropdown list behaves differently from dropdown menus. Here's how it looks on Mobile Safari : -
Apple Mail color coding both font and background
Is there a way to color-code both the font and the background of emails via Rules? As soon as you set a rule to color code one of them another becomes unavailable. This is probably by design but then I'd say this is very stupid design. I do not see any reason why both can not be set except that nobedy from Apple uses this feature .
Before starting to complain, I have to admit that Mail.app made me switch from other rss and mail applications. It works well and I like having rss and mail in one program.
But I totaly agree with you, I found this post by trying to find a fix for this ugly header. Also it's a mistery to me why the source name is the main title and the subject is the smaller sub title...
And while I'm at it, just one more thing, this rss header or at least the title should be a link. So that if you want to open the selected post in your browser, you don't have to scroll down to the "read more" link. -
UITableView section header: How to find out font size and background color
Hi, does anyone know how to find out the default font and default background color(or image?) used in the section header of a tableView
I'd like to create a view with the same background color/image and use the same font (with different color) used by the section headerI don't think there are any getter methods for a section header. But I wouldn't be surprised if the header was an object. You might try setting some header text to a key string and searching recursively through all the subviews for objects that respond to a text message. It might help to also print the description of objects that don't respond to text. I haven't tried this yet, but will let you know if I get any useful results.
I guess another approach would be to use viewForHeaderInSection to set the font and color to whatever you wanted. Then you wouldn't have any problem matching it. -
How can i change the font and the background of the Total row in the report?
Hi Cindy,
I'm not sure how effective a solution this will be, but you could try:UIManager.put("TextField.background", Color.BLACK); // Default text field background becomes blackThere are many more defaults you'd have to change and could probably achieve it more reliably and simply by creating or editing the properties file that controls the way the look and feel (even if it's the default) is implemented. Take a look at:
http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/UIManager.htmlHope this is helpful
Chris. -
Problem with cfdocument and background colors with table borders
i am having a great deal of difficulty with cfdocument
rendering my tables with cells that have background colors. the
background colors seem to bleed through the table border. a picture
at 100% magnification can be seen at
http://www.vitad.com/cfdoc.jpg
and at 1600% magnification at:
http://www.vitad.com/cfdoc2.jpg.
i am attaching sample code of the what generated the pdf in the
pictures. btw, i am running cfmx 7 with hot fix 2.Hi fresher4flex,
Since you are using the item Renderer for the DataGrid Column try to apply the styles dynamically to the background of your itemRenderer by making using of the rollOver and rollOut events.
Thanks,
Bhasker -
Eraser tool won't reverse when swapping fore and background colors
When using the eraser tool to blend layers I often want to "unerase" a bit so hit "X" to paint with white and it still erases to layer below just as it had before switching the foreground "W" and background "B" colors. Makes no sense to me as I thought I could paint back in by doing so.
"You can reverse transparency by painting white (or a light shade) on a layer mask that has been painted black (or a dark shade)." Thanks, Noel.
That is what I am attempting, but when I paint with the white on the layer mask it continues to erase rather than reverse transparency. I was able to do this in the past without fail, but not today. My gut feeling is I've done something which has triggered this problem, but have retraced my steps carefully and am still not finding the solution. The History brush idea I will attempt later, but prefer to first figure out why my old tried and true method is failing. -
NativeWindow.stage.fullScreenSourceRect and background color
When I create new NativeWindow with normal chrome in AIR app and use fullScreenSourceRect for fullscreen state how can I control the background color?
http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/display/Stage.html
as the Language Reference states:
If the aspect ratio was not matched, the stage background color, which is white by default, would show on each side instead of the green background.
swf background color should be on the sides, but the sides are gray...?I don't think you can control the color that is shown when your fullscreenSourceRect does not have the same aspect ratio as the screen. The solution is to match the two aspect ratios.
Maybe you are looking for
-
When I plug in my Ipod touch it has a symbol on it saying connect to Itunes. When I connect it to Itunes it says I need to unlock my Ipod before I can connect to Itunes but my Ipod touch wont even let me put a code in, it just has that symbol. I trie
-
Please let us opt for column view - the new UI is so cumbersome. Change is not always good...
-
can anyone tell me if my video ipod should vibrate in my hand while playing? I assume its from the hard drive there is no indication of any malfunction other than the vibration. My concern is that this may be a precurser to a underlying problem. this
-
I already have Reader 10.1.4 installed. I receive a 'message' indicating that I need to ' ... download Adobe Reader ... ' It is extremely important that I access a specific document from a website asap ..... but I cannot. Please help !!!!
-
recently installed McAfee Security for Mac. Free download from AT&T. Since then, Safari has been dropping all preferences each time I launch the app. Is it the new install or something else?