Results 1 to 5 of 5
- 08-24-2010, 02:52 PM #1
Member
- Join Date
- Aug 2010
- Posts
- 35
- Rep Power
- 0
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.
- 08-24-2010, 05:30 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
The API is your friend.
- 08-25-2010, 05:05 AM #3
To do it quickly you can use NetBeans GUI Editor. That should help I guess
- 08-25-2010, 05:25 AM #4
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
- 08-25-2010, 10:28 AM #5
Senior Member
- Join Date
- Jun 2007
- Location
- Bali, Indonesia
- Posts
- 696
- Rep Power
- 6
Hi,
Are you asking about the look and feel of you Java Swing application? You look more about LAF on the following URL How to Set the Look and Feel (The Java™ Tutorials > Creating a GUI With JFC/Swing > Modifying the Look and Feel)Website: Learn Java by Examples
Similar Threads
-
change text size in all GUI components
By itaipee in forum AWT / SwingReplies: 2Last Post: 08-07-2009, 04:59 AM -
How to print Swing components
By Java Tip in forum java.awtReplies: 0Last Post: 06-22-2008, 11:04 PM -
How to resize the components with the change in the size of the window?
By shaunak kiwalkar in forum SWT / JFaceReplies: 1Last Post: 06-06-2008, 07:55 AM -
Where is it best to declare swing components?
By MacNstuff in forum AWT / SwingReplies: 1Last Post: 02-06-2008, 12:59 AM -
how to change the appearance of jbuttons
By katie in forum AWT / SwingReplies: 1Last Post: 08-06-2007, 10:26 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks