Default background color code for Canvas, Panel, Form?
I could not find them. Are they the same for MX and Spark components?
please try the code
#EFF0F4
Regards,
Akansh
Similar Messages
-
What is the default background color of flex canvas?
Please tell me what is the RBG code for the default flex
canvas?It the Flex Style Explorer is correct, it is: 869ca7
Look at the Style Explorer if you have not yet.
Tracy -
How to retrieve default background color for JPanels or other containers?
Hi everybody, I've written a small class extending the default JTextArea, intended to provide the functionality of a small, descriptive item in JPanels.
import java.awt.*;
import javax.swing.*;
public class JInfoTextArea extends JTextArea{
public JInfoTextArea(String text){
super(text);
setEditable(false);
setFont(Font.decode("SansSerif"));
setFocusable(false);
setLineWrap(true);
setWrapStyleWord(true);
// setBackground(contentPane.getBackground());
setAlignmentX(Component.LEFT_ALIGNMENT);
setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
}As you can see, there formerly used to be a third parameter, namely contentPane, which contained a reference to the parent Container in order to set the TextArea's background color appropriately for transparency.
Now, is there ANY way to retrieve the background color without either passing a dedicated parameter or doing something like
setBackground((new JPanel()).getBackground());Any help is greatly appreciated!
Yours, StefanieTo answer your original question the UIManager contains properties of the various components. In case your interested the following program has a fancy GUI display of all the components:
http://www.discoverteenergy.com/files/ShowUIDefaults.java -
Flex 4.5.1 SDK & default-background-color Compiler Argument
Hey guys,
I was scanning the available compiler arguments list (http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7a92.html) for Flex 4.5 SDK and noticed that the -default-background-color argument is gone (I realize it's been gone since 4 just haven't used the SDK much lately). My background shows up as black when I run my app (it's an AS3 app with the new Away3D 4.0 Broomstick library) and there is no Flex code in my app so I was depending on this compiler argument to set my background color to white.
How can I achieve this now that the argument is no longer available? I just simply want to have a white background without physically having to create a white sprite in the back of my scene. Is this possible anymore?
MattSimeon,
Thanks for that, I had a brainfart and forgot you can have the properties defined in that manner. I changed it but it still wasn't working which made me realize I had to change the backgroundColor property on the view in Away3D. I realized this after trying the params for the class and then not adding the view (which had a white bg) and then i looked at the docs and bam, there it was. Thanks!
Matt -
Default background color and Focuslistener disapair on table?
When I imp. TableCellRenderer on my table the default background color and Focuslistener disapair. What can I do to get it back and still keep TableCellRenderer on my table? This is how my TableCellRenderer looks:
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col) {
JFormattedTextField beloeb = new JFormattedTextField();
beloeb.setFormatterFactory(new DefaultFormatterFactory(new NumberFormatter()));
beloeb.setBorder(null);
beloeb.setHorizontalAlignment(JTextField.RIGHT);
if (value != null) {
if (value instanceof Double) {
Double val = (Double) value;
beloeb.setValue(val);
if (val.doubleValue() < 0) {
beloeb.setForeground(Color.RED);
beloeb.setFont(new Font("Verdana",Font.PLAIN, 11));
beloeb.setOpaque(true);
return beloeb;
}I'm sorry to say this is a terrible example of a renderer. The point of using a renderer is to reuse the same object over and over. You don't keep creating Objects every time a cell is renderered. In your example your are creating:
a) JFormattedTextField
b) NumberFormatter
c) DefaultFormatterFactory
d) Font.
So you start by extending the DefaultTableCellRenderer. A JLabel is used to display the text. There is no need to use a JFormattedTextField. All you want to do is format the data. So in your constructor for the class you would create a NumberFormatter that can be reused to format your data. Then your code in the renderer would look something like:
if (value instanceof Double)
Double val = (Double)value;
setText( formatter.format(val) );
if (negative)
setForeground(Color.RED)
else
setForeground(table.getForeground());
}Here is a really simple [url http://forum.java.sun.com/thread.jsp?forum=57&thread=419688]example to get you started -
Print outs have thin border when -default-background-color is set
Hey everyone. In my application the print out have this very thin border. The -default-background-color is set to #333333 (dark grey) and this is the problem. When I set the color to #FFFFFF (white), the thin borders go away.
When I set the default-backgroun-color to #FFFFFF, my loading screen is white. I don't want that.
Does anyone know how I can have my loading screen with a #333333, but not have the thin border lines around my print outs? Setting the border properties on the printed component doesn't work. The problem is with the background color.
Thanks for reading.
TomStill hacking away at this problem.
I thought I had the fix until I deployed the AIR application. Setting the -default-background-color to white worked fine when running from flex builder, but when I installed the application. The "borders" are still showing.
Has anyone had any experience with this? I'm printing Point of Sale receipts and they look like crap with these lines around them. On top of this, some printers print differently. The HPs print a border around the whole component. The Brother printers just print the left and right. One of my customer's printers just prints the bottom and right borders. -
Default background color issue
Hi,
I am trying to change themes at run-time using
StyleManager.loadStyleDeclarations(). Whenever I switch to a theme,
the default theme's background color shows up for a fraction of a
second. I tried using the "StyleEvent.COMPLETE" event handler but
it doesn't seem to work. Is there a way to remove this? I want the
transition from my current theme to the next theme to be smooth
without the default background color appearing. If anybody can
please provide a solution for this, It would be a great help.
Thanks,
Jaiquote:
Originally posted by:
LuigiL
Project -> Properties -> Flex Compiler -> add the
default color:
-default-background-color 0xFFFFFF
That's not what he's talking about... He's saying if you load
a CSS file with loadStyleDeclarations(), it will momentarily flash
the default, green Halo theme before switching to the new style...
If I load up my white theme (White.swf -- compiled to swf from css)
and then I want to change to my red theme (Red.swf) like:
StyleManager.unloadStyleDeclarations("White.swf");
StyleManager.loadStyleDeclarations("Red.swf");
At the * point in the execution, it will flash the green Halo
theme instead of just making a smooth transition from white to
red... It doesn't look so professional...
I have the same problem when switching themes, and it's very
annoying... Guess I'll keep an eye on this thread... -
Change default background color in Dynamic pages
Anyone knows how to change the default background color of a
dynamic content page in WEBDB 2.2?.
I want to display some information with a query in a Dynamic
Content Page but the background color is, by default, beige.
I try to force the the background color placing the html tag
<td bgcolor=#FFFFFF> but there is still a beige strip at the
left side of the table.
ThanksHi Richard,
For about how to inspect page element, you can use IE Developer Tools:
https://msdn.microsoft.com/en-us/library/ie/bg182326%28v=vs.85%29?f=255&MSPPError=-2147217396
Thanks
Patrick Liang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Setting a default background color
Hi All,
I would like to set a default background color for all the
components that I'm going to draw. What is the best
way to achieve this?
Thanks.
SyedYou can set using UIManager of the Look and Feel.
UIManger.put("Button.background", Color.blue);
will set the color of all the JButtons to blue. Like that you can change for all the components you need.
Mohan -
Flex 4 lacks the default-background-color compiler option?
Hello,
started converting my Flex 3 applications to Flex 4 and noticed that Flex 4 lacks the default-background-color compiler option.
Flex 3 has it: http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_14.html
Flex 4 doesn't: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7a92.html
This raises a question: how am I supposed to keep my background from flashing from grey to white when the RIA is loaded? Is it possible to use preloader with background set to whatever color I like to see? Any easier solutions?
Best regards,
JukkaThis works for me:
@namespace mx "library://ns.adobe.com/flex/mx";
mx|Application{
background-color:#ffffff;
Of course if you have changed the Application element to spark equivalent, you have to change the namespace.
Regards,
Jukka -
How to change the background color only for one HTML-Portlet?
Hi all,
I have created a HTML-Portlet in my root-page. The root page have a style: Main-Style.
I want to change the background-color only for this one HTML-Portlet:
<html>
<header><title>Test</title></header>
<body bgcolor="#999999">
Test
</body>
</html>
But this does not work...
When I use the CSS, then it will change the background-color for the root-page too.
Thans
Leonid Pavlovcould you try this
<table bgcolor="#999999">
<tr>
<td>
test
</td>
</tr>
</table>
I don't think you need <html><header><title>Test</title></header>
<body></body></html> for your HTML-Portlet. -
Setting color codes for more than one photo at a time
Is there any way to set color codes for more than one photo at a time?
Hi John,
I will look at keywords. My issue is speed. Right now I am culling and editing an event shoot that spanned a week with 35 separate events and more than 5000 images. So I use the fastest most convenient method I can and it still takes a long time to have a completed and final shoot. On this shoot I will end up with a final set of around 1500 images. Right now I am finishing processing a show that will hang in the Deutsches Amerikanish Zentrum in Stuttgart.
As I am sure you are aware by now, having seen enough of my inane questions that over the last two years or since Lightroom version 1.xx if I could not figure out how to do something I skipped it. So many things in Lightroom are buried and unless you have a mind like a steel trap (and think that some of you guys in the forum do) locating how to do something is not obvious.
For example, I only learned (in the last hour) that I could assign colors as a group of selections by using Shift + number. I found this in a side head in Martin Evenings Lightroom book. I still do not know how to find a way to display the color filter "selection" set in Library mode. Is there a way?
To top it off, Stuttgart Media University asked me if I would add a Lightroom module to my schedule this year. Now I have a compelling reason to learn all those missing pieces that I have created workarounds for. Hence the number of posts you have been seeing from me over the past few of weeks.
I tell my class that there are no such things as stupid questions, only questions. Now I am practicing what I have been preaching for the last gazillion years. Guys like you have been great.
My workflow is
1. I first separate all images by event. I do that at the time of import.
2. I do a fast pass rejecting all the obviously bad images
3. I do a second pass grouping the images by sub-group (speeches, people talking, performances, etc.) This is where I run out of selection methods and your key-wording could work but it would probably take too much time to establish a keyword set for a single event. Where I have more than five subgroups I set up different collection sets with one collection for each sub group. However I would like to keep a single event in one collection.
4. I then select the images to be used by color code.
5. Next I process the final images (crop develop etc) by collection.
6. Last I output the set according to client requirement.
If you have a better workflow, I am all ears.
By the way, what is your photo specialty and where are you located?
Jim -
How do I change the background color of my canvas in FCPX? I changed it from black to checkered but would like to return it to it's orginal settings.
ThanksYou can change the background display color in the playback preferences, either black, white, or checkerboard. This does not change the output color. If you want to add a color to the video, you have to place a custom generator underneath your video and change the color in the inspector.
-
Background color change for XML Template
Hi All,
We have created a xml template for creation of news using xml form builder. When we are creating a news by using this template the background color of the news always shows SAP default color (light blue) for both Renderlist and Show forms. Our requirement is to change the background color.
Any help can be appreciated and points will be rewarded immediately.
Thanks,
SatyaHi Satyadev,
You have 3 options:
Within the forms builder you can get a white background by setting the form to either "border" or "no border". This is done by clicking anywhere on the form (where there is no other element) and modifying the "style" property
You can modify the portal theme so that the background colour is your choice. However this will affect all forms in the portal, not just this one.
Or you can manually modify the form XSL stylesheet. This involves typing the html code to apply your chosen colour. However, this modification is lost if you re-generate the XML forms project, so this should be a last resort.
Hope this helps,
Chris -
Where is Background Color Property for Text Field Prompt in Developer 6i
I update all my works from developer 2000 to developer 6i (forms 6.0). All my screens are now irregular becoz, the text field prompt background color property is not present in forms 6i. Can you help me how to solve this prob.
(one more solution i found is, can do the prompt as separate canvas object, but is there any way to set the background color for prompt entered in text field.)
Thank you
RajHi
I think there is a bug in the first release of Forms 6i,
where the prompts got the same backgroung color of the
related item (in fact, it must have no back color,
because it has no "background color" property).
Try applying a patch over it.
I update all my works from developer 2000 to developer 6i (forms 6.0). All my screens are now irregular becoz, the text field prompt background color property is not present in forms 6i. Can you help me how to solve this prob.
(one more solution i found is, can do the prompt as separate canvas object, but is there any way to set the background color for prompt entered in text field.)
Thank you
Raj
Maybe you are looking for
-
CUPS Printing broken after 10.4.11 upg
I have just combo updated 2 x PowerPC and 1 x Intel Mac to 10.4.11 after which they will not print via the FieryCupsFilter to a PostScript Minolta printer - 10.4.10 and earlier Macs are still OK. Printing appears to be normal in that the Print Monito
-
Sony HC9 Camera and Adobe Premiere Pro CS 3
I just bought a new (old stock) Sony HDR-HC9 video camera because I like tworking with tape much better than the HDD recorders on the market. I just tried to import (capture) video from the camera in Adobe Premiere Pro CS3 v3.2.0 and the app does no
-
WLC problem - Some LWAPP APs not working
Dear All, Our WLC 4402 and 46 1130AG Access points in LWAPP mode have been working flawlesly for the past few years, but suddenly this week some access points have not been working (but the rest are fine). They are correctly registered on the WLC, bu
-
Does anyone know if GoLive CS2 (8.0.1) is compatible with the new Mac Lion OS? It works fine with Snow Leopard.
-
my brother reset my ipod touch 4th gen, so when downloading everything again I got charged, is this supposed to happen?