Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: How to set the width and height of the Scroll_tab_layout menu display of Set_Tab_Layout_ policy on jtabbedpane in java?

  1. #1
    Junior Member
    Join Date
    Jul 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to set the width and height of the Scroll_tab_layout menu display of Set_Tab_Layout_ policy on jtabbedpane in java?

    Hi

    I have Jtabbedpane in horizontal position on top of the jpanel. It can have the tablayoutpolicy as Scroll_tab_layout. That can display the menu(which displays the list of tabs in Jtabbedpane). But the size of menu display is small. I need to enhance the width and height of that display. How do I do it?

    My Code as follows:

    theMainJTabbedPane = new JTabbedPane(); theMainJTabbedPane.setFont(defaultFont1); theMainJTabbedPane.setTabLayoutPolicy(JTabbedPane. SCROLL_TAB_LAYOUT);

    When the screen is minimized the SCROLL_TAB_LAYOUT property of JTabbedPane shows a display which contains the name of all tabs in the JTabbedPane. But the display is small. I need to increase the width of that dispaly.

    thanks in advance.Reply as soon as possible....

    --- Update ---

    Hi sir,

    Reply for my question as soon as possible...

    Thanks & Regards
    Rahul


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: How to set the width and height of the Scroll_tab_layout menu display of Set_Tab_Layout_ policy on jtabbedpane in java?

    Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.
    I need to enhance the width and height of that display. How do I do it?
    What do you mean, "enhance?" Your question isn't clear.

  3. #3
    Junior Member
    Join Date
    Jul 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to set the width and height of the Scroll_tab_layout menu display of Set_Tab_Layout_ policy on jtabbedpane in java?

    Which means how to increase the size(width & height) of the that display.

Similar Threads

  1. Getting the width and height of a frame without borders
    By NathanWick in forum What's Wrong With My Code?
    Replies: 3
    Last Post: November 24th, 2013, 09:45 PM
  2. Need Help for set default size (width and length) of table using 'XWPFTable'
    By nareshdev in forum What's Wrong With My Code?
    Replies: 4
    Last Post: June 14th, 2013, 02:55 AM
  3. How to programmatically set combobox width?
    By stab in forum AWT / Java Swing
    Replies: 1
    Last Post: June 3rd, 2011, 03:59 PM
  4. JButton Width & Height
    By Howdy_McGee in forum Java Theory & Questions
    Replies: 4
    Last Post: May 22nd, 2010, 07:12 AM
  5. Reading the size (height and width) of word documents
    By pradeep_das in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: May 7th, 2010, 09:58 AM

Tags for this Thread