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

Similar Messages

  • Muse, how can i select "web safe fonts" in korean font?

    when i using Muse,
    how can i select "web safe fonts" in korean font?
    there are only english web safe fonts in muse.
    so i can't select national language(korean) in web safe fonts...
    a there any updates about this..?
    now in muse, i always using korean fonts in image;;

    At this time, English and Japanese is the only locale for which Muse provides an alternative set of web-safe fonts. You wouldn't see them in Korean. A similar thread here - http://forums.adobe.com/message/5492379
    Thanks,
    Vinayak

  • How can i install more korean fonts for mac book pro

    Hello
    I recently purchased mac book pro.
    Where and how can i install more korean fonts for mac book pro?
    thanks guys.

    Do you really need more?  OS X comes with quite a few already: Gungseo, HeadlineA, Nanum Brush, Nanum Gothic, NanumMyungjo, Nanum Pen, PCMyungjo, PilGi, AppleGothic, AppleMyungjo
    If so, just do a google search for korean unicode fonts.

  • HT1660 how can I use one single library for all users on the same laptop?

    how can I use one single library for all users on the same laptop?

    You are most of the way there. Each user having access to hard drive is the key. If users are limited in file privileges this is harder.
    Any files you add to your library and any files she adds to her library are available to the other. Just not automatically. Each user must add the files to their own library using the add file or add folder option from menu bar.
    What I have done is set library location to a location outside of My Documents\My Music. On my network storage I have a folder names s:\itunes. Both accounts iTunes are set to use this location for the library.

  • How can I install and activate extensions for all users

    Hi, within the version 7.0.1 I am able to install noscript extension for example for all users.
    With version 8.0 the extensions are disabled by default, so I do not install it on company computers.
    How can I manage extensions and settings for all users in 9.0?
    Best regards
    Jens

    Hi John,
    I appreciate your prompt response.
    We have an Australian client here in the Philippines and would want to purchase an adobe software under Creative Cloud Licensing.
    Since this type of licensing is not yet available here in the Philippines, they are suggesting that they can purchase it in their country.
    My main concern is, will there be any conflict upon installing/activating an adobe software under Creative Cloud which will be purchased from their country?
    And what are the steps for installing and activating a software under this type of license.

  • How can I have the articles listed for all of the asssortments?

    How can I have the articles listed for all of the asssortments without any condition? Is there any customization for this?

    Can you make some explanation? Is it OK if I choose "02 - Listing without qualification" as listing procedure?

  • How can i install the "mistral" font for my ipad mini? thanks

    Could you please help me with my question? id like to instal the mistral font for my ipad mini and other fonts
    thanks

    You can't add fonts to iOS devices. Sorry.

  • How can i set a default font for premiere cs6

    I am hoping to find a way to set a default font for cs6.  I work for a company where i need to use Meta book. Every time I create a new title/text slide, i have to change the font to meta book.  is there a way to make meta book the font that always comes up(as a default) when i go to create a new title/text
    thanks for the help(if there is any)

    You set up your font in the Title Properties then go the panel (dropdown) menu of the Title Styles and select New Style.

  • How can I use the same session for different components acroos application ?

    I am trying to include the components(chat, filesharing, whitboard) in different parts of my application. User should be able to access any of the component. We would like to have a single "ConnectSessionContainer" so that we don't see same user creating a seperate session for each component.
    Is there a better way of dealing with this other than declaring the "ConnectSessionContainer" in the main application ? Is there a way to check if we have a "ConnectSessionContainer" session already established ? Please help . Thanks.

    Thanks for the response. Let me explain what I am trying to do..
    I am trying to create components at different places(screens) of the flex application (not in the same .mxml file).
    Each time I create a component, I am using a "AdobeHSAuthenticator" and "ConnectSessionContainer" which is resulting a new participant in the room.
    For example
    screen1.mxml -
    <mx:Panel>
    <rtc:AdobeHSAuthenticator id="auth" authenticationSuccess="onAuthSuccess(event);" authenticationFailure="onAuthFailure(event);" />
    <rtc:ConnectSessionContainer id="mySession" >
            <rtc:Roster id="myRoster" width="100%" height="100%" />
            <rtc:Chat id="mychat" width="100%" height="100%" />
    </rtc:ConnectSessionContainer>
    </mx:Panel>
    screen2.mxml (in the same application) -
    <mx:Panel>
    <rtc:AdobeHSAuthenticator id="auth" authenticationSuccess="onAuthSuccess(event);" authenticationFailure="onAuthFailure(event);" />
    <rtc:ConnectSessionContainer id="mySession" >
            <rtc:SharedWhiteBoard id="wb" width="100%" height="100%" />
    </rtc:ConnectSessionContainer>
    </mx:Panel>
    Here, I open a screen1 and authenticate as UserA and when I try to open screen2 flex is considering me as another user though I am in the same application.
    1) How can I use different components which are in different flex files as a same User ?
    2) Should I place my <rtc:AdobeHSAuthenticator> and <rtc:ConnectSessionContainer> in the main application which calls the screen.mxml?
    3) What is the best way to do it ?
    Thanks for your time !

  • How can I create a default dock for all users (Mavericks)?

    I would like to modify the dock to display specific installed applications.
    I then want this dock to be the default dock for any users that log in.
    OS is Mavericks.
    All users are AD users.
    No server management.
    We use Deep Freeze to revert the Mac to the way we set it up.
    I can find info for previous versions of OSX; basically just copying the plist, but I can't find anything that works for Mavericks.
    Any help would be appreciated!

    You could set up a user template for new user accounts, but you can’t stop individual users from modifying their Dock to suit their needs.
    I don’t know how to modify the user template, so you’ll have to google for it.

  • How can I set a default currency for all my Numbers 03 files - currently it's Lithuanian!

    I have Numbers 03, and I downloaded bought some extra templates through an app in the app store. Graphic Node Version 1.6
    When I open the templates, the default currency is Lithuanian, and it appears that I can only adjust the currency cell by cell, column by column page by page.
    I want the default currency for any of my work to be Aussie Dollars so I don't have to change the spreadsheet each time I want a new file.
    Can this be done?/

    G'day 5508,
    Some thoughts. Try System settings first (this may not be the culprit).
    System Preferences > Language and Region > Advanced > Currency > Australian Dollar
    I can only adjust the currency cell by cell, column by column page by page.
    Forgive my stupidity, but if the currency is a cell format in the template, can you select all currency cells at once, then change the currency? You will have to do this separately for each Table, but within a Table, you can select a range of cells. Quicker than cell by cell.
    Once you have reformatted the document that emerged from that template, save the document as a template with the same name to overwrite the old template.
    Hope this helps, mate.
    Regards,
    Ian.

  • CAN USE SELECT OPTION FIELD IN FOR ALL ENTRIES CONCEPT

    Hi sir/ madam,
    can i write code like this .
    i have data in itab1 .
    select-options : s_matnr like lips-matnr.
    SELECT VBELN VGBEL VGPOS MATNR
        FROM LIPS
        INTO TABLE I_LIPS
        FOR ALL ENTRIES IN ITAB1
        WHERE VBELN = ITAB1-VBELN AND
              MATNR = S_MATNR.
    Thanks & Regards
    Suresh kumar

    Hi Suresh,
    To correct ur code syntactically, repacle the
    =
    operator with
    IN
    . This may be correct but from data consistency point of view this may not be the ideal thing to do.
    You can foolow thw following steps:
    1. Fetch data in ITAB1 using the MATNR in the select-option. I hope you do have
    MATNR in ITAB1.
    2.
    SELECT VBELN VGBEL VGPOS MATNR
    FROM LIPS
    INTO TABLE I_LIPS
    FOR ALL ENTRIES IN ITAB1
    WHERE VBELN = ITAB1-VBELN AND
    MATNR = ITAB1-MATNR.
    This should be correct form data consistency view-point.
    Hope this answers ur query. Please award points if u find the answer helpful.
    Regards,
    Suhas

  • How can I make a catalog avaiable for all accounts on a laptop?

    At the moment the PSE11 (windows-version) catalog is saved in my pictures folder. Because my wife also uses the laptop (with Win 8.1) I now want to move the catalog from my private folder to a public folder on the laptop that is accessible for both accounts.
    1 Question: how can I move the catalog?
    2. After moving: are both accounts able to access the catalog with PSE11?
    3. After moving the catalog: do I need to move the folder with the pictures too (i suppose: yes)?
    Any hints much appreciated.

    The inability to merge accounts has been around since they first started using Apple IDs.  An issue almost ten years in the making, that one. 
    What I did was just use my Apple ID for my iTunes purchases and create the @me.com address to go with it.  However, you can sign in with both on your devices to use one for your email and sycning and the other for purchases.
    Apple did include this article for us in that department: http://support.apple.com/kb/HT4895

  • How can I get a single ID for all accounts?

    My migration from Mobile.me to iCloud has been a exercise in frustration.
    I log into the Apple site with a .me address, my apple id is a .mac address.
    I log into iTunes with a different id and password.  If I buy an app on the iPhone
    it won't sync to iTunes because I'm not authorized.
    I called before when I wasn't allowed to verify an existing email registered
    at Apple and was advised to created a new email address.  I did but that was a kludgy fix.
    I've called twice and can't seem to get anywhere at all with this.  I would,
    at this point, prefer to just delete all accounts with Apple and start over.  Is
    this possible?  I'll forgo my last few months of paid iCloud access since
    I'm sure I won't use it.
    This is the least Apple-like thing I've personally.

    The inability to merge accounts has been around since they first started using Apple IDs.  An issue almost ten years in the making, that one. 
    What I did was just use my Apple ID for my iTunes purchases and create the @me.com address to go with it.  However, you can sign in with both on your devices to use one for your email and sycning and the other for purchases.
    Apple did include this article for us in that department: http://support.apple.com/kb/HT4895

  • How can I set default toolbar layout for all users in my system?

    Hi everybody! I am running a local ubuntu server at my office. I can set some defaults preferences (about:config) for all new users in the system by defining those prefs in the /etc/firefox/syspref.js.
    Now, I want to define default toolbar layout in a similar way (maybe not needed but fun), to copy the toolbar layout for my user. Is there a general way to do that?
    thank you in advance!

    You can try to create a default template folder (defaults/profile) in the Firefox and place the file(s) in that folder for newly created profile.
    The only way to customize an existing profile is to copy files directly to it.

Maybe you are looking for

  • Unable to load WSDL

    I am trying to consume the 3rd party WSDL below from my BizTalk project in Visual Studio. I am using BizTalk 2010 and Visual Studio 2010. <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"  xmlns:x

  • I need help getting flash to work on my computer

    I've installed, deleted, reinstalled, but nothing works mac os X 10.9.1 about 14 months old all other software from adobe runs fine just don't know what to do next

  • Custom report-problm in implementng IReport

    hi all,   Im creating a custom report for reporting empty files.. in the code i implements IReport..but i got the error as IReport not a valid super interface..can any one tell me a remedy for this one.. Regards,Vinoth

  • Adobe Title Designer: Missing Font EdwardianScriptITC replaced with Courier

    Where do I find this missing font? Edwardian Font was loading perfectly. Now it is missing why?

  • How to set JAVA_HOME programatically

    Hi Friends, Is there anyway to set JAVA_HOME environment property using a batch script.Actually,I am trying to check if the user system has java installed or not. If not,I make him run the JRE installer but the problem is when I try to start Tomcat,