Default background messages
Hi,
I try to figure out how to change the default background of the message windows in Mail. I try to realise grey as the default background colour but I have not figured out any way to do this other that set it for each message individually.
Thanks in advance for feedback.
Here is some code that will display all the UIManager properties and the default settings.
import javax.swing.*;
import java.util.*;
public class ShowUIManager {
public static void main(String[] args) {
UIDefaults defaults = UIManager.getDefaults();
System.out.println("Count Item = " + defaults.size());
String[ ] colName = {"Key", "Value"};
String[ ][ ] rowData = new String[ defaults.size() ][ 2 ];
int i = 0;
for(Enumeration e = defaults.keys(); e.hasMoreElements(); i++){
Object key = e.nextElement();
rowData[ i ] [ 0 ] = key.toString();
rowData[ i ] [ 1 ] = ""+defaults.get(key);
System.out.println(rowData[0]+" ,, "+rowData[i][1]);
JFrame f = new JFrame("UIDefaults Key-Value sheet");
JTable t = new JTable(rowData, colName);
f.setContentPane(new JScrollPane(t));
//f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.pack();
f.setVisible(true);
Similar Messages
-
Is a script available to set a default background for email messages?
I am new to the community, not to Mac though. Currently I am on a new MacBook Air, Lion installed.
I had a couple of minor issues about mail, the first I solved myself using automator, and succeding in sending an attachment file from finder. It went on working also after the upgrade from snow leopard to lion.
I could not find out how to set a specific default background for new email messages (e.g. a color, or a certain template); I do not want to do it everytime for each message. I tried automator, the workflows runs ok, tried to save it as service for mail and for finder but it did not catch; as application it works, but veeeery slow.
When I pull down the mail window, the Services line says "no services available".
Anyone who worked on this?
thanksHi ..
That's not possible as yet but you can provide feedback to Apple here. -
Numbers questioons:
-how do I change the automatic default background fill color so it stays a non white color?
-what is the formula to express the ratio of two numbers as a percentage?
-how do I create a signal formula to be sue against an entire column of data (for example, if I wanted to multiply the each cell in the column by the number 10)?
-I have created a spreadsheet in Numbers with header and rows labelled and it contains formulas as well. I now want to create a new 'blank' of this template with same header and row names and formulas, but without the cell entries from my earlier exerciser so I can use again in the future. How do I do this?Hi Matt,
For short columns, the easiest method is to select the cell containing the formula, then grab the fill handle (small circle at the botom right of the selected cell) and drag down.
For long columns, use either Jerry's suggestion (copy/paste) or Insert > Fill > Fill Down.
Copy/Paste:
Select the cell containing the formula. Copy
Select from the cell containing teh formula to the end of the column. Paste.
Fill Down:
After entering the formula, and pressing enter...
Click on the column reference tab to select the whole column.
Command click on each cell above the one containing the formula to remove it from the selection.
When cell with the formula is the top cell in the selection, go Insert > Fill > Fill Down.
Pick whichever is easiest.
Regards,
Barry -
Hi! I would like to know if there is any possibility to remove the option "Set as default background..." from the right-click menu on a picture, for all users. I know that's possible to edit userContent.css or userChrome.css, but this concerns only a profile at a time and being in a domain, I would like to set this for all people using Firefox.
Can it be possible to edit a mozilla.cfg file to get the same result?
Thank you in advance for help and tips.AFAIK then there is no way to do that system wide. You can only do that via userChrome.css or an extension like the Menu Editor per profile .You can install extensions globally, but the user will have to enable them anyway. That is not required for userChrome.css code.
-
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 -
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 Colour not Black?
I'm having a very irritating problem with the Windows default background colour.
A while ago I had set it to this off-shade of yellow, but now whenever I make a new theme (or even load a saved one) my background colour reverts to this aforementioned yellow instead of whatever I have set it to. Which means my themes can never be saved
and loaded, lest I want to see that awful colour again.
A step-by-step process for those who are having trouble understanding my wording:
make new unsaved theme, bg colour is currently set to yellow. I switch it to black, it works as intended.
Save this theme.
Whenever I load the saved theme, the background colour is yellow, not black, despite all other personalizations saving correctly.
Is there a way to change the default colour so that all themes behave as intended, rather than reverting to my previously selected colour?Hi,
Can you show us some different screenshots to know more about this issue?
Alex Zhao
TechNet Community Support -
Restore Preview default background?
Hello! Can you help me guys? How can I restore the default background in Preview? (10.7 Lion). I changed it to a color in the preferences but I can't change it back to the default texture... :S (that is here by the way: /System/Library/Frameworks/AppKit.framework/Versions/C/Resources/NSTexturedFullS creenBackgroundColor.png)
Click on the Windows Background button to open the Colors window.
Click the "Sliders" tab (second on left) and choose the Gray Scale Slider. Set Brightness to 50% and Opacity to 100%. -
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 -
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] -
Where to write default search message
Hi guys
I am searching a long to find where to write default search message on site search module.
http://webmar.businesscatalyst.com/index
When user click on the GO button next to the search box site search module must show a default message like your search box is empty, you search box is blank etc,.. but where do i wirte the default message in bc.
Thanks
Andy<input id="field" type="text" onfocus="if(this.value == 'Search ...') { this.value = ''; }" onblur="if(this.value == '') { this.value = 'Search ...'; }" value="Search ..." name="CAT_Search">
Try this code where your search box is. you can see how that code works on my site at http://www.lawryk.com
Message was edited by: Brad Lawryk -
How i can display default error message in alert window
how i can display default error message in alert window
i.e.,
i have a text field with datatype Alpha
if i am giving numbers.etc then it is displaying
FRM-50001: Acceptable characters are a-z,A-z and space
I want to display this message in alert window
please tell how to do thisIn the on-error trigger :
Capture error_code and error_text in a variable.
Set the alert title to something meaningful.
Set the alert message equal to the captured error information.
Display the alert.
declare
v_alert varchar2(100) := 'ERROR' ; -- name of alert to use
v_title varchar2(100) := 'Error !' ; -- text to display as title
v_msg varchar2(200) := error_code || ':' || error_text; -- message to display
v_btn number ; -- button pressed
begin
set_alert_property( v_alert, TITLE, v_title );
set_alert_property( v_alert, ALERT_MESSAGE_TEXT, v_msg );
v_btn := show_alert( v_alert );
end;
---------- -
Change Default Background User In BW When Creating New Source System
Hi all,
I would like to create a new Source System in RSA1.
In Source Systems > SAP > Create > Connection of source system to BW
the Default background user in BW is u201CALEREMOTEu201D.
How do I change this to another user?Just want to say thank you. I could fix a problem with your information.
I was searching to change the background user from ALEREMOTE to BWREMOTE as all our process chains were running on ALEREMOTE. -
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
Maybe you are looking for
-
When I have my Bluetooth activated in my car & someone emails, texts or a notification comes through...it interrupts my radio program. I have tried turning off all my push notifications but that does not make a difference.
-
My ipod touch battery won't charge
My ipod was out of batteries, so I charged it, but no matter how long I left it for, it wouldn't get past the 20% battery line.
-
Safari constantly crashes - is it 10.4 - 10.5 plug in or SIMBL
Hi, I've had this problem of Safari constantly crashing, is it due to a the 10.4 - 10.5 plug in or SIMBL which is in my inputmanager? Here's my crash report, many thanks for any advice Process: Safari [1699] Path: /Applications/Safari.app/Contents/Ma
-
A little history...bought this PowerBook G4 new from Fry's (no + testimonials will be provided!!!). Since machine was floor model they did a clean install of 10.2.1. Discs they gave me were not the same OS version, however. The computer did work unti
-
JDBC url for orcale repository
Hi, I want to connect an oracle repository as my data server. By giving the following url "jdbc:oracle:thin:@<server>:<port>:<service_name>" I can connect to the database of the repository. The database has more than one repository and what should I