Multi Line Text on a JTabbedpane Tab

Posted on 2008-11-10
Last Modified: 2013-11-23
Is it possible to display multi line text on the tabs of a JTabbedpane tab?
I need to split the text in a specific way - to have a few words over a few others.

Perhaps with a custon renderer?

Ideas... examples...

Question by:dbCnc
    LVL 24

    Accepted Solution

    I don't know but many components like buttons and JLabels obey HTML

    Try:     "<HTML>Word<BR>Word2"

    LVL 86

    Assisted Solution

    Yes, try it, but


    of course ;-)
    LVL 24

    Expert Comment

    Until now I NEVER found the necessity to close with </HTML> in any component.
    May be some personal service of Swing?


    Author Closing Comment

    Worked great -

    Thanks for the prompt reply....
    LVL 86

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
    Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
    The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now