Change BgColors, FgColors for all Components in a Container?

Is there a possibility to change the Background Color, the Foreground Color and the Fontsettings for all Components in a Container? Each Component in the Container should get the Colorsettings of the Container...

Just overwrite the add, setBackground(), setForeGround() and the Font-methods of the Container:
public void add(Component c){
super.add(comp);
comp.setBackground(...);
comp.setForeground(...);
//...the Font-stuff
public void setBackground(Color c){
for(int i=0;i< getComponentCount(), ++i){
getComponenetAt(i).setBackground(c);
//the same for setForeground and the Font-methods.

Similar Messages

  • Purch. Req. for all components in PM Order

    We have some Maintenance order (IW31) that follows this behavior.
    1. For the plant "AAAA", for EACH component in the order the system generates ONE Purchase Requeriment, it means, 5 componentes = 5 Purchase Requeriments.
    2. For the plant "BBBB", for all components in the order the system generates ONLY one purchase requeriment, it means, 5 components = 1 Purchase Requeriment.
    What does generate this different behavior? How (and where) can I configure that always all the orders follow the 2nd behavior? Is it part of PM or PU configuration?

    Dear,
    Go to SPRO -> Plant Maintenance and Customer Service -> Maintenance and Service Processing -> Maintenance and Service Orders -> Functions and Settings for Order Types -> Define Change Docs, Collective Purc. Req. Indicator, Operation No. Interval
    T CODE OIOE
    Here is setting for One collective purchase requisition per order and Plant.
    Regards,
    R.Brahmankar

  • HT5787 Change apple id for all purchased apps...

    I want to change apple id in my iphone as my old apple ID's password is not working. Please help me. I want to change apple ID for all new and old purchases.

    Have you tried logging out an back into that account on your phone (tap on it in Settings > iTunes & App Store), and/or tried getting the password reset for it : http://iforgot.apple.com (if you do get the password reset then you might need to logout and back into it) ?
    If you create a new account then that will work for new purchases, but all of your existing downloads will remain tied to your old account, so only your old account will be able to redownload those purchases and/or download updates to its apps.

  • How can I change view options for ALL playlists?

    How can I change view options for ALL playlists? With one single click or trick?
    I have a lot playlists and don't want to change every single one of them separatly.
    Thanks for your help. (I use Windows 7)

    There's no FAST way I know of, which is what I think you mean.
    Only the painful SLOW way of one-by-one.
    You could make a new playlist from the main library after you've set the columns up as you like.
    Go to an existing playlist that doesn't have the columns you want, and select all.
    RIght-click > Add to Playlist and send them to the new playlist.
    That's still one-by-one and only works with static playlists, not smart ones.

  • How Can I Change Format Mask For All Fields that type's Number Depend on Parameter in Report Builder 10g ?

    I want Change format mask for all fields that type's number
    Such as
    if  :parameter_value = 1 then
       all fields format mask = ' 999,999,990.000' ;
    else
       all fields format mask = ' 999,999,990.00' ;
    end if;
    Regards

    So, i have bad news for you : you'll have to rebuild again.
    Meanwhile i have excellent news for you : there's an online tool made by Johannes Henseler called Sidecar xml which builds the necessary xml file for you, sort of what you find in the Digital Publishing Folio Editor website, but saves it in your Folio folder.
    Next time you import all your folder (with that file), it will place all the necessary information, and even reorder the articles.
    Build once, play many times.

  • How can I change the duration for all clips in iMovie 10.2

    How can I change the duration for all clips in iMovie 10.2?  I'm used to working in the older version of iMovie where all I had to do was click on the gear on the clip and change the duration. ALso could use the tool bar to set the duration for all clips. Can't figure out how to do that in this new version. Any suggestions would be appreciated.

    In the timeline select the clip whose duration you want to change. Click the adjust button at the top of the viewer and then click the i button and you can set the duration. For multiple clips select them all and in the i button type in the duration you want and it will be applied to all the selected clips. You can also change the duration of a clip in the timeline by putting the cursor over the beginning or end of a clip and dragging. A popup will show the new duration.

  • How to change application action for all Firefox users?

    Hi,
    Is there any way I can change application action for all FF users. I am using Firefox admin 0.5.9.3 and deploy FF 3.6 through GP.
    Thanks

    You can change the system colors based on the system you are logging on to.  We have many users here doing that. (Red for prod, Green for Dev, etc)  You cannot use the Sap signature Design theme as it does not allow color changing.  I explained this in another post and how to change it.
    Re: Set Color for several system with sap gui 7.20
    To answer your question on how to change this for ALL users... That I cannot answer as our user base differs and they change it as they wish.  Hope this helps.
    Regards,
    Zecher

  • How can I select a smaller font for all components of a Swing application?

    The default size of font in Java Look and Feel is 12, how can I change it to 10 globally for my Swing application ?
    Thanks for your help.
    Helen

    It is not very simple because all components don't use the same fonts and if you don't want to subclass the l&f you can do this :
    after setting the l&f (in the main for example)
    Font f = new Font("dialog", Font.PLAIN, 11);
    UIManager.put("MenuItem.font", f);
    UIManager.put("Menu.font", f);
    UIManager.put("MenuItem.acceleratorFont", new Font("dialog", Font.PLAIN, 10));
    UIManager.put("Label.font", f);
    UIManager.put("Button.font", f);
    UIManager.put("ToggleButton.font", f);
    UIManager.put("ToolTip.font", f);
    UIManager.put("List.font", f);
    UIManager.put("Table.font", f);
    UIManager.put("TextField.font", f);
    UIManager.put("ComboBox.font", f);
    UIManager.put("RadioButton.font", f);
    UIManager.put("CheckBox.font", f);
    UIManager.put("RadioButtonMenuItem.font", f);
    UIManager.put("CheckBoxMenuItem.font", f);
    UIManager.put("TableHeader.font", f);
    UIManager.put("Spinner.font", f);
    UIManager.put("Panel.font", f);etc...
    Denis

  • How to change  delivery  block for all item in the schedule lines via va32

    dear sap expert:
    i onle can  change delivery block for one  sales order item in the schedule line  every times via va32,it will take so many time because there are hundreds of item  in a sceduling agrrement. how to change all the item  one times.
    please give me a way to resovle the problem.
    best regards.

    dear:
      the fast change function cann't resovle the problem,i first double click the item of schedule agreement  ,then select the schedule lines option, finally in the delivery block input the reason of bolck.
    best regards.

  • Is it possible to change proxy settings for all profiles that´s created instead of the standard options. We need to change "use systems proxy" into "automatic"

    Proxy Problems
    We need to be able to change the default settings for the proxy for all profiles on our computers that´s created for new users.
    Standard is that firefox takes the option "use the system options" for the proxy. We would like it to use the option "automatic" instead like IE and Chrome does.
    Considering that we have over 500 computers doing this manually isn´t an option, because a new profile is created everytime someone logs on to a computer they haven´t used before.

    You can use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new default values.
    Place a file local-settings.js in the defaultspref folder where you also find the file channel-prefs.js to specify using mozilla.cfg.
    pref("general.config.filename", "mozilla.cfg");
    pref("general.config.obscure_value", 0); // use this to disable the byte-shift
    See:
    *http://kb.mozillazine.org/Locking_preferences
    You can use these functions in mozilla.cfg:
    defaultPref(); // set new default value
    pref(); // set pref, but allow changes in current session
    lockPref(); // lock pref, disallow changes
    This will work for all existing and newly created profiles.

  • How to change Apple ID for all applications in iPad2?

    I have changed Apple ID via Settings > Store > Apple ID > Sign out my old Apple ID > Sign in with my new Apple ID.... But, by this method, Apple ID in  iCloud, Facetime, and iMessage isn't changed follow to my new one! Do I misunderstand about changing ID? and How to change Apple ID for these applications?
    PS. I do not want to do hard reset my iPad2
    Thank you all for your kindly help ^^

    Go into Settings > iCloud > Account > Change to your new Apple ID
    Settings > Messages >  Recieve At > New Apple ID
    Settings > Facetime > Change to new Apple ID

  • Change VI properties for all VIs in a library simultaneously

    I want to change the VI properties for all of the VIs in my library (specifically the Execution properties). Is there any quick way to do this so I can avoid opening up each VI individually?
    Solved!
    Go to Solution.

    You can do this through scripting.  Open a reference to the VI edit the VI then save it.  Here is an example that can do this for editing the documentation of a set of VIs.
    https://decibel.ni.com/content/docs/DOC-17043
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Can I change the settings for ALL songs in iTunes with 1 command?

    I'd like to set the volume for all songs to +100. Can I just select all songs and then change it to +100?

    Highlight all the songs in your library (ctrl+a, edit-->select all, etc.)
    Now right click one of the songs, making sure that all remain highlighted, and go to get info. Click Yes to the message that pops up. You should be able to adjust the volume in that window. Click OK when you are done. The volume should now be adjusted for all songs.
    btabz

  • Workflow process changed to admin for all entities

    Hi, We are working in Hyperion 9.3.3. Today morning we saw that the current owners for all the entities are changed to admin for few commbinations of scenario and version members.
    We sneaked into the audit tables and we can see the changes in those table for all the planning units but inside the application, it is all admin.
    All the process workflow history is wiped off and all the names are replaced with admin. This has happened for all the entities for monthly cycles for all the previous and current year.
    Can anybody help me to resolve or help me with some pointers to look into the tables to get that resolved.
    Regards,
    CM

    Hi,
    We have not restarted the planning services, but checked in few tables namely "HSP_PLANNING_UNIT_LOGS"
    which shows the current owners ids set to 50001 which I believe is admin for all the possible combinations for the scenario and versions...
    It is a production application, we can get the schema backup which will have the original states and the owner Ids but how can we populate the
    existing tables to get the states back in the current application, rather than restoring all in a separate application...
    Regards,
    CM

  • Change Language not for all Menues

    Hello, i´ve a problem within an project with 16 languages. I added 16 different languages with the language-codes. OK.
    Then I add 16 Menues with one Psd-File language-specific within. OK.
    Lanuage Pre-Scripts. OK.
    When I want to change the language for example on the German-Menue, all Menues were set "German". I can only set one language for all 16 Menues.
    I´ve checked the preferences. German is set as default language. I wanted to change it to "unknown", but that weren´t possible. Someone who has an idea, to fix the bug in my head?
    Thx a lot !
    Greetings
    Alex

    What do you mean by "keyboard setup"?   If you are talking about the layout, each user has to do that by going to system prefs/language & text/input sources and making sure that only the language he wants has its box checked.

Maybe you are looking for

  • DUPLICATE DOCUMENT CHECK IN SAP

    HI I NEED TO KNOW WHICH DOCUMENT YOU SAID DUPLICATE ONE ie. 1>                                           2> doc date     "1.1.2011"            Doc. Date 1.1.2011 postin date "1.1.2011"             Posting Date : "1.1.2011" Reference : "abcd"         

  • Output as Word files?

    How do I create documents that look like a PDF, with the RoboHelp "flattened", but have them be in Word format instead? The reason why I want to do this is that we need a .doc file for Japanese translation.

  • Patch Recommendations

    I'm trying to reduce or eliminate all of the security patch recommendations that are listed in our grid control(11g). When I apply a CPU(eg 16802901) using "opatch napply", though, the patch actually consists of several sub-patches.  So the patch num

  • Web Browser with website filter

    Hi all, I am new to here. I'm doing my final project, which I have to develop a web browser, with some website unaccessable, like porn site. I have totally no idea on how to do this on my browser (somemore my browser is not running properly). Got peo

  • Very very slow r3load

    hi, i am performing the import using R3load on oracle 10.2.0.2.0 databse which is on 4.5B before upgrade. init.ora parameters are maintained as per OSS 936441 for 205GB database import is taking almost 13 hours which looks to be very high. DB is on 1