Vertical text in JComponents... here is a solution!!

Hi all,
I saw a posting on the subject of vertical Strings in JComponent and a guy gave a so usefull solution that I could not keep it for me self...Thats from R2D2 on the forum question
http://forum.java.sun.com/thread.jsp?forum=54&thread=137301&start=0&range=15#370918
If you want to put vertical Strings inside a JComponent just format your text using HTML like this
"<html>H<br>E<br>L<br>L<br>O"
This can be put into Tooltip as well!
JRG

Yop, Swing version >= Swing 1.1.1 Beta 1
has this feature, add HTML to JButton, JLabel, JToolTip ... etc
And default JTree, JTable use JLabel renderer ==> so by default JTree, JTable also can use HTML too.
And the furture of Swing will make Menu Item can set HTML text.
:-)))

Similar Messages

  • Vertical Text in PDF using CFDOCUMENT

    I am using font tag in a CSS file to layout a table header
    using vertical text. In HTML, the vertical text looks fine.
    However, when I convert the table to a pdf using
    <cfdocument>, the vertical text is displayed as horizintal
    text and does not follow the css specified font family, color or
    size.
    Here is the line in the CCS I am referencing:
    .header_vertical {FONT-WEIGHT: bold; FONT-SIZE: 8pt;
    FONT-STYLE: normal; writing-mode:tb-rl; FONT-FAMILY: helvetica,
    arial, verdana, sans-serif; TEXT-DECORATION: none; COLOR: #0f437c}
    This is CFMX7 on a Windows Server 2003 OS running IIS.
    Any ideas???
    Thanks.

    Hi there, did you find a solution to this?
    I had the same issue and no matter what i tried it didn't
    work. I found out that CFDOCUMENT doesn't support CSS2.
    Eventually I came up with a clunky solution, but had no other
    choice. I bought some imaging software called Alagad (
    http://www.alagad.com) which
    produces the vertical text as images on the fly. Its not ideal, but
    there was no ther way I could disply the text.
    Hope this helps you.
    Ally

  • Weird problem with vertical text in a table

    Hello,
    I am new on this forum, usually I don't post because I always find the answer to my question, but this is something quite weird...
    I have a table with vertical text in it (it has to be vertical because the cells are narrow). And I want it to be centered in the cell, both vertically and horizontally. When the cell is high enough, no problem. But as it becomes shorter, the text moves to the left. It is exactly as if there was a right margin within the cell, which is not the case.
    See the example below : I had the text right-aligned (this is to say, bottom-aligned, as it is 270° rotated) to make it more visible.
    Can someone help me there ? I already spent hours on that problem..!
    Thank you very much !

    Only, my table contents both vertical and horizontal text, so I can't. But thanks for the suggestion.
    Thank you kindly for all your answers. Anyway, re-writing the text in separate frames won't be so difficult (anyway it'll always take less time than what that problem already did..).
    So I have a solution, thanks to Phorna
    But remains the frustration of not finding the reason of this ! I will live along with it
    Thanks to all

  • Creating Vertical text in horizontal position ... ??

    Hi
    I am tring to print text onto address labels in a vertical orientaion (for final use). I have a large CD collection and I am trying to print headings for plastic cards that have a small tab that sticks out. I found small address labels to be the perfect size to stick on. However, I will be appling the labels vertically.
    Pages allows you to take horizontal text and rotate it, BUT the letters are NOT stacked on top of each other, you just end up with diagnol or sideways rotated text.
    WordArt in MS Word allows you to orient the text the way I want, but I was hoping for an easier solution in Pages - as the resizing in wordart is cumbersome and fixed to varies intervalls, you cannot enter specific number sizes.
    I hope I was decribing this clearly.
    Thanks AL

    You can achieve the effect you want by creating a text box (it should be set for Moves With Text and Wrap should be off). Type your text with a return after each letter and then narrow the box to fit the vertical text. Next, in the Text Inspector center the text. Go to the Metrics inspector and type "90" in the Angle box at the bottom.
    You should be able to copy and paste this to your template.
    Walt

  • Vertical text direction / orientation in tables. (RoboHelp 7 and/or 8)

    Hello all,
    I need to squeeze a fairly full table (lots of columns) into a printable page width.
    In order to do this, I need to put text into some of the cells so that they read vertically. I can do this in MS Word tables (menu > Format > Text Direction) and need an equivalent in RH. Preferably RH7, (but can import into RH8 if I must ).
    Any ideas anyone?

    Hi Philip
    My guess is that you can probably fudge it using CSS. But it won't be something RoboHelp will assist with in any way.
    Check the link below for one hit I found. Use Google searching for vertical text in HTML to find others.
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcererStone Blog
    RoboHelp eBooks

  • Vertical text in CR 2008

    Hello,
    I need to display the text in the columns labels vertically. When I set text rotation to 90 degrees, the text is rotated in the designer, but when I run the report - it's horizontal. However, when I print or export the report, the text is vertical again.
    After searching Google I've found out that this is a known bug in CR. However, I didn't find any solution other than using a CSS file. I've never used CSS with the Crystal Reports, so I wonder - is there any other solution to this problem? I need the text to be vertical on the web site as well.
    Thank you.

    The following information may help you
    Symptom
    Crystal Reports XI using vertical text is displayed correctly in Crystal reports designer.
    When exported reports are viewed in web appplication like Infoview, the report text is displayed horizontally.
    Reproducing the Issue
    Text rotated by 90 Degrees to vertical, changes back to horizontal.
    Environment:
    Crystal Reports XI
    Cause
    Crystal reports does not display the text as required,in normal view.
    Resolution
    1) Login to Infoview
    2) Click on preferences icon on the upper-right corner.
    3) Click on Crystal reports
    4) Select Active X Viewer
    5) Click Ok
    Keywords
    Vertical text, Horizontal text, Crystal Reports,Active X viewer
    Regards,
    Raghavendra

  • Vertical Text in Smartforms

    Hello,
    how can I get vertical texts in Smartforms? In need it for headings in a table, because of limited space.
    I only get things like that:
    e.g.
    P
    o
    s
    i
    t
    i
    o
    n
    But I need to rotate the whole word... Is there any solution?
    Thanks and regards!

    Hi,
    Check the below links.
    http://www.sapfans.com/forums/viewtopic.php?t=9972
    http://searchsap.discussions.techtarget.com/WebX?[email protected]@.ee83dd4/1576
    Thanks,
    ramakrishna

  • Vertical text in PDF- XSL-FO

    Hi Guys,
    We are trying to display a vertical text is a column in a PDF file. ( 90 o rotation of horizontal test).
    Is it possible in XSL-FO transformation? Could you please throw some light on this?
    (As we have lot of columns we are not able to display the column headings horizontally. )
    Thanks in anticipation
    Regards
    Rajesh

    You have two questions here.
    1. Can you have rotated text in PDF?
    2. Is there an XSL-FO construct to produce that?
    3.
    three questions...
    3. There must be a third question here about Java Programming somewhere.

  • Vertical text in charts

    How can we write vertical text in charts in a peolesoft

    Hi.
    Having played around with this also, I've concluded that it is not possible. There seems to be no mention in any doc'n of a difference between 2-D and 3-D in this regard. Yet the options for vertical or diagonal X-axis labels are grayed out for 3-D; and if you format that way in 2-D, then change chart type to 3-D, it reverts to horizontal.
    Not knowing how extensive your needs are, here is an admittedly crude kluge that may be of some use: In Chart Data Editor you can delete the X-axis labels, then replace them with text boxes having whatever orientation you want, and group them with the chart - IF the chart also is fixed on the page. Of course, if you have a lot of charts, and/or you need to retain integrity of the labels, this wouldn't be acceptable.
    MacBook Pro   Mac OS X (10.4.9)  

  • Vertical text with JTextPane?

    I am writing an application for displaying and editing sign language texts using Sutton SignWriting. It is a sign language writing system which enables the Deaf people to write to each other in their own language. And it is language-neutral, that means, all sign languages of the world are supported. Please see http://www.signwriting.org/ if you want to know how Sutton SignWriting looks like.
    Sutton SignWriting is often written vertically from top to bottom, because it shows the horizontal location of the gestures better this way. The signs themselves are composited of one to about ten symbols which are placed freely within the sign. A symbol is a hand, a face or just a movement or a contact; they can be rotated or mirrored.
    At first I thought I can use the JTextPane. The signs are just JPanels with the symbols painted on it. This idea would work if JTextPane had the ability to switch to vertical text, very much like for Chinese or Japanese. But I didn't find such an ability. Do I really need to implement my own SignWriting text pane? Or do you have a better idea?

    Thank you for your suggestion. But I am sorry to tell you that the CodeGuru solution doesn't help me. It is for JLabels but I would like editable vertical text. Any ideas?

  • Vertical text and Spotlight

    I'm not sure whether this topic is more InDesign, PDF or MacOSX related.
    See this document.
    Is it possible to make the number in the bottom left corner, searchable for Spotlight (MAC).
    The number is set vertically due to corporate guidelines.
    The file doesn't show up with a Spotlight search for that number.
    In Acrobat, the text is fully searchable. Even MAC's own Preview app can find the vertical text, which makes me wonder why Spotlight doesn't index it.
    Even google seems to index the vertical text.
    I don't want to add the number to the filename either, because we have strict file naming conventions to keep everything clear.
    Thanks in advance!

    Meanwhile I did some tests.
    It appears rotated text IS spotlight-searchable, BUT words are seperated in parts.
    For example: the text "ROTATED"
    At 30°, spotlight finds the file until i type the "E" character.
    30°: ROTAT - ED
    60°: ROTA - TED
    90°: RO - TA - TE - D
    It seems to split the words, and spotlight sees the parts as different words.
    While acrobat, mac preview etc. can search any combination characters, spotlight needs the first character of the word (it would never find "OME WOR" when "SOME WORDS" is in the file).
    I tried using tags, hyperlinks / bookmarks, script labels etc, many different PDF export options (PDF tags, invisble objects, PDF versions,…).
    I also played with some InDesign text controls that could cause the text splitting, like kerning/tracking settings, opentype features, hyphenation turned off...
    Also with mirroring (mirrored text is indexed by the way), vertical text in a non-rotated table.
    None of the above made the file spotlight-searchable.
    Opening the PDF in Illustrator shows the the text as 1 part, so I don't know why spotlight sees the words as seperate parts.
    John's invisible text-option looks like the solution to go with.
    Perhaps the "linked content" feature in can handle this, to make sure the visible and invisble text is always synced. (just switched from CS5.5, and didn't test that feature yet).

  • How to type vertical text

    In numbers, I've merged cells vertically in hopes of typing a word vertically but I can't figure out how to do it.  It's probably an easy process but I can't figure it out. Thanks for the help.

    Hi Tyson,
    Here are some examples.
    A1 contains vertical text. It can be created by making the column narrow enough to accept only a single character width, selecting the cell, and checking the Wrap checkbox in the Format bar. An alternate method that;s more trouble, but also more reliable is to insert a return character after each letter (including one on the empty line between words). Press option-return to insert a return into a cell. (Hint: Enter the first letter, then enter an option-return for each letter and space you want in the cell. Then go back and enter the letters, pressing the down arrow after each to go to the next line.)
    Numbers does not support rotated text in table cells. Cells B1, C1 and D1 are empty. The rotated text is placed in three text boxes, one for each cell. These are rotated (90° for B1, 75° for each of the others), then placed in front of the appropriate cell.
    E1 contains wrapped text. The wrapping in this case is determined by the width of the cell and the text itself, but you can also control what appears on each line by using returns (option-return) within the text. The vertical alignment button on the Format bar was also used here to vertically center the text in the cell.
    Regarding "I've merged cells vertically...," I'd recommend against merging cells where you can avoid it. Merging cells vertically or horizontally has consequences with sorting the table (and I think, other issues as well). Best to leave it undone until the issues are sorted out.
    Regards,
    Barry

  • Anyone having problems Tethering with the USB Cable here is the solution

    Here is the solution to what took me 3 months to figure out, absolutely no one in this discussion board had the answer to no even the most expert.
    here is the site
    http://www.mackb.com/Uwe/Forum.aspx/mac/28074/USB-tethering-with-iPhone

    claire10b wrote:
    does anyone have any other ideas to try or observations on compatibility between iPhone, Samsung, and HTC for international SMS?
    International texting can be a crap shoot. It's not a question of phone compatibility but of carrier interoperability.  I regularly text from my iPhone to my (domestic) colleagues (who all have Samsungs) and to a friend with and HTC (an old one, too) without difficulty.
    One last question - I've never deleted my SMS from my friend, and would prefer not to. But it's pretty much the only thing I haven't tried. Does anyone think this might solve the problem eg if there are orphan texts somewhere on the network?
    I'm not sure there really is such  thing as an orphan text. If a text isn't deliverable, the carrier deletes it from it's system. SMS is quite a robust system.
    There is no general incompatibility between iPhones and other phones as far as texting is concerned. I suspect what you may be seeing is a combination of an old phone and/or an issue with one or both of your carriers. Intermittent technical problems are some of the most difficult to solve.
    I have vague memories of people saying that a trailing space at the end of the text made a difference when they had similar problems. It was a couple of years ago. (Honestly, this problem doesn't come up that often!). I don't recall if putting in the traling space helped, or removing it helped. It may also just have been magical thinkning.
    Best of luck.

  • Vertical Text Orientation

    Hi,
    Hope everybody has had very good New Year''s festivals.
    Actually, I've got an issue with Vertical Text Orientation.
    Is there a way to do this in CF?
    I know that as far as the report builder is concerned, there
    is a property called x-axis orientation in the file default.xml
    (CFusionMX7\charting\styles\default.xml) which you can set to
    Vertical for that matter.
    This is ok, for charts in cfreport builder I've got no
    problem with the vertical orientation of the x-axis labels.
    I want to reproduce the same in CF e.g.
    <table cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td class="myclassname">Label 1 appears in vertical
    orientation</td>
    <td class="myclassname">Label 2 appears in vertical
    orientation</td>
    <td class="myclassname">Label 3 appears in vertical
    orientation</td>
    </tr>
    <!--- Here I just output my query --->
    </table>
    Your help will be greatly appreciated.
    Thanks and regards,
    Yogesh Mahadnac.

    The feature is unavailable.
    If you really want it, use the dedicated path :
    _Go to "Provide Pages Feedback" in the "Pages" menu_, describe what you wish.
    Then, cross your fingers, and wait _at least_ for iWork'10
    Yvan KOENIG (VALLAURIS, France) mercredi 9 décembre 2009 11:38:24

  • After installing ios 6 to my iphone4 and my daughters iphone4s we now get each others text messages. How can we disconnect from each other so that I don't receive the text messages from her and her friends and she does not receive mine?

    After installing IOS6 on my iphone 4 and my daughters iphone 4s we have this wonderful connection that we would like to break.  We are now seeing/receiving each others text messages.  I love my daughter but I don't really want to get all of her text messages from her friends and I don't really want to read every response she sends.  Additionally, she can also see my text messages and there are times I really don't need for her to know everything that I am doing. 
    So It is time to cut the cord we need our own seperate texting.  I am not sure what we did to have this happen but how do we undo it?

    Get your Apple ID sort out.
    Only use the same Apple ID in Settings > iTunes & App Stores to share purchases, no where else.
    Here some tips, it was written for IOS 5 but it's still valid for iOS 6.
    iOS 5 & iCloud Tips: Sharing an Apple ID With Your Family

Maybe you are looking for

  • MBP Kernel Panic when connecting to HDTV (DVI)

    I have a 15" MacBook Pro that has been working perfectly since I got it. I tried today to connect it to my Hitachi 51" HDTV (via DVI) and got an instant Kernel Panic. I used my 15" Powerbook with this HDTV without any issues. I've searched and found

  • PDF Export Issue - content missing (Not background freeze issue)

    Hi, Currently having some issues with exporting PDF's from Indesign CS5. When I export the first page (which is based off a master page) the majority of the content gets cut off - so this is images, coloured boxes and strokes and a barcode.(Top Image

  • Output  of slideshow to mwv file

    i eated a slideshow and wheI did the output it stopped working at 52 percent.  I got a pop up stating the file was created successfully when really it didn't.  Had no problems creating the slideshow itself.  I recently installed the PSE 9 onto my new

  • Css layout fix

    I suspect it is imbalanced div tags that is causing the layout issue the following webpage is experiencing. http://www.canchair.com/ While the ph.416.787.1709 etc information is listed to the right of the "quickship!" image, it is really supposed to

  • Disable "delete mail" double clicking

    I want to disable the "delete mail" function....not the "real" one, but the double clicking I have to do to delete an email. I click once to delete, then "delete mail" notice comes on and I have to click again to actually delete the message. This is