How can I put text in Tab into vertical alignment??

Dear friends, I have following code,
package com.swing.test;
import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.SwingConstants;
public class NewTabbedPane {
     private JFrame frame;
      * Launch the application
      * @param args
     public static void main(String args[]) {
          try {
               NewTabbedPane window = new NewTabbedPane();
               window.frame.setVisible(true);
          } catch (Exception e) {
               e.printStackTrace();
      * Create the application
     public NewTabbedPane() {
          initialize();
      * Initialize the contents of the frame
     private void initialize() {
          frame = new JFrame();
          frame.setBounds(100, 100, 500, 375);
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          final JPanel panel = new JPanel();
          panel.setLayout(new BorderLayout());
          frame.getContentPane().add(panel, BorderLayout.CENTER);
          final JTabbedPane tabbedPane = new JTabbedPane();
          tabbedPane.setTabPlacement(SwingConstants.LEFT);
          panel.add(tabbedPane, BorderLayout.CENTER);
          final JTabbedPane tabbedPane_1 = new JTabbedPane();
          tabbedPane.addTab("AAAAA", null, tabbedPane_1, null);
          final JTabbedPane tabbedPane_2 = new JTabbedPane();
          tabbedPane.addTab("BBBBB", null, tabbedPane_2, null);
          final JTabbedPane tabbedPane_3 = new JTabbedPane();
          tabbedPane.addTab("CCCCC", null, tabbedPane_3, null);
}but here all tabs' title AAAAA, BBBBB, CCCC are aligned horizontally, I need them to align vertically, Any guru can help??
Thanks
sunny

there's an example here (works OK on winxp)
http://www.macdevcenter.com/pub/a/mac/2002/03/22/vertical_text.html
Test() class needs a small change, for the direction you want
//panel.add(makeTabpane(null, sEnglish, VTextIcon.ROTATE_DEFAULT));
panel.add(makeTabpane(null, sEnglish, VTextIcon.ROTATE_LEFT));

Similar Messages

  • On Firefox 4, how can I put one "new tab" on the "tab bar" (The + sign) and one next to the "back/forward" buttons (as in FF 3.6)?

    On Firefox 4, how can I put one "new tab" on the "tab bar" (The + sign) and one next to the "back/forward" buttons (as in FF 3.6)?
    In my current Firefox, the "new tab" icon/item from the "customize" pop-up window menu of items is placed next to my home, back, forward buttons near the top-left of my header (Button 1 for "new tab"). Then, the tab bar automatically come with a small tab (with a + sign) to the right of your last tab opened (so you click on + and a new tab opens. Button 2 for "new tab"). I like to have this "new tab" button twice (as a + mini tab, and next to my "home icon".
    When I upgraded to Firefox 4, I seemed to be only able to "customize" or use the "new tab" in one place. Either as an icon next to home button, or as a "+ minitab", but NOT both.
    What can I do to put this button in Firefox 4 on BOTH places???
    Your help is really appreciated. I want to upgrade, but I want my buttons on both places...
    I upgraded to FF 4, but downgraded again just because this feature... that's just me of coarse :-)

    *New tab toolbar button: https://addons.mozilla.org/firefox/addon/new-tab-toolbar-button/

  • How can i put text across a photo?

    how can i put text across a photo?

    You'll need an external editor for that:
    In order of price here are some suggestions:
    Seashore (free)
    The Gimp (free)
    Graphic Coverter ($45 approx)
    Acorn ($50 approx)
    Pixelmator ($50 approx)
    Photoshop Elements ($75 approx)
    There are many, many other options. Search on MacUpdate. You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.

  • How can I put text in transparent background?

    How can I put text in transparent background?
    Message title was edited by: Brett N

    Good day!
    You can create a new document (»Background Contents« set to »Transparent«), use the Type Tool (T) to create text and then save in a format that supports layers like psd, psb, tif.
    If the receiving application can’t handle those png24 is another option.
    Regards,
    Pfaffenbichler

  • How Can I put A quicktime clip into keynote??

    Two Questions,
    One:
    How Can I put a "get a mac" commercial into keynote. (Like how do i download it and how do i put it in)
    Two:
    If I download a quick time clip (say, pirates of the Caribbean 2 commercial) How can I insert it into keynote??
    Zach

    You can put a QuickTime clip on a Keynote slide just by dragging the movie file onto the slide. If the clip is in your Movies folder in your home directory, you can also use the Media browser to insert it. Finally, you can use the Insert menu, and use the Choose... item to pick the file.
    To grab one of the "Get a Mac" ads, go to the ad page. Hover your cursor over the thumbnail of the ad, hold down the Control key, and click and hold the mouse button to pop up the contextual menu. Choose "Download Linked File", and the file should be saved to your hard drive.

  • How can I put my mp3 files into my iTunes library? Every time I download a song from a website and try to drag it to my library, it won't add on. How can I fix this?

    Back then when I had the older update with iTunes i never had this problem with trying to put my mp3 files of music into my iTunes library. Now it doesn't want to be put into the library. Once I try to drag the music file to the iTunes library nothing happens, it just keeps showing a cancellation sign with my mouse. So how can I fix this?

    Hi William.
    The problem is probably that the index is corrupt and you need to completely re-create it rather than rebuilding individual mailboxes. I have no idea what the situation really is now after having tinkered with the contents of ~/Library/Mail/, though, so the following procedure may or may not work.
    Verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    After having fixed all filesystem issues, if any, and making sure that there’s enough space available on the startup disk (a few GB, plus the space needed to make a backup copy of the Mail folder), try this:
    1. Quit Mail if it’s running.
    2. In the Finder, go to ~/Library/Mail/. Make a backup copy of this folder, just in case something goes wrong -- e.g. by dragging it to the Desktop while holding the Option (Alt) key down.
    3. Locate Envelope Index and move it to the Trash. If you see an Envelope Index-journal file there, delete it as well.
    4. Open Mail. It will tell you that your mail needs to be “imported”. Click Continue and Mail will proceed to re-create Envelope Index -- Mail says it’s “importing”, but it just re-creates the index if the mailboxes are already in Mail 2.x format.
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder, i.e. ~/Library is the Library folder within the user’s home folder.

  • How can I put Locale.loadString("IDS_001") into button.label

    I am retrieving the Locale from the system, and need to place the fields of the Array into their respective places.
    One of these being for example,
    IDS_001
    This works, and returns what I'd probably expect. Although why it returns multiple instances I can't yet figure.
              public var vIDS_001:String;
              Locale.autoReplace = true;
                     var localeName:String = LocaleID.DEFAULT;
                     var nf:StringTools = new StringTools(localeName);
                                   trace("Actual local ID: " + nf.actualLocaleIDName);
               var defLang:String = nf.actualLocaleIDName;          
                                              trace( "Last Operation Status: " + nf.lastOperationStatus ); 
               Locale.setDefaultLang(defLang);
               Locale.setLoadCallback(localeCallback);
               //Locale.addXMLPath("defLang", "../en/PinPointPremium_en.xml");
                          Locale.addXMLPath("defLang", "../" + defLang + "/PinPointPremium_" + defLang + ".xml");
               function localeCallback(success:Boolean) {
                if (success) {
                    // trace(Locale.stringIDArray); // IDS_GREETING
                     trace(Locale.loadString("IDS_001"));
                     var vIDS_001 = (Locale.loadString("IDS_001"));
                     trace("+++" + vIDS_001);
                } else {
                     trace("unable to load XML");
    Actual local ID: en-GB
    Last Operation Status: noError
    PinPoint the Entered Address
    +++PinPoint the Entered Address
    PinPoint the Entered Address
    +++PinPoint the Entered Address
    Test Movie terminated.
    This is the button code, and I'm trying to figure out how to get that IDS_001 information into the btnGPS.label. No matter what I try, it errors out
                 btnGPS = new Button();
              btnGPS.width = stage.stageWidth - 20;
              btnGPS.height = 25;
              btnGPS.x = 10;
              btnGPS.alpha = 0.9;
                    // btnGPS.label = "PinPoint My Current Location";
              btnGPS.setStyle("textFormat", btnFormat);
              btnGPS.y = stage.stageHeight - 46;
              btnGPS.addEventListener(MouseEvent.CLICK, btnGPSMouseClickHandler);
              addChild(btnGPS);
    None of these following work in place of the original
                    //btnGPS.label = Locale.loadString("IDS_001");
              //btnGPS.label = IDS_001;
                    //btnGPS.label = vIDS_001;
    Theoretically, loading the Locale XML file should populate the occurences of IDS_001 - but I'm totally lost now. Been looking at this for a few days and now can't see the real picture. Does anyone have any idea how I solve this please ... I know this is so simple, but I can't get it.
    thanks

    ok, I need to get back on track.
    The app works and is fine. No problem with buttons etc. It's localization.
    .... and this works - finally
    private static var loc:String = null;
    private static var my_txt:String = null;
    // Checking for LocaleID for globalization.
    // Localization stuff. AS3 2013. (using latest CS6 Flash Pro, AIR and Flex SDK libraries)
    // This example is based on the iPhone/iPad, iOS Template in CS6
                                  // get the system language. That's al lwe need. What language is the user using
                                  loc = Capabilities.language;
                                  // if it's en-GB for example, make en_GB
                                  // loc = loc.replace("-","_");
                                  trace("The default system: " + loc);
                                  loc = "de";
                                  trace("The new system: " + loc);
                                  // you can add individual paths for each language like this
                                  Locale.addXMLPath("en", "en/PinPointPremium_en.xml");
                                  Locale.addXMLPath("de", "de/PinPointPremium_de.xml");
                                  // or set your language to the system default and use that
                   // I put the system language into 'loc'
                                  Locale.addXMLPath(loc, loc + "/PinPointPremium_" + loc + ".xml");
                                  Locale.setLoadCallback(localeCallback);
                                  Locale.loadLanguageXML(loc);
                                            function localeCallback(success:Boolean) {
                                                      if(success){
                                                                //var my_txt:String = Locale.loadString("IDS_001");
                                                                my_txt = Locale.loadString("IDS_001");
                                                                trace("The IDS_001 field is: " + my_txt);
                                                                // returns "PinPoint der eingegebenen Adresse" which is ok
                                                                } else {
                                    trace("unable to load XML");
    /* Output
    The default system: en-GB
    The new system: de
    The IDS_001 field is: PinPoint der eingegebenen Adresse
    Part 2 is the Button. AND is is this that is tricking me.
    I repeat - how do I put the contents of IDS_001 into btnGPS.local with
    IF I can put 'loc' into the label, with
    btnGPS.label = loc;
    why can't I do this
    btnGPS.label = Locale.loadString("IDS_001");
    btnGPS = new Button();
    btnGPS.width = stage.stageWidth - 20;
    btnGPS.height = 25;
    btnGPS.x = 10;
    btnGPS.alpha = 0.9;
    //btnGPS.label = "PinPoint My Current Location";
    // ==============================================
    // This actually works - it places "de" into the button. as it should
      btnGPS.label = loc;
    // this doesn't put the contents into the label
    //btnGPS.label = Locale.loadString("IDS_001");
    btnGPS.setStyle("textFormat", btnFormat);
    btnGPS.y = stage.stageHeight - 46;
    btnGPS.addEventListener(MouseEvent.CLICK, btnGPSMouseClickHandler);
    addChild(btnGPS);

  • How can I put text on individual photos

    I would like to put text on some of my photos,,,,How?

    Aperture really isn't designed to put general text on an image.You could cobble something together using the Book interface but I don't think it would really be a suitable solution.
    You'll need to look into using a plugin, BorderFX is a free plugin that many users her (including myself) have used. It does what you are looking for and works well.
    regards

  • How can I put Lightroom 4 video into a format for viewing on DVDs?

    I have made as slideshow in Lightroom 4. It translates well into MP4. This MP4 file runs on some computers and all BluRay players I've tested.
    I want this slideshow to play on all DVD playeres. How can I take the MP4 file... and make it into an AVI or other file format? Is there a better file format than AVI?
    How should I proceed? Thanks.

    I don't do a lot of video. But when I do I use Adobe Premiere Elements. Since I don't do a lot of video, I don't have the most current version. But it is a pretty good program. You can use AVI or mp4 and I think some other file formats. You can trim your video and add special effects and transitions as needed. There are other video editing programs as well. I started with a program called Pinnacle Studio. I prefer PE, however. I'm sure there are numerous other video editing software programs available. Just do a Google search.

  • HT2518 After using Migrate Assistant, I made several accounts for every attempt to migrate files from PC to Mac. How can I put all accounts together into one? How can I transfer the files from the other accounts to my primary account?

    Okay, so I did the entire Migrate Assistant process to transfer all my files and what not to my MacBook. Problem is that I did it on seperate occasions and now I have several accounts.
    How can I transfer my files from the other accounts to my primary account and delete the other accounts?

    Problem is that I did it on seperate occasions and now I have several accounts.
    If you had read carefully, Migration Assistant asks what you want to do in this event. That would have precluded the redundancy.
    Part of the fundamental design of OS X is to separate user accounts so that one user can't interfere with another. It's not possible to directly merge an account with another, but you can copy whatever you need to the Shared folder - it is in your Users folder.
    Log in to one account, prefereably a smaller one, and drag the files and folders into Shared. Log out, log into the account you want to be "primary" and drag the files from Shared into their appropriate locations. When you have copied everything you need delete the redundant account.
    Do this for each of them.
    Or, you can just run Migration Assistant again and follow the prompts that address the situation you described. It involves creating a secondary, temporary account from which you can administer the transfer. When it is complete you delete the temporary account(s).

  • How can I put text under background?

    Hi all,
    I'm trying to put text over background, specifically
    a) using 'textures' - 'liquid - 'pool' so that the text looks like it is being viewed under water with the ripple effect distorting the text.
    b) using 'texture' - 'medley' - 'stage' i.e. to make the text look as if it is printed on the background rather than hovering above it.
    Any ideas? Thanks in advance.
    Dave.

    Good day!
    You can create a new document (»Background Contents« set to »Transparent«), use the Type Tool (T) to create text and then save in a format that supports layers like psd, psb, tif.
    If the receiving application can’t handle those png24 is another option.
    Regards,
    Pfaffenbichler

  • How can I put text into a cell with a formula?

    I'm trying to sort a budget in Numbers 3.1. I have a sum of column of cells that I'm adding up. The cell that has a total number looks like this: =SUM(F). I want to have that sum have a $ sign in front of it. I've ready everywhere that I could do ="$" SUM(7), but that doesn't work in 3.0, only in Numbers 09 I guess. Is there a new solution for 3.1?

    Tyna,
    Just Format the cell as Currency.
    Jerry

  • How can I put text on top of a graphic in Framemaker 11?

    I am using Framemaker 11. When I import an image from Photoshop (EPS file) and put a text box on top, I can't get the text to be on top of the graphic without jumping to the next page. Is there a setting that I'm missing in Framemaker? The image is just borders, like a frame, and I'm trying to put the text inside the blank space.

    I suggest you use the text frame tool (to the left of Arnis' supplied screenshot) and set the background of the text frame (the diagonal b/w lines below the text frame tool) to None.
    When all else fails, add the text to the graphic, save as PDF or other appropriate format, and place as needed.
    -Matt
    Matt R. Sullivan
    co-author Publishing Fundamentals: Unstructured FrameMaker 11

  • How can I put ID3-Tag info into my MIDI songs

    http://www.mp3machine.com/software/IDTunes/ says: "idTunes fixes those missing or wrong ID3 tags automatically, once and for all. Systematize, organize, remove duplicates and correct irregularites in your music collection, even add lyrics. Once and for all clean up your MP3 song collection without having to spend weeks typing and checking the info." but that's OS X and my computers can't run it
    In Quicktime Player Pro when I get-properties then create annotations they only show up in QuickTime player - I need a method to embed them in the file so that in WindowsMediaSlayer the author, URL, title, length, recorded date, artists on track and such can be displayed.
    Is there a version of QuicktimePlayerPro (for OS 9) that will let me export or save-as MIDI file so that WMP will 1) read the file and 2) recognize the annotations as ID3-Tags?
    SOMEONE has to look out for the recognition of music creators and talented performers!
    Thank you very much for this forum to ask my questions, and thank you dearly in advance for your answers.
    Sincerely,
    Teo

    Teo4...
    OK, I have a big heart...
    Yep! And me too, which is why I'm sharing this 1/2 solution!
    "Artly There" has forums, real Applish looking! Well, in a topic there:
    http://www.artlythere.com/cgi-bin/forum/Blah.pl?m-1154280348/s-0/#num3
    I got this lead:
    From: http://www.harmony-central.com/Software/Mac/midi.html
    I got MIDI Kit 2.7.1, I think it has put these tags in correctly:
    1. Full Song Name
    2. Copyright
    3. Author
    To see if it worked: http://givnology.com/eve/forums/a/ga/ul/8341026442/WhatYouSynco.mid
    This is also all in my site's discussions here: http://givnology.com/eve/forums/a/tpc/f/80560593/m/7641057422 well the easy way is:
    http://Givnology.com/music and click the "First try MIDI" topic. I wanted to let you know that I did find at least THIS MUCH of a solution...
    In the © tag I put some good relational database type cross indexables.... yay!

  • How can I put text (in perspective) round two sides of a 3d object?

    If I have a block of text that I want to wrap across two planes of a 3D building, how do I do that...while keeping both sides in perspective on the respective planes.
    Suppose I want a letter to be split in the middle so that part is on one plan and part on the other- how do i do that?
    Is the only way by i) creating outline ii) do a vertical path and divide? iii) then re-group text in some way?

    I want to wrap across two planes of a 3D building,
    You do understand, don't you,  that the Perspective Grid is just a 2D drawing guide/distortion? It is not an actual 3D model.
    JET

Maybe you are looking for