How to set the Font size of Label?????

Hello everyone.
I want to knoe how to set the Font size of the Label???
Please help..
Thanks a lot.
Gloria

Label myLabel = new Label("Hello World");
//Font(String name, int style, int size)
myLabel.setFont(new Font("Arial", Font.PLAIN, 12));

Similar Messages

  • How to set the font size on only one object!

    I wonder how i could programmatically set the font size on only one object?
    Igor Stojčević

    Hello,
    You can use the builtin SRW.SET_FONT_SIZE
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/plsql/builtins/srw/srw_set_font_size.htm
    in the Format trigger
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/plsql/triggers/tr_format_trigger.htm
    Regards

  • How to set the font size in JOptionPane?

    I use a JOptionPane.showOptionDialog in a JClient form.
    Can I set the font size of the message in my JOptionPane?
    And also, can I set the location for each component in JOptionPane?

    The best way to do that is to create a seperate panel with its components in it (a JLabel with a specific font setting) and display that panel as the JOptionPane's message.
    As for the OK/Cancel/etc buttons, I don't think you'll be able to rearange them, without hacking into the JOptionPane class' source.

  • How do I set the font size in a call out (box) tool

    How do I set the font size in a call out (box) tool ?

    Good Morning Mr. Alheit,
    Thanks for this bit of apparently obscure knowledge...  <<ctrl +e>>
      - I'll bet there is more user functions in  Adobe Acrobat 9 that I'm not
    aware of, too...
      - What reference source do your use?
    M/G

  • How can I set the font size of a form field in the fdf file?

    I need to dynamically set the font size of a field to accommodate text of varying length, automatic font size won't work in this case. It seems like this can be done in the FDF but I have tried several variants without success. Could someone help out with a real example of what the syntax in the fdf should look like.
    I am using Acrobat Professional 8.1 but the created fdf will need to work with Reader also.

    I think that the font size has to be set in the form itself, not the FDF.

  • The fonts on my facebook page is set to approximately 200%. This problem is only on my facebook page. Does anyone know how to change the font size on this page?

    I do not know how I changed the font size on my face book page I have tried everything to change the font size to 100% but have failed. Any suggestions?

    Hi,
    From your description, you want to know how to edit a page in SharePoint 2013.
    Go to the page->click Settings->Edit page,refer to the following screenshot:
    If a user want to edit a page, he at least have edit permissions.
    If you have any problems, please don't hesitate to let me know.
    Best Regards,
    Lisa Chen
    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]

  • I like the mail feature with one exception; I cannot figure out how to change the font size of incoming mail permanently.  And, when answering an email I have to highlight the first few words and zoom it so I can see what I am writing.  what am I missing?

    I like the mail feature with one exception; I cannot figure out how to change the font size of incoming mail permanently.  And, when answering an email I have to highlight the first few words and zoom it so I can see what I am writing.  what am I missing?

    You can type the email using what you set in preferences and then highlight the text and use command - minus sign (or command - + for larger) to reduce the size of the text.
    You can also type command - T and a window will appear allowing you to select fonts/sizes/color/ background highlight.
    The above works in Notes also. I haven't tried to do this in any other Apple application.
    For incoming emails, you can use the above to reduce font size, but I don't know of a way to permanently set the incoming font size to a default.

  • How to reduce the font size of the title of grid ALV without using OOPS

    Hello
    i have a title which i have displayed in a grid layout using this code
    DATA: GRID_TITLE TYPE LVC_TITLE.
    GRID_TITLE = 'FACTORY OVERHEAD '
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
      I_GRID_TITLE                      = GRID_TITLE.
    Now i would like to reduce the font size of the text which is displayed "'FACTORY OVERHEAD '.
    how do i do that,i am new to abap.
    Thanks

    Hi,
    Set the font size to your requirement
    Go this below code.
    CLASS ZCL_GUI_ALV_GRID DEFINITION INHERITING FROM CL_GUI_ALV_GRID.
      PUBLIC SECTION.
        METHODS TITLE_SIZE.
      PRIVATE SECTION.
    ENDCLASS.                   
    Then use the above method in the Implementation part as .
    CLASS ZCL_GUI_ALV_GRID IMPLEMENTATION.
      METHOD TITLE_size.
        ME->SET_TITLE_SIZE( EXPORTING SIZE = 1
                            EXCEPTIONS ERROR = 1  ).
      ENDMETHOD.
    ENDCLASS.
    Now when your reference variable should be
    Data :GRID type ref to ZCL_GUI_ALV_GRID.
    and Create the Object as
    CREATE OBJECT GRID
               EXPORTING I_PARENT = G_CUSTOM_CONTAINER1.
    Before Calling Set_table_for_ first_display, Call the created method
    CALL METHOD GRID->TITLE_SIZE.

  • How to reduce the font size - "Portal Smart Text - CURRENT USER"

    Hi Gurus,
    I am showing the user name on the top left corner of our portal page. The default font size is little big(16 point size). How can I reduce the size to probably 10. I am using the "Built-In Navigation Item Types - Portal Smart Text - CURRENT USER" which shows the name of the current user. Please post a reply if you have any idea about this.
    Thanks
    Raj
    --------

    Put the item in its own region, assign a different style to the region, and set the font size for the Display Name attribute in the region's style.
    Or, you can use a PL/SQL item with this code:
    begin
    htp.p('<font size="-3">
    || portal.wwctx_api.get_user
    || '</font>');
    end;
    Regards,
    Jerry
    PortalPM

  • How to increase the font size in the safari tool bar

    Hello,
    I am trying to set-up Yosemite for my mom who is a senior.  The toolbar and address bar for safari seem to be quite small.  Does anyone know how to increase the font size in the tool bar and address bar?  I already figured out to make the font size bigger on a webpage which is nice but the rest of the interface, though pleasing to look at, is quite miniscule.
    Hope someone can help.

    I too would like an easier way to do it. The only way that I have found  (& it works for all applications, desktops Document & Download files) is to decrease the size of your Screen display from 2560 by 1440 ( this is your "Default for display") to 1920 by 1080. This is accomplished by going to "Accessibility Preferences" in your menu bar or through Systems  Preferences and choosing the DISPLAY icon, then unchecking the "Default for Display" Setting and then check "Scaled".
    Your screen resolutions will then appear in the drop down box & you can choose a smaller display (e.g. 1920 x 1440), then all print will appear larger on the screen.
    If anyone knows a slicker way, I 'm all ears (actually "eyes" would be more appropriate.
    I hope this helps you.
    -fpn7

  • Hi, I am using Indesign CS6, How to set the page size in Inches.

    Hi, I am using Indesign CS6, How to set the page size in Inches.

    All fields in InDesign can be entered in any measurement system. So, if you want to make an 8"x10" document and go to File>New Document and the window looks like this:
    …you can type either 8 in or 8" into the Width field like this:
    …and when you move to the next field, it will convert the eight inches into the equivalent number in the unit of measure that it is using at the moment, like this:
    … (203.2 milimeters is the same as 8 inches). You can also enter a different measurement unit into other fields once the file is created, such as the width or height of a frame, or the position of an object in the X and Y coordinates.
    If you would rather just work in inches instead of having to type the inches mark or abbreviation, go to InDesign>Preferences>General and select the Units & Increments tab. There you will see Ruler Units for Horizontal and Vertical at the top of the window. Set them to Inches and all of the fields will display in inches. If you do that to an open document, you will change the unit of measure for that document. If you do it while no documents are open, it will change the unit of measure for any new documents you create. To change the unit of measure for existing documents, you will have to open each and make the change.

  • How to change the font size of text and case in smartforms

    hi,
       could any one explain how to change the font size of text in smartforms. ex. previously i had taken P4 left aligned and C6 but now i want to decrease the font without making it bold. pl......... guide me
       secondly the value which are coming from tables are upper case but i need lower case. pl. guide
    thanking u

    check out the smart styles...create a font of ur size n use.
    Define the paragraphs & character formats using SMARTSTYLES & use them in your smartform.
    You have to give the smartstyle name in the Form attributes-->Output options for the formats to be used in your smartform.
    You can define font size in Smartform Style.
    Smartform Styles > Charcterformat> Font --> size.
    to load the font to SAP server chk this
    Re: Adding a new font for SAPscript/SMARTFORM output
    Regards
    Vasu

  • How to change the font size of text element in smartform

    Hi
    i want to know how to change the font size of text element in smartform
    regards
    Gincy

    Hi
    You can create Smartstyles, in which you can define paragraph formats for texts and character formats for character level changes.
    Paragraph format ---> alignment, font size etc
    character format for ---> superscript, subscript.
    After creating, in your smartform, there will be a option in the text element to enter a style.
    You give the created style and you can use the paragraph and character formats i that style.
    Hope this is clear..
    Regards
    Sekar

  • How to change the font size of the text that is revolving ?

    Hi there,
    I am using the Revolution theme.
    How to change the font size of the text that is revolving (on the first menu page) ?
    Thanks

    You can't.  That's hard coded into the theme.
    OT

  • How to change the font size of Text Box  Properties Appearance tab into 2 decimal digit.

    How to change the font size of Text Box  Properties Appearance tab into 2 decimal digit. I am uanble to modify it to 5.38 pt for example. Its only allowing to 1 decimal place.

    Click on each field and the choose Properties from either File menu (or if on Mac hold dow mouse button until context menu appears choose properties)
    go to Font
    choose desired size and type font,you can choose to make this the default.
    Do this with each field.
    Or if you have a lot of fields:
    while one is selected select all of them
    then go to fonts in properties
    change Font and size and make default.

Maybe you are looking for

  • POET vs GL Account in AP Invoice Work Bench

    Dear Members, We are on 11.5.10 version of e-business suite. If a User enters an Invoice manually through AP Invoice Work Bench form, he has two methods to enter a GL string at the distribution level. There are two cases here : 1. when we go to the d

  • Service tax reports

    we are doing service tax and ed.cess on repairs and maintence invoices, after payment to vendors every month we have to take service tax report to submit authorities, is there any standard reports in this scenario regards,

  • Problems in Lumia 610

    Hi, I have purchased Lumia 610 recently. I m facing few problems in this handset. 1. Nokia Music is not all working, showing me as 0 tracks are available. There is no store nor Mix Radio in Nokia Music. Nokia Music is provided free in Low end models

  • Login is looked

    Hello My login is looked a couple of days and won't more enabled. I opened a new login because my email address changed. Unfortunately I choosed the same Login name in uppercase. So, my old (u05430) and new login(U05430) (with me new email address) d

  • Archived log is missing

    dear all,               i have rman backup taken and an archived log is missing .how can i recover my database using rman,your help appreciated. thanks and regards.