The font in the component

I am using a chinese system.And when i use the swing component the font is so ugly.How can i solve this problem?I has tried to use method setFont() on the ContentPane.But it is of no use.

You have to do setFont() on every component that contains text, because each component has its own font. There's a way of changing the UI defaults, which I can't explain because I don't know exactly what it is. My solution to this problem is to create my own class that extends JLabel (for example) and calls setFont() in the constructor.

Similar Messages

  • How can I change the font of the titles in a JTabbedPane

    Hi
    I use a JTabbedPane in a project and use windows LookAndFeel.
    I want to distinguish the selected Tab titels by changing the font of the title. Is there anybody who can help me. I can not find any component used as the title. They are only there when I create the tabs with.
    myTabbedPan.addTab("aTitle",aPanel);
    How TabbedPan use the string "aTitle" to create Tab "Buttons". Is there a component or... I can not get it
    Thanks
    nan2000

    Unfortunately, you have to sub-class the WindowsTabbedPaneUI to do that, and override the convenient methods.
    After that, you have to specify to the UIManager this new class it have to use to display the JTabbedPane components.
    Denis

  • Can v change the font of the str displayed on the console?

    hi,
    Is it possible to change the font, size of the str displayed on the DOS prompt?
    regards,
    Deepa Raghuraman

    no, the Windows DOS shell utility sets the font. The System console is not for GUI displaying (and font is also a GUI component).

  • PS CS6 has a different set of installed fonts than my old PS CS4.  How do I get my old fonts back?  Don't like most of the CS6 fonts.  Dell Precision, Windows 7.  Does PS use the fonts in the Windows directory or does it use its own?  A lot of my preferre

    PS CS6 has a different set of installed fonts than my old PS CS4.  How do I get my old fonts back?  Don't like most of the newer CS6 fonts.  Dell Precision, Windows 7.  Does PS use the fonts in the Windows directory or does it use its own?  If so, where are they in the directory?  A lot of my preferred fonts show in the Windows directory but not in Photoshop, which does not display them within the program.  Please help.  If I get free fonts (NOT CC fonts) from elsewhere, where do I put them for Photoshop[ CS6 to use them?  Thanks.

    All versions of Photoshop get their fonts from your OS.  Just install any missing font wherever Windows keeps fonts.
    I don't do windows myself.

  • How to change the Size of the font of the JDeveloper IDE

    First of all, this question does not concern the code editor.
    How to change the font for the editor is clear, well documented in the documentation as well as in many of this forums threads.
    My question is how the font of all the IDE components can be increased.
    Is some threads I found to change the font size in the ide.properties file.
    I tried that solution but it does not bring any solution.
    I'm a person with low vision, using a MB Pro with OS X lion just for overall better visibility.
    Talking to a lot of people, who have good vision capabilities, it seems that even a lot of people suffer from the fonts which are to small.
    So ... is it possible to document clearly where to do what and in what versions of JDeveloper.
    I've not yet discovered if any kind of skin settings can be applied ... but this would be great, surely if some kind of predefined bigger fonts would be available.
    Currently I'm using version 11.1.2 and 11.1.1.5.
    Help would be dearly appreciated.
    Greetings,
    Jan.

    Did you close JDeveloper and re-open again after making the changes in ide.properties?
    If changing the ide.properties does not work.
    Try this:
    Go to 'Tools' Menu and select 'Preferences' Sub menu:
    Select ''Code Editor" and select "Fonts"
    Set the options for font-size as in screenshot:
    http://adfsampleapplications.googlecode.com/svn/trunk/images/FontChange.png
    Thanks,
    Navaneeth

  • How do I change the fonts on the main page.My fonts have recently changed without my doing anything. They are like 6 point instead of the 12 I am used to. Email font is now huge. Is this an ATT/Yahoo problem or Firefox. Safari fonts seem to be o.k.

    How do I change the fonts on the home page? They recently shrank from 12 to very tiny..(6 pt?). I did nothing to change them, but after the event tried to change them using "preferences-Fonts"which had no effect. ATT seems to have made a change in their email. The fonts in the email are now huge (18 pt?). This could be an ATT/Yahoo problem with Mac, although Safari seems to be working o. k.

    Jim, extensions are also add-ons. Add-ons include extensions, themes and plugins.
    Whenever you have a problem with Firefox, whatever it is, you need to make sure it's not coming from one of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] and select ''Disable all add-ons''. If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme. You can troubleshoot plugins the same way.
    If you want support for one of your add-ons, you'll need to contact its author.

  • Opening a legacy file in CC2014, the fonts in the file (which are loaded and accessible with Suitcase Fusion 6), won't display. I get the [Jensen text] font name indicating a missing font file. YET, when I make a new file, the fonts are available. Any ide

    Okay, that was a long title. Sorry about that.
    Longer version now. The font Janson Text is an old Type 1 Postscript font. If I make a new document in InDesign CC2014, this font is completely available to me. HOWEVER, if I open a legacy file that uses this same font, it shows up with the usual pink highlighting.
    I know the font is available to InDesign, because I made a new test document and set type with it.
    If I try using the Type > Find Font.. option to replace the 'missing' typefaces, InDesign won't let me, not recognizing the font that I just used in the new test document.
    I just tried exporting the defective file as an IDML file, then opening the IDML file. The font is now working properly.
    This is a real problem, as the file I'm trying to open is a book that we need to reprint. I now have to go through it page by page to see if any linebreaks have changed.
    WHAT CAUSES THIS, please?

    There is one way its getting fixed. Once I update my Adobe Illustrator CC to Adobe Illustrator CC 2014 it is further allowing me to go into the system folder and allocate the font to the file so that it can replace it. My only concern now is that our MAC partners who will receive these files back from us have Adobe CS6. We will down save it to CS6 but I hope they won't experience any font issues because of us using CC 2014? Any light you can shed on this?

  • I created a pdf form from a Word doc with 9 pt aerial font formatting; the text on the pdf form is aerial 9 pt, but the fields are formatted in courier 12 pt - How do I reformat the font in the fields??

    I created a pdf form from a Word doc with 9 pt aerial font formatting; the text on the pdf form is aerial 9 pt, but the fields are formatted in courier 12 pt - How do I reformat the font in the fields??

    You can set up a temporary button (or link, bookmark, etc.) and add the following JavaScript action:
    // Mouse Up script for a temporary button (or bookmark, etc.)
    // Change the font and font size for all text fields in this document
    for (var i = 0; i < numFields; i += 1) {
        var f = getField(getNthFieldName(i));
        if (f.type === "text") {
            f.textFont = font.Helv;
            f.textSize = 9;
    It also sets the font size, but you can remove that line if you don't need to do that.

  • How do I customize the font in the tooltip hoverbox that shows when over the navigation bar buttons (back, forward,..home, url/site button, google "G" button ?

    I'm doing userchromecss customization of firefox 3.0.19 on slackware linux 12.2 and none of the css lines I've tried would ever change (in size and style) the font inside the hover box. I've tried same css lines on thunderbird and seamonkey and they work, but not on firefox. Here are the css lines I've tride:
    */ set text font of hover box */
    .tooltip:hover {
    font-size: 9pt !important;
    font-family: Tahoma !important;
    Result : no change in tooltip font
    */ set text font of hover box */
    .tooltip {
    font-size: 9pt !important;
    font-family: Tahoma !important;
    Result : no change in tooltip font
    */ set text font of hover box */
    tooltip {
    font-size: 9pt !important;
    font-family: Tahoma !important;
    Result : no change in tooltip font
    ...and more , but still no change in tool tip font.

    The code works for me on Linux for the toolbar buttons and for long lines on chrome pages like about:config<br />
    If it isn't working for you on the toolbars then your Linux distribution may be disabling it somehow.

  • When opening a pdf document in Adobe Reader the font of the original document is changed....It becomes a mix of the original font and a new different font. How can i fix this

    When opening a pdf document in Adobe Reader the font of the original document is changed....It becomes a mix of the original font and a new different font. How can i fix this

    This issue occurs with most of the PDFs that I open up. I am using the latest version of adobe reader on my windows based machine and it is a general PDF. I saw a similar post online stating that if you look at the fonts used in the document and it doesn't say (Embedded) next to it, then Adobe Reader will try to pull the font(s) from your computer and if it doesn't find that font then it will replace it which makes it look funny.

  • How to change the font of the text in Control Editor??

    How to change the font of the text in Control Editor??

    Hi,
            you have to create a smartstyle and acces that in So10 transaction.in change mode,menu->FORMAT->CHANGE STYLE.
    here you will get all styles available.
    so first you have to create a style in SE72 and activate it. and then
    goto SO10-> change mode
    menu->FORMAT->CHANGE STYLE.
    now you will see the style you have created. select that.
    now you can see the format.
    <b>Reward points</b>
    Regards

  • How can I change the font in the page menu across the top?

    I would like to change the font and its color in the page menu across the top of the website I'm building. The inspector doesn't give me the option nor does the font menu.

    The easiest way to do this is to hide the default navigation and build your own.....
    http://www.iwebformusicians.com/WebMusic/Navigation.html
    This also has the advantage of overcoming problems with Internet Explorer and SEO.
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • How can I change the font in the "Add Text Comment" tool, which has Helvetica as default?

    How can I change the font in the "Add Text Comment" tool, which has Helvetica as default?

    Is this for the ADD TEXT COMMENT tool?  How do you change the default font for the ADD TEXT (EDIT TEXT) TOOL?

  • How do I save a PDF ready for print. I have a problem with the fonts. The fonts are blurry after pri

    How do I save a PDF ready for print. I have a problem with the fonts. The fonts are blurry after printing. There is a trick in saving PDF.

    Hi el_giclee,
    Important to note from the beginning is that when you create your Photoshop document make sure you chose 300 Pixels/inch as your resolution.
    I'm interested in seeing your Save Adobe PDF dialog box after you choose to save the PDF.
    Could you post a screenshot of this dialog box with the Compression menu selected on the left side?
    It's a good idea to select High Quality Print or Press Quality in the Adobe PDF Preset menu at the top of this box. It will automatically select the best default settings for a printed piece.
    Michael

  • How to change the font of the logical column heading

    I have a situation here.
    I have created some logical column in the rpd. When using those columns in the answers the font of the logical column is different and small to that of the other column from the same table, which looks odd.
    for example:
    District (column from table A)
    # Programs (Logical column created on the same column)
    suppose district column has the font of Arial and 10, the # Programs has the font of Arial and 6.
    I tried to change/modify the views.css, but that didn't help. Could someone please direct me how can we do this. This is killing time a huge way.
    Thanks/

    I want to change the column heading name to match with the other column heading name.
    In my case I am looking to match the font with the District to that of the # Programs and not the values in the columns.
    I appreciate if anyone can help me with this guyz.
    Thanks/

  • Why are the fonts in the fillable fields changing in reader?

    Hello, I created a fillable pdf in acrobat. When I open the pdf in reader on my iPad the fonts in the fillable fields change. It is throwing off the fields and things don't line up correctly. I can't figure out how to correct the problem or why it's happening in the first place. Also, the fields behave differently in preview on my Mac. The fonts are correct but the placement is off. Any help would be awesome! Thanks.

    Solved it! I went back into acrobat and locked the appearance of all my text fields. Everything now appears as it should in reader.    Still have no idea why I needed to do that?

Maybe you are looking for