How do I Lay it out? setMinimumSize is ignored

Hi:
I've been through about all the layout managers. I spent a pretty good bit of time w/ the gridbag. I finally learned about the TableLayout:
http://www.clearthought.info/software/TableLayout/
I can't make any of it work reliably.
I put buttons into a JPanel that I put into a TableLayout (or GridBag Layout) that I put into another JPanel (nested tables).
Every time I do it my components get squashed to the smallest that they can be. I even did setMinimumSize and it was ignored.
I made sure that each of the exterior panels could easily contain their interior panels which could easily contain the components.
Here, I'm putting stuff into pnBackup (the exterior JPanel).
I put a TableLayout in it w/ 2 columns , FILL and 490.
I remmed all the stuff that would go into the first column (FILL).
In the second column I put a JPanel pnButtons and made the width 450.
I put another TableLayout in that JPanel w/ 1 column 400 & 3 rows @ 35.
I put 2 buttons in the 2nd and 3rd rows.
Their width is 80, height 25, so there's plenty of room to hold them.
I aligned them both r, b so they should be sitting in the bottom right hand corner.
No dice, the Exit button is squashed and they're in the bottom about 3/4 from the left side of pnBackup.
How can I control this thing?
        scroller = new treePane(fileTree); //Extends JScrollablePane       
        double size[][] =
            {{TableLayout.FILL, 490},
             {0.05, TableLayout.FILL, 25}};
        pnBackup = new JPanel(new TableLayout(size));
        pnBackup.setPreferredSize(new Dimension(appWidth - 15, appHeight - 15));
        lbBUInstructions = new JLabel("Check Folders or Files to Back Up");       
        //pnBackup.add(lbBUInstructions, "0, 0, l, t");      
        //pnBackup.add(scroller, "0, 1, l, t");       
        pnBUStatus = new JPanel();
        pnBUStatus.setPreferredSize(new Dimension(appWidth - 200, 25));
        //pnBackup.add(pnBUStatus, "0, 2, l, b");        
        double btnSize[][] =
            {{400},
             {TableLayout.FILL, 35, 35}};
        pnBUButtons = new JPanel(new TableLayout(btnSize));
        pnBUButtons.setPreferredSize(new Dimension(450, appHeight - 15));
        btnBackup = new JButton("Backup");
        btnBackup.setVerticalTextPosition(AbstractButton.CENTER);
        btnBackup.addActionListener(new btnBackupListener(btnBackup));       
        btnBackup.setMinimumSize(new Dimension(80, 25));
        pnBUButtons.add(btnBackup, "0, 1, r, b");
        btnExit = new JButton("Close");
        btnExit.setVerticalTextPosition(AbstractButton.CENTER);       
        btnExit.addActionListener(new btnExitListener(btnExit));       
        btnExit.setMinimumSize(new Dimension(80, 25));
        pnBUButtons.add(btnExit, "0, 2, r, b");
        pnBackup.add(pnBUButtons, "1, 0, 1, 2, r, b");
        tabs = new JTabbedPane();
        tabs.addTab("Backup", pnBackup);
        fme = new JFrame("MRD-Backup");
        fme.setVisible(true);

Put it in rice. As soon as possible. Or get some silica gel (http://bit.ly/NIQonk) and use that. They should have some at like an arts/crafts store. Quickness is the key. Don't try to turn it on.

Similar Messages

  • How can I lay out a newspaper look using a photo?

    How can I lay out a newspaper look and incorporate a photo?
    Content to include:  Michelson/Draper Weekender
                                       Nuptual Edition
    date info
    Headline
    Photo
    Articles
    Schedule of events
    Possibly be able to fold

    I recommend Apple's Pages app.  Here is a screen shot from Pages' template chooser:

  • Help! I received a message on my iPhone that "phone Number Added to iPad4 [NAME of IPAD] is now using [PHONE NUMBER] for FaceTime and iMessage" and it is not my iPad!! What do I do, how do I shut them out??

    Help! I received a message on my iPhone that "phone Number Added to iPad4 [NAME of IPAD] is now using [PHONE NUMBER] for FaceTime and iMessage" and it is not my iPad!! What do I do, how do I shut them out??

    Use a strong password and set up Two Step Verification on your account.
    http://support.apple.com/kb/ht5570

  • My charger broke off in my iPad mini how do i get it out

    my charger broke off in my ipad mini.. how do i get it out or where can i bring it to fix it

    The tweezers are a good idea. just don't go digging to the point that you may scratch the case. Because, unfortunately, if you do and if you have any issues with the port in the future,  those scratches may be enough to void any warranty coverage.
    A delicate touch is what's needed.

  • I have an Retina display MacBook Pro with HMDI out port. I also have an HDMI to Component cable with Audio Plugs. How can I get HDMI out to work with this cable when plugged into the Component and Audio ports on my TV?

    I have an Retina display MacBook Pro with HMDI out port. I also have an HDMI to Component cable with Audio Plugs. How can I get HDMI out to work with this cable when plugged into the MacBook Pro and connected to the TVs Component and Audio in ports.

    Will not work.  To my knowledge, dual converting like that isn't supported.  The Mac must detect the connected video output device and that sort of info cannot be done across an analog component uni-directional connection.

  • I have a macbook air and I can't cut and paste in itunes.  The right clic does not work. How can I work this out?

    I have a macbook air and I can't cut and paste in itunes.  The right clic does not work. How can I work this out?

    Great tip Stephen!!
    I was so frustated from this issue that I used to use Windows iTunes for mass editing info, adding Lyrics etc and then transfering songs to Mac. This tip has alleviated my pain!!
    Thanks for the tip. This question should be tagged as answered.

  • My MacBook Pro is running very slow. How can I check is out?

    .My MacBook Pro is running very slow. How can I check is out?

    Backup your data.  Your disk/SSD may be failing.
    What has changed lately?
    - Has your disk/SSD filled up recently?
              How much free space? 
              Less than 10 GB? 
              Less than 20 GB?
    - Did you upgrade OS X recently (for example from 10.8 to 10.9 or 10.9 to 10.9.1)?
    - Have you installed any 3rd-party software recently?
    Run Disk Utility (from the Applications  > Utilities folder).
    - Click on the system disk (Macintosh HD) and Verify Disk.
    - Does it report errors or does it finish normally?
    Try an SMC Reset.
    http://support.apple.com/kb/HT3964
    Boot in Safe Mode.
    http://support.apple.com/kb/HT1564
    When in Safe Mode does it operate normally?
    After rebooting in normal mode is it faster?

  • How do I properly zero out or erase the hard drives in my early 2009 Mac Pro 4,1 tower?

    How do I properly zero out or erase the hard drives in my early 2009 Mac Pro 4,1 tower?
    I assume there are already instructions on Apple.com someplace but haven't seen them yet… I have to one terabyte drives one the operating system the other is blank I want to start fresh I want to zero out both drives but I didn't want to make any mistakes
    I know I can use disk utility to 0 Out Dr., #2 that means I will have to take out the operating system hard drive out of my 2008 Mac Pro and put it into my 2009 Mac Pro to use the disk utility to zero out drive one the OS drive in my 2009 Mac Pro am my correct
    I just need a little bit a help I want to go slow so I don't make any mistakes with the sleds or with the erasing process which journaled to choose encrypted or not etc. etc.
    Furthermore is there instructions on the site on how to change the hard drive into a different sled because the sleds and my 2009 are different than my 2008 any advice
    Thank you

    I'm doing this because my friend told me that zeroing out the drive can nap bad sectors and also later for some kind of diagnostics usage of the drive or something like that he wasn't really clear
    My friend was really specific he said choose the option that writes zero's once over the drive that is plenty good enough I was inclined to use the maximum seven write ...I just want to make sure the drive has no bad sectors and that's it's it's zeroed out for possible future diagnostics usage or something that he said was usable later
    he also advised me to run a test on it but I don't have the software you mentioned or the software that he has… So I may have to take the drives over to his house unless you have some kind of free software that's easy to use that you could suggest that will not only zero out the drive but test the drive completely
    I am completely new to Mac I'm no dummy but at the same time I'm not super technically capable I mean I can surprise myself I'm pretty good but I need a good teacher… How expensive is this lifeguard software?
    Thank you

  • How to greate account with out payment, how to greate account with out payment

    how to greate account with out payment, how to greate account with out payment

    Read: http://support.apple.com/kb/ht2534

  • How to expose a page out of PS authenication

    How to expose a page out of PS authenication,
    Say i've a register page for a event page, i want to email blast that. how do i make that page available to user without a OPRID?, just like any other webpage?
    Thanks,
    Kaushik

    You could create a user with only the grant to read that page.
    Then configure the automatic login with this user of a specific web profile (and webserver) or if it is available for the current one used.
    Nicolas.

  • How can I print directly out of Pages on my iPad?

    How can I print directly out of Pages on my iPad if my Brother printer is not airprint compatible? I currently have a Brother MFC-J615W and have downloaded the Brother iPrint app; but that only works with pictures and PDFs it seems.  I know I can use the cloud to transfer and just print from my macbook, but I am starting school and would love to cut out that middle step if possible.  I know... how lazy is that? But I feel like I should be able to make it work with a little ingenuity.  Thanks for any info you can provide.

    Try to arrange them manually afterwards: afaik, it is impossible to force an order when syncing:
    See MartyLightroom's post:
    Re: How do you arrange the albums in chronological order in iPhoto ? 

  • How to take the print out of the entire data from the waveform chart

    i am using cont acq to spreadsheet file.vi to acquire data from a number of channels. this vi also plots the acquired data on the waveform chart. i want to take the print out of the entire data. how can i do it ?
    also how can i take print out of the data between given interval??
    please reply me
    thank you

    There are a number of different ways of achieving your goal. Depending on which version of LabVIEW you have and which development environment, the Report Generation Toolkit is a very powerful tool. Attached is an example that prints the acquired data without the use of additional toolkits.
    Jonathan Hildyard
    Applications Engineer
    National Instruments
    Attachments:
    DAQ_with_Print.llb ‏115 KB

  • My iPod touch is in recovery mode, how do I get it out of this?

    My daughter's iPod touch is in recovery mode (we know this by the code it gives us when she plugs it in to the computer), how do we get it out of this?  We have tried resetting by holding down the on/off button and the other button on the bottom front of the iPod for 30 seconds to a minute and nothing happens.

    Two ways to get the iPod Touch out of recovery mode.
    From iTunes click "Restore" this will download the latest iOS for your iPod Touch and install it.
    Second way is to press and hold both the home button and the sleep button for around ten seconds and release them when the Apple logo shows on the screen.

  • Need to show proof of purchase to my insurance company, but my phone was replaced by apple so has a different imei number to the one on my receipt, how do you sort this out??

    Need to show proof of purchase to my insurance company, but my phone was replaced by apple so has a different imei number to the one on my receipt, how do you sort this out??

    Contact Apple and see if they can provide any documentation of the device swap.

  • HT4191 I have Notes that transferred to email when I set up a new email acct. They no longer appear in Notes. I can only access them in the email acct. How do I get them out of the email acct and back to the Notes app?

    I have Notes that transferred to an Email acct when I set up the acct. The Notes no longer appear in the Notes app only in the Email acct. How do I get them out of the Email acct and back to Notes? I stopped at an Apple store and they told me to copy them from the email back to Notes. But when I was in the email acct, I could not find a way to copy them. Shouldn't Notes remain in Notes unless I specifically send them somewhere else?

    Go into Settings > Mail, Contacts, Calendars, select that email account on the right-hand side of the screen and turn Notes 'on' for it - they should then appear in the Notes app instead of as an email folder in the Mail app (they will still be linked to that email account, so you may need to tap the 'Accounts' button at at the top left of the list of notes)

Maybe you are looking for