Need a tab navigator with vertical tabs and horizontal text as the tab label?

Hello,
I've found a component here http://hasseg.org/stuff/VerticalTabNavigator/VerticalTabNavigatorDemo.swf, but I need to display the labels horizontally. Any suggestions?

import javax.swing.*;
class VerticalScrollTextArea {
    public static void main(String[] args) {
        Runnable r = new Runnable() {
            public void run() {
                JTextArea ta = new JTextArea( 5, 20 );
                // the stuff you need
                ta.setLineWrap(true);
                // your GUI might not require this
                ta.setWrapStyleWord(true);
                JScrollPane sp = new JScrollPane(
                    ta,
                    JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                    JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
                sp.setPreferredSize( ta.getPreferredSize() );
                JOptionPane.showMessageDialog(null, sp);
        SwingUtilities.invokeLater(r);
}

Similar Messages

  • I have Photoshop Elements 12 and just loaded on a Yoga 2 with Windows8. When I open Photoshop the tab wording in really small. Is there any thing I can do to increase the size to make it easily readable?

    I have Photoshop Elements 12 and just loaded on a Yoga 2 with Windows8. When I open Photoshop the tab wording in really small. Is there any thing I can do to increase the size to make it easily readable?

    I have Photoshop Elements 12 and just loaded on a Yoga 2 with Windows8. When I open Photoshop the tab wording in really small. Is there any thing I can do to increase the size to make it easily readable?

  • I closed all the navigation tools at the top of the window and I only have the tabs available. How do I get the navigation tools back?

    So one Day I was playing around and decided to right-click at the top of the window (Were you put web adresses and stuff) and I saw that it had the options to uncheck the "Navigation bar", "Tool bar" and "Bookmarks" so like the stupid person I am I uncheched them all, thinking the they would come back if I closed and reopened again. They didn't so I tried everything uninstalling and re-installing FireFox checking settings and nothing has helped me. So I beg for your Help cause I can do nothing :(
    == This happened ==
    Every time Firefox opened
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDC; .NET4.0C; AskTB5.6)

    Hit the '''Alt''' key to show the Menu bar, then open View > Toolbars and select Menu bar, so it has a check-mark.

  • When I open about this mac - more info and I switch through the tabs (display,memory,storage,support,service) it lags (fps drops, animation looks choppy not smooth). Why does this happen? (over 300 gb free,same programs installed,free desk-downloads)

    When I open about this mac -> more info and I switch through the tabs (display,memory,storage,support,service) it lags (fps drops, animation looks choppy not smooth) even though all the mac (programs , interface ) works smooth . Why does this happen? (over 300 gb free,same programs installed,free desktop-downloads -no garbage there- everything neat and tidy.) Need some help. Only there it the animations goes like 2 fps and is not smooth. I do not understand why because the programs are the same so its the usage. Nothing is changed, yet i experience this little issue for a couple of days.

    OK, I'm confused. When I do About this Mac > More Info in OS10.9, I don't see any animation other than the window resizing. Is that the animation you are describing?
    Which if any of the following apply to your computer:
    1) Are you running any anti-virus/internet security applications?
    2) Are you running any "cleaning/tune-up/optimizations" applications?
    3) Any peer-to-peer or torrent downloading software?
    4) Any third-party disk backup software that came bundled with an external hard drive?
    5) Any online backup scheme other than iCloud (Carbonite; GoogleDrive; MS One Drive)?
    6) Did your financial institution ask you to install Trusteer EndPoint Protection (also known as Trusteer Rapport)?

  • Firefox 14 is playing random music and new tabs do not remember sites and are always called "New Tab".

    2 problems have suddenly started.
    1. A few seconds after I open Firefox 14 (with my home tab set to Google) music or ads or random snatches of radio begin to play. The only way I can stop it is by closing Firefox. After a while they stop.
    2. When I open Firefox the first tab acts properly. It is named with the site I am on and, when I leave it, is there on return. The other tabs have suddenly stopped changing names to the name of the site and when I return to them they are defaulting to a page of recently visited sites. This is even more annoying than problem 1. Can anyone help please?

    It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox Profile Folder.
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    *http://kb.mozillazine.org/Multiple_profile_files_created

  • Tabs are not responding in FF4. I cannot switch between tabs and the text of the tab is completely garbled.

    The text of the tabs run over each other and are completely unreadable. I cannot move the tabs or click between them. The only thing I can do is to close the tabs which kind of negates the point of having tabs.

    It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    Delete the sessionstore.js [2] file and possible sessionstore-##.js [3] files with a number and sessionstore.bak in the Firefox Profile Folder.
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    See also:
    *[1] http://kb.mozillazine.org/Session_Restore
    *[2] http://kb.mozillazine.org/sessionstore.js
    *[3] http://kb.mozillazine.org/Multiple_profile_files_created

  • Sometimes when I open a link in a new tab and then switch to the tab, the address bar clears and the website won't open.

    Sometimes when I open a link in a new tab and then switch to the tab, the address bar clears and I'll have to re open the tab and hope that doesn't happen again. Sometimes this happens again and again. Most of the times if I just open the link in a new tab and don't switch to it, this won't happen. But as I switch too the tab, the text would disappear and the link wouldn't open.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)

  • New tabs are not updating the names of the sites they have loaded. When I open a new tab and load a site, the tab simply stays named "New Tab". When I open a link in a new window, it shows "Connecting..." even while its fully loaded.

    New tabs are not updating the names of the sites they have loaded. When I open a new tab and load a site, the tab simply stays named "New Tab". When I open a link in a new window, it shows "Connecting..." even while its fully loaded.

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]

  • I was on an online course website, logged in and working on an assignment. Suddenly the page disappeared and was not on the tabs either. I went to the home page and tried to log back in and it said I was already logged in on another browser window

    Question
    I was on an online course website, logged in and working on an assignment. Suddenly the page disappeared and was not on the tabs either. I went to the home page and tried to log back in and it said I was already logged in on another browser window and if I proceeded to log in again the assignment I was working on would be ended and I would receive a zero. I can't locate the browser window that I was signed in on. Help...I don't want to get a zero, but don't know how to get back into the website under my original log in & get back to my half completed assignment.

    Hi,
    Please try this: In Firefox '''History''' ('''Alt''' + '''S''') and check if it is listed in either '''Recently Closed Tabs''' or '''Recently Closed Windows''' or in the list below. If you cannot find it click '''Show All History''', on the left of the window click '''Today''' below '''History''' and on the right look for the site entry corresponding closely to the time when you lost it. If you cannot see the column heading named '''Visit Date''', you may have to enable it by right-clicking on the column header strip.
    Also please note that the online course site may have redirected you to another site for the test, so it is also a good idea to look into site entries that may match the time.

  • When two or more tabs are opened after this when I click on another tab which is opened then firfox stopped responding and open automatically all the tabs in diffreent windows

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/873886]]</blockquote>
    when two or more tabs are opened after this when I click on another tab which is opened then firefox stopped responding and open automatically all the tabs in different windows

    If it works in a new window then you can drags tabs from the not working window to that new window.
    You can also try to close the tabs via Ctrl+W and restore the closed tabs via Shift+Ctrl+T

  • Urgent: Need a docking speaker with internal battery and suitable for ipad or iphone4

    Need a docking speaker with internal battery and suitable for ipad or iphone4
    Does the following model fit those requirements?  Do you have any recommendation for me on a docking speaker?
    Philips - Fidelio Primo Docking Speaker for Apple® iPod® and iPad®
    Model: DS9/37 | SKU: 3374032
    Philips - Fidelio Docking Speaker for Apple® iPhone® and iPod® Model: DS7550/37 SKU: 2141072 
    Philips - Fidelio Docking Speaker for Apple® iPod® and iPhone® Model: DS8500/37 SKU: 3792704

    You should not need to have special IP address configurations to manage your devices and software. You can do this in the private network offered by any router, provided all devices being managed are behind that router. If for some reason you need a static IP on the network (such as for the server itself), then you can delegate one to the server in your router, but you dont need a special public IP address configuration from your ISP to set this up and make use of it.

  • When attempting to download, in the Launch Application panel, it says ..."this link needs to be opened with an application" and shows send to "CC URI Handler", but also Choose an application.  How do I get past this point, as neither option seems to work?

    When attempting to download, in the Launch Application panel, it says ..."this link needs to be opened with an application" and shows send to "CC URI Handler", but also Choose an application.  How do I get past this point, as neither option seems to work?

    Code 6 & Code 7 http://helpx.adobe.com/creative-suite/kb/errors-exit-code-6-exit.html
    or
    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • How do I left justify the text in the tabs of a JTabbedPane.

    In 1.3.1 this used to work by supplying an HTML string with <div align="left"> but when I run with 1.4.1 this is now broken and I get center justification.
    Does anybody know a way to get the text in the tabs to be left justified.
    Thanks,
    Philip

    First, I found while using JTabbedPane that the "standard" behavior is to allow to a tab the exact space needed to display the tab text. Hence with this behavior, there is actualy no difference of "left" or "center" aligned text. So I assumed that you found a way or another to make your tabs wider than the "string width"...
    Here is a solution:
    You can override the TabbedPaneUI class and ajust the "layoutLabel()" method. Here is the code..
    //Your code using the tabbedPane
    JTabbedPane tp = new JTabbedPane();
    tp.setUI(new LeftTabbedPaneUI());
    //File containing the overrided TabbedPaneUI
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.text.View;
    class LeftTabbedPaneUI extends javax.swing.plaf.metal.MetalTabbedPaneUI {
            //I also overrided this function just to force tabs wider than
            //the displayed "String Width". I asume that you found another
            //way to do this so you can delete this function in your
            //implementation
         protected int calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics){
              return 150;
        protected void layoutLabel(int tabPlacement,
                                   FontMetrics metrics, int tabIndex,
                                   String title, Icon icon,
                                   Rectangle tabRect, Rectangle iconRect,
                                   Rectangle textRect, boolean isSelected ) {
            textRect.x = textRect.y = iconRect.x = iconRect.y = 0;
         View v = getTextViewForTab(tabIndex);
         if (v != null) {
             tabPane.putClientProperty("html", v);
         //This Line is added to avoid writing on tab border while aligned to left.
         //You can comment this line to test and or adjust the "5" pixel space
         Rectangle rec = new Rectangle(tabRect.x+5,tabRect.y,tabRect.width,tabRect.height);
            SwingUtilities.layoutCompoundLabel((JComponent) tabPane,
                                               metrics, title, icon,
                                               SwingUtilities.CENTER,
                                               SwingUtilities.LEFT,
                                               SwingUtilities.CENTER,
                                               SwingUtilities.TRAILING,
                                               rec,
                                               iconRect,
                                               textRect,
                                               textIconGap);
         tabPane.putClientProperty("html", null);
         int xNudge = getTabLabelShiftX(tabPlacement, tabIndex, isSelected);
         int yNudge = getTabLabelShiftY(tabPlacement, tabIndex, isSelected);
         iconRect.x += xNudge;
         iconRect.y += yNudge;
         textRect.x += xNudge;
         textRect.y += yNudge;
    }Here I overrided the "Metal" implementation of the tab but you must override the implementation of the used Look And Feel,
    ex. "com.sun.java.swing.plaf.window.WindowsTabbedPaneUI" for the windows LAF.

  • I've just recently updated to the ver 4.0. After the update, I can't select my vertical scroll and any buttons on the search toolbar.

    I've just recently updated to the ver 4.0. After the update, I can't select my vertical scroll and any buttons on the search toolbar. I've tried switching off all the add-ons and running it on safe-mode but the problem still persist. Anybody encountered the same issue here? Any help would be good. Cheers

    Okay. The missing menus at the top of iTunes (in recent versions) can indicate trouble with the Segoe UI fonts on your system. It's a new symptom of a problem that can also cause text to go missing from the Device tab in iTunes.
    Unfortunately it's a bit trickier to deal with on Windows 7 systems than Vista or XP. (The "Vortical" instructions which can fix it for almost all folks on Vista and XP aren't applicable to Windows 7.)
    Try having a look through the following (unfortunately very long) topic. It contains a lot of information on the Windows 7 variants of this, and possible methods for fixing the various Segoe UI-related issues that might be in play:
    iTunes 10.1 Missing Text

  • The "+" appears on the left side of the open tabs, when I re-open a closed window. The tab that should be first on the left doesn't have a tab!

    The "+" appears on the left side of the open tabs, when I re-open a closed window. The tab that should be first on the left when the window is re-opened doesn't have a tab! If all the other tabs are closed, the webpage appears, but still has no tab! If more tabs are then opened, it is again inaccessible without closing all tabs!

    In Finder, go command - F. On the top left set "Kind" to Date Created, finish selecting the criteria and hot "Save" on the top right. You'll get a new smart folder with an option to add it to the sidebar.

Maybe you are looking for

  • Where can i get BO XI trail software

    Hi Gurus, I am working on SAP BI,I want to learn crystal reports 2008, can any one suggest me where can i get crystal reports trail version soft ware? i tried some links provided in SDN but they did not worked out.can some one help me in getting this

  • How to compress unedited movie to smaller size?

    I was wondering if theres a way to compress the existing imported video file that is unedited to a smaller size. I ahve a good size hardrive but I don't have time to edit all the camcorder movies I take so I leave them untouched in their folders in t

  • Adobe Save For Web Error???

    i have a core2duo, xp sp3 running 8GB of ram 3.5GB as my main memory, 4.5GB as my virtual memory. setup by Gavotte Ramdisk. and my photoshop cs3 scratch disk is set to a 500GB drive with more 300GB of free space. and i let photoshop cs3 uses upto 100

  • How to produce paper flicking effect?

    I want to produce a title effect of some text built up from multiple pieces of paper "flicking" vertically into place so the text fades in and becomes more opaque with each page flicking into place. A bit like flicking through some printer paper. Can

  • Looking for PPPoE host BUT connected to the Internet

    Hi, so I have a home network that consists of a BritePort 8012-G1 which is set-up to connect to earthlink DSL using PPPoE with its login and password. The DSL modem is set in half-bridge mode (I am thinking of switching it to full bridge mode and aut