Changing font size/type

I've designed a GUI using Swing, that has a JLabel at the top, displaying the 'company' that it was designed for - problem is, it comes up in 12pt arial - how do I change the font of a JLabel to make it bigger/bold/different font?
Thanks

I usually start by looking in the API and if it's not shown, I look in the inherited methods...
JLabel inherits a setFont(Font) from the JComponent Class. You need to build a font with the appropriate attributes as you desire and then do a setFont(Font) on your JLabel with it.

Similar Messages

  • My typewriter toolbar is graying out the ability to change font size, type, and color.

    My typewriter toolbar is graying out the ability to change font size, type, and color.

    Here's what I have done in the past. Maybe not elegant, but
    it works. (I
    use PHP, but I'm sure you can modify for ASP.)
    In the HEAD of each web page, include regular old embedded
    STYLE tags,
    but INCLUDE an external PHP file:
    <head>
    <style type="text/css">
    <?php include('styles/testcss.php'); ?>
    </style>
    </head>
    Now in that included PHP file, just have CSS code which pulls
    in your
    dynamic data. Here's an example snippet:
    body {
    color: #600;
    background-color: <?php echo
    $row_recordset['bgcolor'];?>
    Of course, you'll need the code for the recordset somewhere
    too.
    Alec
    Adobe Community Expert

  • Change font size/type in all cells of table

    Hi,
    I cannot figure out how to change the font size/type in an existing table. There seems to be no way to select all cells and make a global change.
    I can select individual columns and rows, and change the font for these, but that is tedious.
    Anyone help?

    Click in one cell
    Select all
    cmd + T to get the Font panel then select the font and the size.
    Yvan KOENIG (from FRANCE jeudi 11 septembre 2008 21:15:51)

  • In SAP 4.6c In classical reports output how to change Font size and Font type

    Dear Experts,
    In SAP 4.6c, in classical and interactive reports  output how to change font size and font type.
    Regards,
    Zaker.

    These are HTML formatting questions. Nothing to do with the Oracle SQL and PL/SQL languages.
    With old-style HTML, the font size and family are set using the font tag.
    With modern style HTML, that is done using cascading style sheets (CSS).
    Your favourite search engine will turn up tons of information on both.

  • Change font size on macbook pro 15 retina

    HELP... Cant see the words
    can someone please tell me how to change font size on macbook pro 15 retina... I have this HUGE screen but the font on the screen is SUPER small.... can someone help me

    Sorry, OS X hasn't evolved to a scalable UI type for hard of seeing users. If you drop the resolution your type gets blurry.
    However I have two solutions.
    1: You hit System Preferences > Accessibility and set a control key for zoom/in out, set the zoom to where the pointer is at and get a third party scroll wheel mouse. This way you hold the control key and can zoom in/out anywhere the mouse is pointed at.
    2: You follow my User Tip here and use Firefox with the associated add-ons.
    Since Firefox is customizable, your able to create larger menu type and have web pages automatically zoomed (full page, graphics and all) to your minimal needs.
    Also FF will remember your window size so your not having to resize that each time you open the program. There is also a Full screen option.
    Since web browsing takes up a lot of time on machines, at least you have that part licked. If you use web based email like GMail, since it's in a web browser that is zoomed as well.
    Web browsing for hard of seeing users

  • A mode to change font size and bold in every page?

    Due to problems described here https://support.mozilla.org/en-US/questions/1012057?esab=a&s=&r=0&as=s I have clear that I need something (an extension, maybe) that allow me to recognize and change font size and bold of the fonts in every page.
    Does exist something like this?
    Maybe also for bookmarks toolbar...

    Hi RichterB,
    You can change this in the Content Settings of Firefox. Go to "3 bar" menu and click on Options. Click on content and uncheck "Let websites choose their own styles" and select a bold font type.
    Also try [https://addons.mozilla.org/en-US/firefox/addon/stylish/ Sytlish].

  • Change font size to other

    change font size to other

    change,
    You may, whichever is relevant:
    1a): Select>Object>Text Objects,
    or
    1b) Type>Find Font;
    or
    1c) Select individual live Type objects if you only can/want to change a certain size of a certain font,
    2) Click or insert the desired font size in the Character palette.

  • Changing font size(bold) or color of a particular row in ALV Grid Digplay

    Hi Experts ,
    I am having a requirment to highlight some particular rows in ALV Grid Display . To achieve this i need to change font size or make it bold or change color of that row .
    Please give me some inputs .
    Thanks in Advance.
    Vijyeta

    Hi
    Coloring An Entire Row
    Coloring a row is a bit (really a bit) more complicated. , you should add an additional field to your list data table. It should be of character type and length at least 4. This field will contain the color code for the row.
    First you have to declaration of our list data table u201Cgt_listu201D.
    DATA BEGIN OF gt_list OCCURS 0 .
    INCLUDE STRUCTURE SFLIGHT .
    DATA rowcolor(4) TYPE c .
    DATA END OF gt_list .
    Adding the field that will contain row color data
    As you guess, you should fill the color code to this field.  But how will ALV Grid know that you have loaded the color data for the row to this field. So, you make it know this by passing the name of the field containing color codes to the field u201CINFO_FNAMEu201D of the layout structure.
    e.g.
    ps_layout-info_fname = <field_name_containing_color_codes>. u201Ce.g. u2018ROWCOLORu2019
    You can fill that field anytime during execution. But, of course, due to the flow logic of screens, it will be reflected to your list display as soon as an ALV refresh occurs.
    Try this link also:
    Possible functionalities in ALV
    Regards
    Neha

  • How do i change font size permantly and where do i find this?

    Where /how do i change font size permantly and where do I find this in the OS?

    debfrommidwest wrote:
    I have gone to view to increase but of course that is only long enough until I close page,
    ....I would like not to have to set my print each time I open computer.
    You will need the web browser Firefox installed
    http://download.mozilla.org/?product=firefox-6.0.2&os=osx&lang=en-US
    Next you will need to add the following addons
    Theme Font & Size Changer
    https://addons.mozilla.org/en-US/firefox/addon/theme-font-size-changer/
    NoSquint
    https://addons.mozilla.org/en-US/firefox/addon/nosquint/
    Theme Font & Size Changer can adjust the size of the type Firefox uses in the toolbar area.
    NoSquint remembers per site web page zoom levels and you can set a minimum size for all web pages so any site you visit is made bigger automatically. Safari doesn't do this.
    You can see the difference between Firefox and Safari in this picture.
    Note: Firefox is highly customizable browser, and I added the green with the yellow type, you won't see that when you first start using it.
    It did that to match my desktop picture, grey is depresssing.

  • How do I change font size on the safari tool bar

    How do I change font size on the safari tool bar

    You can't in Safari.
    However you CAN with Firefox and the add-on called Theme Font & Size Changer, also include NoSquint and set a global web page zoom level a bit higher, say 150%.
    NoSquint has buttons on the tool bar to increase/decrease each websites size AND IT REMEMBERS IT!
    Under the Tools Menu > Customize you can add more toolbars as well, but they have to have something in it of course.
    (note: the green with yellow type is a person you can add from thousands of choices, it's not the default look of Firefox)
    So this setup, although it may appear large here compared to Safari, is fine on my 17" when sitting back about 3-4 feet, takes up about 1/6th of the screen, so I'm not hunched up close, and I have a lot of screen real estate to play with anyway.

  • How to change font size on screen

    how to change font size on screen

    I'm not certain what font sizes you wish to change, when on a page you can use command and the += button to zoom in and make the fonts larger. On the finder desktop you can make what ever is on the desktop larger or smaller from the finder menu click view, custom view options, and adjust the icon size with the slider on the top, and the text using the text size box to select the size that your comfortable with.
    Forgot to add these.
    http://support.apple.com/kb/PH10876
    http://support.apple.com/kb/PH10877
    Hope this helps.

  • How can I change font size in iCal 3.0.8?

    How can I change font size in iCal 3.0.8?

    Julian,
    There is no user option to change the font size in iCal.
    For other posts regarding this topic, read some of the links in "More Like This." box just to the right of your first post in this thread.

  • How to change font size on web page when have no icon in View tool to do so

    menu bar at top of screen does not have icon to change font size of a web page as described in your support information--you show it as between stop and reload in View icon and I do not have it at all in my toolbar.

    See this: <br />
    https://support.mozilla.com/en-US/kb/Page+Zoom

  • How to change Font Size of Object Explorer in "SQL Server Management Studio"

    Dear Team,
    "SQL Server Management Studio" is a fantastic IDE for the database.
    There are so many customization options available but one thing many users missing is that " How to change Font Size of Object Explorer?"
    Can you please accumulate this feature in IDE ASAP?
    Many Thanks,
    Bhavesh

    Its there
    Go to Tools -> Options
    Then under Environment you've fonts and colors tab where you can specify a higher font size.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to change font size, maximum column size in the result screen ?

    hi All
    That's great when using SQL Dev.
    But I also have a trouble that how to change font size, maximum column size in the result screen ?
    My users think that font in result screen is shown very small, and whenever the data in each colum is long then it's not shown full data in column, they must double click for extend the size. Have the option to default the max size for showing full data in each column ? I try but still not to do that .
    Appreciate for anyone to help us.
    Thanks all.
    Sigmasvn

    You can't change the font for the results screen yet, however you will be able to select an auto-fit option for selected columns, so if some columns have slitghtly wider text you'll be able to set the column widths to handle these wider columns.
    Also, there s the option of switching the layout of a record in the grid.
    Sue

Maybe you are looking for

  • Routing in Stock Transfer Order

    Hi, We are having SAP 4.7 & we have activated Transportation Routing process. Routing is copied in Sales order & Delivery. But the same is not copied in the stock transfer Order. We are doing following steps. We are using Stock Transfer order to tran

  • Safari error message when using listserv

    Does anyone know what to do here? I get a digest form of Listserv messages. When I click a link to actually read a message the following error message occurs: "Safari can't open the specified address. Safari can't open "cid:2048757735:/ym/uk/ShowLett

  • What is the best approach to send/recv multiple types of network packets from server/client?

    I am writing two programs (server.vi) and (client.vi).  that communicate with each other over a TCP connection.  After the client opens a TCP connection with the server, the server responds with a packet of type "A".  The client sends another packet

  • White rectangle in placed PDF

    Hi all, When I view this PDF in Adobe Acrobat 9.3.0 (Windows), I see no problem. When I open the PDF in Photoshop, a white rectangle next to the white square at the bottom left corner appears. Anyone familiar with this phenomenon? Any idea what's wro

  • How to get browser language

    Depending on the language of the browser, (firefox/ie) I want to localize the flex app. How can I look up the locale setting of the browser? thanks