Drag JTabbedPane out of the main Frame and set scroll bars for the tabs

hi ,
Iam working on a Swing application . In it i have Six Tabs added to a single JTabbedPane. all the tabs are different class files . is it possible to drag any of the tabs out of the frame.
how to add scroll bars for the tabs individually. i have tried adding JScrollPane to the main frame and add the JTabbedPane to the Scrollpane . the scroll bar was not visible and i have tried adding
all the six tabs to the individual JScrollPanes and add the six scrollpanes to the TabbedPane .
only the scroll arrows are visible , when i minimised or resized the application the scrollbars were not appearing .
could any one help me to solve the above two problems.

just trying.....
public void mouseDragged(MouseMotionEvent e){
// this event should be activated only when the Drag goes out of scope of the parent JFrame which i dont know how
Component c=JTab.getComponentAt(JTab.getSelectedIndex());
JFrameobj.getContentPane().add(c,"Center");
}

Similar Messages

  • TS1424 I purchased an album from the itune store and was charged twice for the same album. How can I correct this?

    I purchased an album from the itune store and was charged twice for the same album. How can I correct this?

    You can contact iTunes support and ask them to refund or credit you for the second charge : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Horizontal scroll bar for the adf page

    Hi,
    We have around 7 tables in single jsff page. Here , we have a requirement like :
    We need to show horizontal scroll bar for the entire page instead of each table. Is there any way to get this.
    As of now, we have horizontal scroll bar for each table, but our customer is not accepting this, that want the scroll bar for the entire page.
    Please suggest the approach.
    Thanks

    I have grouped all the tables in panelgrouplayout.So, what is the problem (because it is not quite clear what you need)?
    If your PanelGroupLayout is with layout="horizontal", then the tables will be rendered next to each other horizontally but there will be no horizontal scrollbar on the page.
    If your PanelGroupLayout is with layout="scroll", then the tables will be next to each other vertically and there will be a horizontal and a vertical scrollbar on the page (if necessary).
    If you need your tables to be relocated next to each other horizontally and to have a horizontal scrollbar on the page, then use a PanelGroupLayouts(horizontal) inside a PanelGroupLayout(scroll):
    <af:panelGroupLayout layout="scroll">
      <af:panelGroupLayout layout="horizontal">
        <af:table> ... </af:table>
        <af:table> ... </af:table>
        <af:table> ... </af:table>
      </af:panelGroupLayout>
    </af:panelGroupLayout>If your problem is that you still have horizontal scrollbars inside the tables, then you should set appropriate widths to the corresponding tables (e.g. to <af:table> tags) such that they are large enough to fit the sum of corresponding column widths.
    ya, I know that its not god design, but its customer requirement, so we need to do that.If you expect some table(s) to be stretched automatically according to the size of browser's window, then you should re-think your UI design because PanelGroupLayouts do not stretch their children. A possible solution is to use a combination of PanelSplitters or other layout containers that stretch their children.
    Dimitar

  • Vertical scroll bar for the table

    Hi,
    I have a table which will contain more than 100 rows. First Visible rows will be 10.
    i want a vertical scroll bar for the table, so that i can see all the rows using vertical scroll bar. While scrolling down, the header row, which contain names of the column should be static (ie visible even scroll down) and the footer of the table should be visible even goes up.
    If I use Scroll container, it will take whole table and the header row, row with name of column will move up invisible when i scroll down. So it is not useful if i use scroll contatiner.
    I need a fnctionality were table has a vertical scroll bar to it.
    Thanks
    Maha

    Hi,
    Your requirement is one of the default properties of the Table UI element in NWDS CE version.
    Regards,
    Alka.

  • I have had elements 10 for a long time but recently the scroll bar for the fonts has disappeared. any ideas?

    I have had elements 10 for a long time but recently the scroll bar for the fonts has disappeared. any ideas?

    First try resetting the tool by clicking the tiny arrow at the far left end of the options bar and choosing reset tool.
    But you should be able to use the arrow keys to navigate through the fonts, too.

  • Set the horizontal scroll bar for the OOTb document library view

    hi all,
     Am facing an issue in my sp portal.We have designed and developed the portal with OOTB document library views for site columns also. Going to enable the doc lib view. but  we have some  35 columns in eeacha nd every document
    library within our sub site. But if an end user wants to see the last column then he needs to scroll. but, since  then my master page has fixed width, the top corner will be seen as blank. would like to know how can we set horizontal scrolling
    in this doc lib view .
    Das

    Hi,
    According to your description, my understanding is that you want to set the horizontal scroll bar for the document library when the last column postion exceed the fixed width.
    I suggest you can try to use Jquery to set the width attribute of the menu bar dynamically if the document library width exceeded. You can add the Jquery or CSS style using SharePoint Designer under the PlaceHolderMain tag of document
    library page. Also, you need to find the div id in your environment using Internet Explorer.
    More information:
    http://sharepointpromag.com/sharepoint-development/sharepoint-branding-101-branding-master-pages
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Scroll bar  for the table

    hi
          i  have  a scenatio  where  the table need
            scroll bar  ,  so ihave  used  scroll container 
            for the table   and  i am able to view   both 
          horizontal  and  vertical scroll var  , but  i need 
           only  verticle  scroll var  .
              how can this be achieved ?

    hi
      thanks  for the quick response ,
           but  its not helping me  .
                i have  set the width of the table less than
             scroll container  . 
                  i need just  vertical  scroll  bar  to be visible
                   no  horizontal scroll bars  
                      iam able to view both .

  • Print and even print preview comes out unreadable. Do i need to change any internal print options. My printer works with the old firefox and windows internet explorer for the SAME document. I only have a problem printing while in firefox 4.0.

    My printouts from web pages using the previous firefox and internet explorer products work.

    There's a bug in 4.0b12, which is fixed in 4.0RC.
    Open '''Help > About Firefox''' and it should check for and install the update. If it doesn't, use the '''Check for Update''' button in that "About" dialog.

  • Is it a good idea to install an SSD as the main drive and a regular HD for data?

    Please help me make the best decision on making my machine faster without having to purchase a new one!

    Nothing is going to make that system any faster. The Speed of any system it determined by the speed of the CPU, RAM and Graphic processor. The speed of the hard drive or SSD has little to do with the overall speed of the system.
    Yes with a faster hard drive and certainly with a SSD the system will boot faster and load programs faster, and with some programs that use the storage media (HDD or SSD) to store files while running, which will SEEM to make the whole system faster, but in reality it is not. The CPU and memory can only do so much in any given time period. With newer systems that speed is faster then with older system and there is nothing you can do to make an older system as fast as a newer system with a more modern, faster, CPU and faster RAM.

  • I have garage band on my I pad and from what I can tell I have done everything right with the latest versions and icloud turned on for the app and phone. I have a cloud in the upper right corner of the song but when I go to my icloud drive on a brows

    I have garage band on my I pad and from what I can tell I have done everything right with the latest updates and icloud enabled on the i pad and app. A cloud is in the upper right corner of the song but when I look on my icloud drive on a internet browser on my PC it is not there. Any reason why?

    Bring your phone into Apple for evaluation

  • After a series of very short power outages in my town our Imac boots with the pinwheel going and a progress bar, then the users screen comes up but our passwords no longer opens up desktops, just returns to the users choice screen.  What should I do?

    I'm on the choose a user screen and when I enter the password the screen goes white then returns to choosing a user. The system is rebooting differently when I tried turning off then back on, the pinwheel screen has a progress bar and it takes minutes instead of seconds.
    what should I try?

    You can try an SMC reset, especially if there was a power outage.
    http://support.apple.com/kb/HT3964
    If the issue seems like it just doesn't want to accept the password you'll need to boot to the install disc/recovery partition of the hardrive by holding the 'option' key while booting up. There should be a utility in there to reset your password.

  • Hi - I was updating the operating system on my I-Pod touch (to Ios 5). After the download finished an error message re my touch came up. The Ipod has frozen, with the apple icon and an empty bar on the screen. I can't hard reset. Help!

    Have checked and have the latest version of I tunes.

    What did the error message say? The following lists the common error messages and their resolutionL
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    For your immediate problem,:
    - Try placing he iPod in recovery mode and then restore via iTunes. For recovery mode:
    iPhone and iPod touch: Unable to update or restore
    - Next try DFU mode:
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - Last, let the battery fully drain. Then cahrge and try agin.

  • I have an ipod touch 3rd gen.I used the function of erasing all content and settings and now i am stuck on this screen with the apple logo and a loading sign for the past 17 hours.CAN SOMEONE PLEASE HELP!!!!!!!!!!!!

    i have an ipod touch 3rd gen.I used the function of erasing all contents and settings and now i am stuck with this screen showing the apple logo and the loading sign for the past 17 hours.CAN SOMEONE PLEASE HELP!!!!!!!!!!!!

    Hold down the on/off button and the home button for 20 to 30 sec, when the iPod starts and the Apple logo is on the screen release the on/off button but continue to hold the home button until you see the plug into iTunes screen.  Connect the iPod to iTunes and you should be good to go.

  • Ical puts the date in and leaves no room for the event??

    A couple of months ago ical suddenly started adding the date to my event entries and now in month view there is only room to see the date, not the event. How do I turn that off?
    What it does is if I type in "7:30 p call john doe"  it puts it in the calendar as "call john doe" and then on the other side of the entry it says in light grey " May 18, 7:30pm to May 18, 8:30pm "  .
    so because it says all that in light grey, there is no room for "call john doe"
    so my calendar says:  c May 18, 7:30pm to May 18, 8:30pm
    in other words, the event is completely displaced by the date which I dont need to see because the event is already in the box for that day.
    how can I turn this off and why did it start happening?
    thanks,
    Katarina

    nobody has an answer?? has it happened for anyone else.

  • Configuration frame pop out of the main frame - how to do (architecture) ?

    Hi,
    I have a main frame that upon it I have a config button I did.
    This button pop open another frame in which the user config some variables which I need to use in the main frame actions.
    What is the right way to do it? -
    1. in the main frame constructor to create a config frame and save it as a data member in the main frame with setVisibility false, and when the user press the 'config' button I'll change the visibility to true
    (and then if I want to take data from the config frame I'll take it from there)
    2. To save only the config data in data members (this is a small window - 3 or 4 variables) and every time the 'config' button is pressed I'll build a config frame and in its' constructor I'll send the variables I saved in the main frame
    and they will be shown in there (and ofcourse when the config frame will be closed I'll save the new variables in the data members and dispose the config frame)
    Thanks,
    Michael

    I have a little problem.
    I build my own class that extends JDialog (with check boxes, text areas etc.)
    Then I Created a JOptionPane with OK_CANCEL buttons set it as my dialog content pane.
    Now I see the the pane buttons at the top and all my components at the buttom, and its now good.
    So Instead of JDialog i extends my class to JPanel and then called
    'JOptionPane.showOptionDialog' , and set my panel as the message.
    Now it looks good but i have another problem -
    I want to do a validity check before the dialog is being closed.
    Before I did with 'addPropertyChangeListener' method on my JOptionPane, but now I dont have an OptionPane because the 'showOptionDialog' is static.
    So for conclusion -
    How can I build a dialog thats:
    1. Look like I want (text areas, check boxes, lables ...)
    2. Has OK\Cancel button
    3. Lets me do validity check after the ok was pressed (and if I want - wont close the dialog)
    4. Return me values from the dialog (the text in the text area, the selection of the check box etc.)

Maybe you are looking for