Results 1 to 5 of 5
  1. #1
    XmisterIS is offline Member
    Join Date
    Aug 2010
    Posts
    35
    Rep Power
    0

    Default How to change the appearance of swing components?

    Hi all,

    I'm new to Java but I have extensive experience of both PHP and C/C++.

    I am using the javax.swing package because it seemed to do what I want quickly (i.e. building a GUI), but it looks so clunky! How can I alter the appearance of Swing components? E.g., I'm using a JTabbedPane, and I want the label text on each tab to be in a smaller and more elegant font than the default. Is there a way to do this?

    Thanks in advance.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,817
    Rep Power
    19

    Default

    The API is your friend.

  3. #3
    gafa's Avatar
    gafa is offline Senior Member
    Join Date
    Jun 2010
    Posts
    107
    Rep Power
    0

    Default

    To do it quickly you can use NetBeans GUI Editor. That should help I guess

  4. #4
    Prajin's Avatar
    Prajin is offline Senior Member
    Join Date
    Jun 2010
    Location
    Ktm, Nepal
    Posts
    120
    Rep Power
    0

    Default

    If ur concern is label text to be smaller, then it's Font stuff.
    Use font that you want to use with ur choice font size.

    - Regards

  5. #5
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    757
    Rep Power
    8

Similar Threads

  1. change text size in all GUI components
    By itaipee in forum AWT / Swing
    Replies: 2
    Last Post: 08-07-2009, 04:59 AM
  2. How to print Swing components
    By Java Tip in forum java.awt
    Replies: 0
    Last Post: 06-22-2008, 11:04 PM
  3. Replies: 1
    Last Post: 06-06-2008, 07:55 AM
  4. Where is it best to declare swing components?
    By MacNstuff in forum AWT / Swing
    Replies: 1
    Last Post: 02-06-2008, 12:59 AM
  5. how to change the appearance of jbuttons
    By katie in forum AWT / Swing
    Replies: 1
    Last Post: 08-06-2007, 10:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •