Wasted Space in JTabbedPane

Anyone know if there is a way to prevent excess space in a JTabbedPane? As in, keep the pane only as big at the biggest tab within it?
Take this for example:
public class TabbedPaneLayoutTest {
     public static void main(String[] args) {
          SwingUtilities.invokeLater(new Runnable() {
               public void run() {
                    launchUI();
     private static void launchUI() {
          JFrame frame = new JFrame("Tabbed Pane Layout Test");
          JPanel mainPanel = new JPanel(new BorderLayout());
          JTabbedPane tabbedPane = new JTabbedPane();
          for (int i=0; i<4; i++) {
               tabbedPane.addTab("test", new JLabel("Hi"));
          mainPanel.add(tabbedPane, BorderLayout.NORTH);
          JScrollPane scrollPane = new JScrollPane();
          mainPanel.add(scrollPane, BorderLayout.CENTER);
          frame.setContentPane(mainPanel);
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.pack();
          frame.setLocationRelativeTo(null);
          frame.setVisible(true);
}In the example, I placed the JTabbedPane in the NORTH of a BorderLayout to try and keep it as compact as possible. If you set i to either 1 or 2, so only 1 or 2 tabs are created, the tabs stay very compact. But when you get up to 4 or more tabs, there is a fair amount of wasted space. Anyone familiar with this phenomenon and/or have any possible solutions?

Looks like you are right, camickr -- The default wrapped tab layout policy must be leaving extra space for wrapping the tabs. When I switch to SCROLL_TAB_LAYOUT the wasted space disappears. I had originally assumed that the panel would simply grow in size when it needs to wrap tabs, but apparently it's doesn't work like that. For the particular instance where it was troubling me, I'll just switch to the scroll tab layout. Thanks.
Edited by: Skotty on Jun 25, 2010 5:40 PM

Similar Messages

  • Re: settings -- how to reduce waste space at top of page to one line only

    I find that the wide screens are too short so it seems like more scolling is needed since less of web page is viewable and this problem is made worse by waste space taken up by various lines - for example on my firefox page, there is a blue line at the top that currently says "ask a question" Firefox help etc and then the rest of the line is blank -- about 70% of space not used/needed
    The second line down shows: File, Edit, View, History, Bookmarks, Tools, Help -- then about 70%waste space -- rest of line is blank -- How can we put stuff from various lines into one or two lines Max ?
    To continue, in my case, the next line has a couple of tabs -- this is useful -- maybe if there could be an easy way to show tabs in their own line when lots of various pages need to be open but when need max space viewable below to click a dropdown to push tabs up to end of next line above (in the waste space)
    Finally, my page has the 4th line taken up by the Forward and Back arrows, the web address line, and then a shorter box called iLivid Web Search with a magnifying glass and then a little box at the end of a house -- which I use all the time to go to my home page for new tabs opened
    I think it would be cool if we could easily elim all but the blue line and one more line by pushing stuff in line 3 and 4 up into line 1 (blue line) and line 2
    My much older IE version had a feature you could drag the lines up they would do what I am saying with all the lines except the blue line at the top -- then when it compressed thje info, it would just show part of title and then a little // sort of button to click to see or expand a part of the line to read it all if needed
    It seems likely this has mostly been solved but I can not seem to figure how to use the settting and buttons on my firefox page to accomplish these changes easily back and forth
    From my looking at it, these features need to be available when you right click on each line but maybe my version8 is not set up quite right
    so any and all assistance is greatly appreciated
    Cheers, G

    Found settings in on the Layout tab of the page and changed the top px from 32 to 10.
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

  • Printing Docs - how to get rid of 3 inch wasted space on right side of page

    I tried to print out : Communicating With Objects
    http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CocoaFunda mentals/CommunicatingWithObjects/CommunicateWithObjects.html
    After trying several different settings and printed only the first page until I got the print more or less the way I wanted it, however...
    I have a standard HP Color Laserjet 2600n, looked at all the printing preferences, and all four margins are set at (.25 inch), yet when the pages print out there are about 2.5 inches of wasted space on the left side. The space is there for the Table of Contents, but there is nothing printed there, the space is blank.
    So I clicked on the Table of Contents header, so the TOC became hidden and the window only contained the text and images, then when I tried to print, I found that now there were about 3 inches of white space on each page on the right hand side. This is somewhere around a 40% waste in paper, trees, etc.
    One would think that expensive as printing is, there would be a way to save paper by optimizing coverage on each page as much as possible.
    Another curious thing is that the size of the text on the screen is easy to read at Safari normal (default) settings, yet when the first page is printed the text is really small.
    In order to get the size of the print on the paper to be easily readable, I had to click on the large [a][A] at the top of the Safari window twice (+ 2 sizes). The text on the window was fairly large, but the print became easy to read. There was still an excessive amount of wasted space, which just goes against the grain...
    Does anybody have a clue how to get rid of all the wasted space on each page ? There has to a simple way, this is 2010 and we've been doing this for 25+ years now.
    I am sure it is something simple that I am overlooking ? I'd be grateful for any help.
    Thank You,
    Bill Hernandez
    Plano, Texas

    What browser are you using? Try downloading a PDF if one is available, or try printing from XCode's Deveoper Documentation window.

  • How do i remove an Update notification? I do not want to update to the latest iOS (Asian languages) which is useless to me and I don't want to waste space on my iPad. I want to be able to "Select All" instead of doing each update individually.

    That's quite a title I created!  Sorry, I've never submitted a question before! ☺ I do not want to update to the latest iOS (Asian language stuff) which is useless to me and I don't want to waste space on my iPhone 4S and iPad 5. I want to be able to "Select All" updates instead of doing each update individually. It's a real pain in the you-know-what. Does anyone know how to I remove this notification (and any other updates I'm not interested in) from the Updates page? Thanks so much everyone!

    Thanks so much for your time!  I wish you had a more positive answer, but c'est la vie!  I hate the fact that I cannot control my apps and feel like a hostage of the developer(s). I've read other forums and some responses were "then delete the app!"  Lame answer!  So thank you so much for your respectful and insightful reply!  Cheers.

  • HT2498 If I use camera window to download my pictures to my computer, and then I copy and paste the pictures to iPhoto. Would I be ending up having the same pictures in two different files in my computer, and so wasting space in my hard drive?

    I recently bought a canon camera. The instructions of the camara recommend to use the canon software (camara window) to download pictures to my computer.  I would like to have my pictures in i-photo because it syncs them to my ipad.
    I want to download the pictures from my camera to camara window, and then drag and drop the pictures to i-photo. If I keep my pictures in both programs would I be wasting space in my computer hard drive by having the same pictures in two different files?

    Yes.
    Ignore the Canon software. It gains you nothing and adds complexity. Just use iPhoto for the lot.
    Regards
    TD

  • 50 gigs of wasted space on VU32 X61

    I have X61 with Vista ultimate 32 with 3 gigs ram and upgraded processor.
    When I first got this computer, it had fatal errors resulting in 3 full reinstalls.  Actually, lenovo had sent me CDs for the wrong computer initially and only later sent me recovery DVDs for VU32.  However, the third and last time that I needed to do this--approximately a year ago, i realized that it no longer even asked me for DVDs when reformatting through thinkpad R&R...it is all saved onto hard drive.  So I have like 50 gigs of wasted space on a 160 gig 7200 rpm hard drive.  The only partition is the 5 gig one that was initially there.
    So...all to ask: is there any way of opening up this space and deleting windows install files as it seems to be working these days.  Or is this Vista's insurance policy--making me prepared for a possible fatal crash in the future?
    HELP!

    Hello sdbaral,
    please check this thread out and see how to get free disc space.
    Follow @LenovoForums on Twitter! Try the forum search, before first posting: Forum Search Option
    Please insert your type, model (not S/N) number and used OS in your posts.
    I´m a volunteer here using New X1 Carbon, ThinkPad Yoga, Yoga 11s, Yoga 13, T430s,T510, X220t, IdeaCentre B540.
    TIP: If your computer runs satisfactorily now, it may not be necessary to update the system.
     English Community       Deutsche Community       Comunidad en Español

  • Wasted space in chat window

    I got the 7.2.0.103 upgrade this morning..
    what's with the silly polka-dot column on the right side of the chat window?  Is there some slight-of-hand to get rid of it??  I want to maximize the width of the chat window, but after I make it more than about 2 inches wide... the polka-dots get added.... yuck.

    Looks like you are right, camickr -- The default wrapped tab layout policy must be leaving extra space for wrapping the tabs. When I switch to SCROLL_TAB_LAYOUT the wasted space disappears. I had originally assumed that the panel would simply grow in size when it needs to wrap tabs, but apparently it's doesn't work like that. For the particular instance where it was troubling me, I'll just switch to the scroll tab layout. Thanks.
    Edited by: Skotty on Jun 25, 2010 5:40 PM

  • Wasted space in .approject files

    From what I can tell, the approject file does not shrink if photos are removed from it. Can anyone confirm this is a bug?
    Example...
    1.. Take any project with a decent number of photos
    2.. Check the size of the approject, AP.Minis, AP.Thumbnails and AP.Tinies files
    3.. Delete a portion of those photos
    4.. Recheck the sizes of those files..
    Results:
    the approject is slightly smaller due to the folders per file being deleted
    the AP.Minis, Thumbnails, and Tinies files are the same size..
    Example:
    Project starts with 734 photos
    File sizes are 377 mb, 69.5 mb, 228.5 mb, and 1.1 mb respectively
    Delete some, project now has 624 photos
    File sizes are 366.3 mb, 69.5 mb, 228.5 mb, and 1.1 mb respectively
    I would assume that after deleting ~15% of the photos, that the project was ~15% smaller.. (adding photos to a project does work roughly in line..)
    Instead, the file is *ONLY 3% smaller*.. it SHOULD be in the 320mb range, but instead is ~366, roughly 46 mb of wasted space..
    Note: I generally delete at least 1/2 of the photos in every project.. So I'm willing to bet that roughly 45% of my 29.58 GB Aperture Library is wasted.. That probably has an effect on overall performance, and definitely is chewing up too much space on my laptop. I need those 15 GB back, please give me a way to claim that space.
    Note 2: Do the same test, and delete all of the photos in the project. the AP.* files do not shrink. The project with 0 photos still occupies ~300 mb worth of space.
    At the very least, Aperture needs a way to "Compact" project files. Preferably at the project and global levels (i.e. all projects in one shot). I have rebuilt the database recently, and that did not improve this situation.

    I haven't tried deleting the AP.* files as of yet, and letting Aperture rebuild them. I'm going to guess this might work, though given I have over 250 projects, I'm not looking forward to the "show package contents", manually delete files, let Aperture reprocess them x 250 times.. Perhaps I'll be better off doing it through the command prompt.
    And even if this does work, it's bound to be hundreds of times slower to rebuild every single thumbnail (roughly 100k of them) than it would be to compact each AP.* file, removing the empty/unused entries.
    This is poor design/implementation/bug in my opinion (as a software developer for the past 17 years..)

  • I am trying to fit information in a text box. Is there way to move the information further up. There is a lot of wasted space on the top.

    I am trying to fit information in a text box. Is there way to move the information further up. There is a lot of wasted space on the top.

    Shane's psychic powers are amazing..... I would have asked 'what text box?'
    ...and so, yet another inquisition begins!
    The Mystic North

  • How to prevent wasted space on a table

    I am running a SAP Solution Manager 7.1 on Sybase ASE 15.7.0.110. The InfoCube table /BI0/F0SMD_PE2H keeps on growing quickly. This wasn't the case on other RDBMS. The ATM job doesn't help. Also running the ATM job manually doesn't change the table size:
    reorg compact [SMP.SAPSR3./BI0/F0SMD_PE2H]
    Only if I use the rebuild option, the table size shrinks:
    reorg rebuild [SMP.SAPSR3./BI0/F0SMD_PE2H]
    This causes the InfoCube with 1 million rows to shrink from 8 GB to 400 MB. That was an awful lot of wasted space.
    Is it possible to avoid this excessive growth? Looks like the daily data load is causing the table to grow quickly again.
    Or should I try to perform this "reorg rebuild" via the weekly ATM job?
    Regards,
    Mark

    This is Sybase ASE 15.7.0.110. The mentioned table is a SAP InfoCube fact table. Fact tables never contain LOB data, they are composed of int and decimal columns. The SAP note 1780367 is about updated LOB columns. On the fact table, there are only inserts performed, no updates or deletes. Therefore I think the note doesn't help. I am just puzzled what causes Sybase ASE to allocate 7 times more space than required.
    Name       
    Owner  Object_type Object_status                                                        
    /BI0/F0SMD_PE2H SAPSR3 user table  deallocate first text page, page level compressed, contains compressed data            
    (1 row affected)
    Column_name                                        
    Type                   
    Length             
    Prec       
    Scale          
    Nulls          
    Not_compressed                                     
    Default_name                                                                           
    Rule_name                      
    Access_Rule_name                                           
    Computed_Column_object                                                             
    Identity
    KEY_0SMD_PE2HP                                     
    int                         
    4             
    NULL        
    NULL              
    0                       
    0                                     
    REPOLOAD_MACH_656002337                                                                
    NULL                           
    NULL                                                       
    NULL                                                                                        
    0
    KEY_0SMD_PE2HT                                     
    int                         
    4             
    NULL        
    NULL              
    0                       
    0                                     
    REPOLOAD_MACH_656002337                                                                
    NULL                           
    NULL                                                       
    NULL                                                                                        
    0
    KEY_0SMD_PE2HU                                     
    int                         
    4             
    NULL        
    NULL              
    0                       
    0                                     
    REPOLOAD_MACH_656002337                                                                
    NULL                           
    NULL                                                       
    NULL                                                                                        
    0
    KEY_0SMD_PE2H1                                     
    int                         
    4             
    NULL        
    NULL              
    0                       
    0                                     
    REPOLOAD_MACH_656002337                                                                
    NULL                           
    NULL                                                       
    NULL                                                                                        
    0
    KEY_0SMD_PE2H2                                     
    int                         
    4             
    NULL        
    NULL              
    0                       
    0                                     
    REPOLOAD_MACH_656002337                                                                
    NULL                           
    NULL                                                       
    NULL                                                                                        
    0
    KEY_0SMD_PE2H3                                     
    int                         
    4             
    NULL        
    NULL              
    0                       
    0                                     
    REPOLOAD_MACH_656002337                                                                
    NULL                           
    NULL                                                       
    NULL                                                                                        
    0
    KEY_0SMD_PE2H4                                     
    int                         
    4             
    NULL        
    NULL              
    0                       
    0                                     
    REPOLOAD_MACH_656002337                                                                
    NULL                           
    NULL                                                       
    NULL                                                                                        
    0
    KEY_0SMD_PE2H5                                     
    int                         
    4             
    NULL        
    NULL              
    0                       
    0                                     
    REPOLOAD_MACH_656002337                                                                
    NULL                           
    NULL                                                       
    NULL                                                                                        
    0
    KEY_0SMD_PE2H6                                     
    int                         
    4             
    NULL        
    NULL              
    0                       
    0                                     
    REPOLOAD_MACH_656002337                                                                
    NULL                           
    NULL                                                       
    NULL                                                                                        
    0
    KEY_0SMD_PE2H7                                     
    int                         
    4             
    NULL        
    NULL              
    0                       
    0                                     
    REPOLOAD_MACH_656002337                                                                
    NULL                           
    NULL                                                       
    NULL                                                                                        
    0
    KEY_0SMD_PE2H8                                     
    int                         
    4             
    NULL        
    NULL              
    0                       
    0                                     
    REPOLOAD_MACH_656002337                                                                
    NULL                           
    NULL                                                       
    NULL                                                                                        
    0
    KEY_0SMD_PE2H9                                     
    int                         
    4             
    NULL        
    NULL              
    0                       
    0                                     
    REPOLOAD_MACH_656002337                                                                
    NULL                           
    NULL                                                       
    NULL                                                                                        
    0
    SMD_SUM                                            
    decimal                     
    9               
    17           
    3              
    0                       
    0                                     
    REPOLOAD_MACH_656002337                                                                
    NULL                           
    NULL                                                       
    NULL                                                                                        
    0
    SMD_MIN                                            
    decimal                     
    9               
    17           
    3              
    0                       
    0                                     
    REPOLOAD_MACH_656002337                                                                
    NULL                           
    NULL                                                       
    NULL                                                                                        
    0
    SMD_MAX                                            
    decimal                     
    9               
    17           
    3              
    0                       
    0                                     
    REPOLOAD_MACH_656002337                                                                
    NULL                           
    NULL                                                       
    NULL                                                                                        
    0
    SMD_COUN                                           
    decimal                     
    9               
    17           
    3              
    0                       
    0                                     
    REPOLOAD_MACH_656002337                                                                
    NULL                           
    NULL                                                       
    NULL                                                                                        
    0
    SMD_PERI                                           
    decimal                     
    9               
    17           
    3              
    0                       
    0                                     
    REPOLOAD_MACH_656002337                                                                
    NULL                           
    NULL                                                       
    NULL                                                                                        
    0
    SMD_KEY                                            
    int                         
    4             
    NULL        
    NULL              
    0                       
    0                                     
    REPOLOAD_MACH_656002337                                                                
    NULL                           
    NULL                                                       
    NULL                                                                                        
    0
    Object has the following indexes
    index_name                                                         
    index_keys                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
    index_description                                              
    index_max_rows_per_page                                                                
    index_fillfactor                                           
    index_reservepagegap               
    index_created                                                          
    index_local
    /BI0/F0SMD_PE2H~P                                                   
    KEY_0SMD_PE2HT, KEY_0SMD_PE2H1, KEY_0SMD_PE2H2, KEY_0SMD_PE2H3, KEY_0SMD_PE2H4, KEY_0SMD_PE2H5, KEY_0SMD_PE2H6, KEY_0SMD_PE2H7, KEY_0SMD_PE2H8, KEY_0SMD_PE2H9, KEY_0SMD_PE2HU, KEY_0SMD_PE2HP                                                                                                                                                                                                                                                                                                                            
    nonclustered                                                                         
    0                                                                               
    0                                                              
    0               
    Apr  7 2014  1:20PM                                                    
    Local Index
    /BI0/F0SMD_PE2H~01                                                  
    KEY_0SMD_PE2HP                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    nonclustered                                                                         
    0                                                                               
    0                                                              
    0               
    Apr  7 2014  1:20PM                                                    
    Local Index
    /BI0/F0SMD_PE2H~04                                                  
    KEY_0SMD_PE2H1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    nonclustered                                                                         
    0                                                                               
    0                                                              
    0               
    Apr  7 2014  1:20PM                                                    
    Local Index
    /BI0/F0SMD_PE2H~05                                                  
    KEY_0SMD_PE2H2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    nonclustered                                                                         
    0                                                                               
    0                                                              
    0               
    Apr  7 2014  1:20PM                                                    
    Local Index
    /BI0/F0SMD_PE2H~06                                                  
    KEY_0SMD_PE2H3                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    nonclustered                                                                         
    0                                                                               
    0                                                              
    0               
    Apr  7 2014  1:20PM                                                    
    Local Index
    /BI0/F0SMD_PE2H~07                                                  
    KEY_0SMD_PE2H4                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    nonclustered                                                                         
    0                                                                               
    0                                                              
    0               
    Apr  7 2014  1:20PM                                                    
    Local Index
    /BI0/F0SMD_PE2H~08                                                  
    KEY_0SMD_PE2H5                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    nonclustered                                                                         
    0                                                                               
    0                                                              
    0               
    Apr  7 2014  1:20PM                                                    
    Local Index
    /BI0/F0SMD_PE2H~09                                                  
    KEY_0SMD_PE2H6                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    nonclustered                                                                         
    0                                                                               
    0                                                              
    0               
    Apr  7 2014  1:20PM                                                    
    Local Index
    /BI0/F0SMD_PE2H~10                                                  
    KEY_0SMD_PE2H7                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    nonclustered                                                                         
    0                                                                               
    0                                                              
    0               
    Apr  7 2014  1:20PM                                                    
    Local Index
    /BI0/F0SMD_PE2H~11                                                  
    KEY_0SMD_PE2H8                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    nonclustered                                                                         
    0                                                                               
    0                                                              
    0               
    Apr  7 2014  1:20PM                                                    
    Local Index
    /BI0/F0SMD_PE2H~12                                                  
    KEY_0SMD_PE2H9                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    nonclustered                                                                         
    0                                                                               
    0                                                              
    0               
    Apr  7 2014  1:20PM                                                    
    Local Index
    (11 rows affected)

  • I would like to know what data represents the yellow "Other" in the Data Distribution Window on the Summary page of the iPad. It varies between a low of 1.50 GB to as much 5 GB. It seems to me that this is wasted space. Any ideas?

    I would like to know what data represents the yellow "Other" in the Data Distribution Window on the Summary page of the iPad. It varies between a low of 1.50 GB to as much 5 GB. It seems to me that this is wasted space. Any ideas?

    I have observed my "Other" data increases in size after I deleted a video. My Other data once get to 18GB, yes eighteen.
    It seems like the only way to control this mysterious "Other" data is restoring the iPad to its manufacture configuration. Restore it to a previous back up doesn't help either.  Once in a while is ok, but several times a month is a pain.
    After the last restore (to manufacture), my other immediately jump to 0.4GB and seems to hold at 0.65GB.
    Looks more and more like a bug in iOs.

  • Deleted Index entry & Waste Space

    I'm reading OCP 11g Book(All-in-One exam guide by Oracle Press) in a chapter(Moving and reorganizing Data) it says..
    Indexes do deteriorate as DML is executed: if a row is deleted, this will result in wasted space in the index. Oracle’s index maintenance algorithm does not permit reuse of this space. It is logically impossible to reclaim this space by relocating other
    index keys because the index keys must always be stored in order ..and so on.
    I've read (and tested) (courtesy Richard foote ) that index do use free space with subsequent insert whether or not the value is same. Richard foote has written it in 2009 in his blog post and the book seems to be of 2010 then why such misleading information from Oracle Press book?
    Regards!!

    Hi Fabricio
    The point you're missing is that most indexes don't have space that needs to be reclaimed in the first place, as the deleted space is simply reused by subsequent inserts into the leaf block anyways. It's not true that "*Oracle’s index maintenance algorithm does not permit reuse of this space. It is logically impossible to reclaim this space by relocating other index keys because the index keys must always be stored in order*"
    Not sure I'll be buying the book based on the little piece I've now read :)
    Cheers
    Richard Foote
    http://richardfoote.wordpress.com/

  • Removing Space within JTabbedPane

    Hi everyone. It seems that whenever I add a component to a JTabbedPane, the component is maximized, but there's still a small space around the component that seperates it from its tab. Does anyone know how to remove this small space? Thanks.
    Jon

    Easier option: myTabbedPane.setUI(new javax.swing.plaf.metal.MetalTabbedPaneUI() {
        public Insets getContentBorderInsets(int tabPlacement) {
            return new Insets(0,0,0,0);
        }});...if you are using the Metal L&F. If not, you'll have to write your own paintTabBackground() method to add to the above class. Here's a working example:tabbedpane.setUI(new javax.swing.plaf.basic.BasicTabbedPaneUI() {
        public Insets getContentBorderInsets(int tabPlacement) {
            return new Insets(0,0,0,0);
            protected void paintTabBackground( Graphics g, int tabPlacement,
                                           int tabIndex, int x, int y, int w, int h, boolean isSelected ) {
            if ( isSelected ) {
                g.setColor(  (Color)UIManager.get("TabbedPane.highlight"));
            } else {
                g.setColor( tabPane.getBackgroundAt( tabIndex ) );
             switch ( tabPlacement ) {
                    case LEFT:
                  g.fillRect( x + 5, y + 1, w - 5, h - 1);
                  g.fillRect( x + 2, y + 4, 3, h - 4 );
                  break;
                    case BOTTOM:
                  g.fillRect( x + 2, y, w - 2, h - 4 );
                  g.fillRect( x + 5, y + (h - 1) - 3, w - 5, 3 );
                  break;
                    case RIGHT:
                  g.fillRect( x + 1, y + 1, w - 5, h - 1);
                  g.fillRect( x + (w - 1) - 3, y + 5, 3, h - 5 );
                  break;
                    case TOP:
                    default:
                  g.fillRect( x + 4, y + 2, (w - 1) - 3, (h - 1) - 1 );
                  g.fillRect( x + 2, y + 5, 2, h - 5 );
    });

  • I have a lot of wasted space at the top of my laptop screen, because the Firefox toolbars take a line for each. Is it possible to combine them on one line, like you used to be able to do in MS Word, e.g. ?

    My new laptop screen is very wide, but proportionately not so high. When running Firefox, Web pages are forced down the screen by the toolbars, so that I can't see the whole page without scrolling down. If I could combine / arrange the toolbars on one, or at least fewer, lines, the Web pages wouldn't get shunted down as much.

    Yes, you can rearrange / move the elements of the default Firefox Toolbars and combine to save space by using the Customize mode, see this. <br />
    https://support.mozilla.com/en-US/kb/How+to+customize+the+toolbar <br />
    http://kb.mozillazine.org/Toolbar_customization
    As far as the Site Advisor add-on - with add-on Toolbars your results will vary depending upon the Toolbar add-on. Some Toolbar developers do a minimal job and their product isn't as customizable to the extent that Firefox provides for; where other Toolbar add-ons were done the "right way" and they are as customizable as the default Firefox Toolbars.

  • Calendar month view has wasted space between months, can I remove? iOS 7 iPhone

    The calendar month view (both iPad and iPhone) has a gap between months eg: Jan 31 has two spaces &amp; almost a whole line blank before Feb 1. I want the months to run sequential with no gaps. Any way of doing this?

    Use a different app.
    Unfortunately, there is no way to change the formatting of the built in app. Your only option is to look for a different calendar app and see if it meets your needs

Maybe you are looking for