TableLayout... better than GridBagLayout and easier to boot.

Just in case any of you haven't seen this, if you go to java.sun.com and do a search on TableLayout, you'll find a very powerful easy to use and dynamic layout that I feel is far better than any other layout for most tasks. It automatically resizes components to the cell sizes, you can position them within cells, expand them across cells, and dynamically add/remove and hide/show cells (for both columns and rows) at any time. This last one I think is great because it avoids things like having to create two JPanels, one for a short form, and one for a much more involved form. I suppose there might be other ways, but with TableLayout, you simply supply the long form, hide the rows/cells you don't need for the short form, then show them again if the long form is desired. It is simple to use too. Much like a spread sheet or JTable, you just position a component into a container with a TableLayout into an appropriate defined cell in x,y fashion.
Give it a try. Post some feedback here.

Sure, its easy to use.
One question,
I have a couple of components that I have in a panel. I have used the option FILL, to make all components the same size. This result in that the last component get a bigger space then the others. If I make the window smaller it first resizes the last component til it is the same size as all the others. If I make my panel even smaller, the last component gets a bigger space then the others again.
Is there a way to always have the same size of the components ?

Similar Messages

  • HT1771 why did apple erase ichat? its so much better than messages and now I cant video chat with my ichat buddies

    why did apple erase ichat? its so much better than messages and now I cant video chat with my ichat buddies!!!

    HI,
    Apple did not erase iChat.
    Messages in Mountain Lion is iChat +
    The plus bit is the fact you can iMessage iOS devices.
    All the other features that were in iChat are still there.
    If you upgraded Lion to get to Mountain Lion then in System Preferences > Mail, Contacts and Calendars you probably list all the iChat Accounts (Screen Names and IDs).
    You may need to enable them for Messages.
    They should also show up in Messages Menu > Preference > Accounts
    Once those accounts (AIM and Jabber) are Enabled they can be viewed in a Combined Buddy List
    Windows Menu > Buddies (Or using CMD + 1 Keystrokes)
    In the General Section of the Preferences you can Unlink these Buddy lists.
    The Green icons or highlight a Buddy and then using the Buddies Menu or the icons at the Bottom of the Buddy list can be used the same way to start Video or Audio Only chats.
    The iMessage "Account" is only for texting iOS devices or other people using their Apple ID on a Mac in Messages.
    It is an account "in addition to" rather than "taking over from" the services that iChat can join.
    9:22 PM      Thursday; December 6, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • I cant find my all files in new version and older version is better than new and fix this problem....!

    I can't find my all PDF in new version and older version is better than new and fix this problem as soon as possible....!

    Hi Manoj,
    what exact problem are you facing? Are you unable to locate your pdf files?
    Regards,
    Rahul

  • Is "erase and install" better than "archive and install"

    I have heard its best for permormance purposes to do an erase and install, but is that really true? it seems like much less of a hassle to just do the archive and install. any thoughts?

    Jeff,
    To me, there is not much difference in doing an Erase and Install as opposed to an Archive and Install but NOT preserving user settings...
    An erase and install might be a little better but not much plus you would need to reinstall everything.
    With an Archive and Install and NOT preserving user settings, you still have a brand new system with nothing from the old system installed... However, you do have a folder called "Previous Systems" which has all your stuff in it... If you want some stuff out of that folder, you can get it.. Otherwise, if you throw that folder out, it will be just about as good as an Erase and Install....
    Now, an Archive and Install and preserving user settings is a little different because it does bring things over from the old system....

  • EDGE coverage is better than expected and a question...

    Hi there,
    I bought an iPhone on Friday, and its awesome, even though I had seen the video's etc I was/am still really impressed by it!
    I was interested to see how much of an exaggeration this '30% of the UK have EDGE' rumour was that the press had been so keen to comment on.
    Its obviously not as bad as the media would have you believe because I live in a relatively small-mid size town in the Midlands, about 30 mins from Birmingham and I get full EDGE coverage no problem. And Its actually not that slow!!!!
    Also I have a quick question, its no major issue if this is not possible, but is there a way to empty the trash in Mail? I know you have to delete emails one by one but can you empty the trash or do you have to delete those individually too? Sorry if this has been detailed elsewhere, and Im not going to have a rant and moan if its not possible, just curious!
    Thanks

    Hi,
    If you go into settings -> mail and then go in to each of your accounts and select "advanced" from the bottom of the list, you can change your preferences for emptying the trash bin, which I think as a default is set as "never". There is an option to empty it every day, so this should avoid you having to manually delete each email from the trash bin.
    Rgds,
    Jose

  • Intel iMac (Early 2008) Has vertical lines on the screen and doesn't boot.

    My iMac froze up tonight, and upon restarting it there are a number of yellow vertical line segments throughout the display, and it will not boot completely into the OS. The spinning segment just stops and the computer does nothing. I inserted my Leopard disc to run a hardware test but holding D during bootup does nothing, even though I can hear the disc spin up.
    http://img651.imageshack.us/img651/1843/img1821uf.jpg
    http://img707.imageshack.us/img707/1651/img1823s.jpg
    Any Thoughts?

    I've had this same exact issue and have had to have the graphics card replace (nvidia 8800gs).
    It seems these graphics cards are defective in some way.
    Unfortunately my iMac is out of warranty and I must pay 3500dkk ( 500usd ) for repair.
    I'm very disappointed as to the reliability of these iMacs as I've only had it for 2 years my old iMac g4 1ghz has performed better than this and is actually what I'm using until my so called new iMac is back from repairs

  • Why is mac better than pc?

    Hi guys.
    I'm doing a speech on why macs are better than pcs and have to come up with two college-level citations to support the point. Would you guys be able to help me with that? All I need is some data that can help me support the point.
    Thank you !

    Funny ... as my wife worked on her masters a couple years ago, Cal State Fullerton would not allow ANY citations from the Internet.
    But here's some background info for you ...
    http://www.apple.com/mac/
    You say you're a new MacBook Pro user ... What do YOU think about your new Mac?
    I was a Windows devotee for about 20 years. Until my wife brought home a co-worker's 17" MBP for me to play with. And I turned it on and played with it. And played with it. Realized it was about 3am the next morning - it was so enjoyably engrossing. I ordered my own that very day, and haven't looked back for a moment. Like excellent shoes that you can FEEL make a difference in your posture and spinal health, switching to a Mac was darned near a religious experience for me.
    And I am not alone ... (grin)
    Good luck with your research.
    Clint Bradford
    Riverside CA US

  • TS1314 Dear all, greetings, I did not mean to offend anyone by typing all my texts in capital letters, I am just used to it and at my age (63) it is better and easier for my eyes to type all the texts in my messages in capital letters.I do apologize about

    Dear all, greetings, I did not mean to offend anyone by typing all my texts in capital letters, I am just used to it and at my age (63) it is better and easier for my eyes to type all the texts in my messages in capital letters.I do apologize about it all. I can assure you that I do respect all of you more that you maight me thinking of. i have the same difficulties in typing in small letters like yours in reading texts in CAPITAL letters.......tant pis, c' est la vie
    For web and computing experts I would like to remind them that all the peoples nowadays have the same needs (or hobbies if you wish) regarding the electronic devices, web, compouters, softwares and that sort of thing.
    If I WERE not to have technical support because of my prefiously used capital letters in me text messages, I have to confess that next time I will be more carefull about the devices producers........ I live and always learn (SOCRATES, girasko, aei didaskomenos)
    Two questions
    1. I noticed on the you tube videos about the new ipad that the main icons are more than mine (i.e. the icon of facebook and a number or others are missing)
    2. I would like to ask you to do me a favour, thanks for your patiene. Still I have not understood how (in which way, the pictures, transfered from my system or new taken by the ipad camera are uploaded directly to the FaceBook. I suppose that I will not have the same difficulties regarding the videos to both Facebook AND YoutTube. Thanks a lot for your patience with me, from now on I will be more carefull about posting messages to you referring to technical support
    Constantinos
    Athens, Greece

    Some of the apps shown in adverts / videos have been downloaded from the App Store, they don't come pre-installed e.g. the Facebook app is a free download the app store : 'official' Facebook app.
    To upload photos to Facebook you can use the above app - you can't, for example, use Safari on the iPad to upload content to sites.
    Not sure whether any apps allow you to upload videos to YouTube (I don't use the site).

  • Is there a way that i can downgrade my iOS 7.1 on my iPhone 4 to iOS 6xx? battery life not good, and performance isn't better than iOS 6.. Please apple i am really disappointed with iOS 7 on my iPhone 4

    Is there a way that i can downgrade my iOS 7.1 on my iPhone 4 to iOS 6xx? battery life not good, and performance isn't better than iOS 6.. Please apple i am really disappointed with iOS 7 on my iPhone 4, it can runs great on iPhone above 4 such as 5/5s/etc.. iPhone 4 just good with iOS 6...

    No.

  • I transfered my music into my new mac into itunes media folder from an external, but it dosnt show in itunes.  I have to click on each one to activate it on itunes.  there has to be a better and easier solution.  help

    i transfered my music into my new mac into itunes media folder from an external, but it dosnt show in itunes.  I have to click on each one to activate it on itunes.  there has to be a better and easier solution.  help

    Thank you for your prompt response - I did as you said and did a drag and drop into the iTunes window - it imported and got my album art from the net. When I started Itunes with the shift key down I was prompted to choose a library but since I copied over the media folder and not the library folder I was unable to select that so I guess I will have to create a new library and add in all the music, videos, etc. unless I wait for my laptop and export the library or at least that seems to be the case? In short, all my data (iTunes media folder) is on my external drive and can be added to the blank iTunes screen but I can not choose a library folder. Is there anyway around completely making all those playlists again? I am not sure my laptop will survive the shop with data intact and really hate to start over on those.
    In an unrelated question - I collect old TV shows from the 1950's. Can I make playlists within the home video folder somehow?  In other words like one for Quiz shows, one for comedies, one for police and detective shows, etc. while I am remaking all my playlists for my music if I end up having to go that route?
    Once again thank you for helping me out. I am not too Itunes savvy and really appreciate you taking the time to answer.

  • Is 1.3 Bios really better than 1.52B?? Neo2 Board and Some Observations!

    Hi All... I read this post on the forums and it got me thinking and i did some fiddling and made some observations..
    This is whith regard to the 1.3Bios being better than the 1.52B Bios.. because it would let you run in turbo mode...
    Ok i've spent the last 60mins testing and i came up with the following..
    1.3BIOS
    With the 1.3Bios.. no matter what memory timings u set... it does'nt show in CPU-Z and it does'nt make a difference in the memory bandwith scores...
    For example my ram was rated at 2.5-3-3-8 .. i changed it to 2.5-2-3-8 .. it did'nt change and my scores remained the same..
    Going from Slow to Fast to Turbo.. did'nt incrase my scores.. actually.. donno how.. but i got a decrease in scores..
    The only thing that was noticable was that MSI core-center overclocks the CPU a lil more than what is set in BIOS..
    1.52B BIOS
    With the 1.52B Bios... u can change the memory timings and it does show in CPU-Z and it makes a massive difference with Sisoft sandra.. 250mbps more..
    What u set in the bios .. u get with the 1.52B.. Corecenter does'nt mess around and overclock it more..
    Going from Slow to Turbo did give me an increase in scores.. slightly..
    Im now running Ultra-Turbo.. and i get a sisoft bandwith score of 5250Mbps at 3.21G..
    CONCLUSION
    So infact i think the 1.52B is better than the 1.3 . I don't have a Radeon so i donno how these bios's work with the cards cause i've read about some problems... I'm getting one soon so 'ill post some info about that in a fortnight..
    I personally think this board is great.. atleast the one i have.. never had a problem.. had it for 3 months.. i have a revision 1.. no DOT sticker.. and just the Neo2-S version... I've used Spectec 333 on this board too (dual) had no problems..
    Wish i had some DDR-500 so i could test whether this board can do 1:1 above 250...whether it has a 1:1 limitation above 285 like some other boards.. that is my only doubt.. anywayz.. i hope atleast some of u are sailing as smoothly with this board as i have..
    Get some nice ram .. this Twinmos Dual channel kit DDR400 with the Twinmos chips are really great.. and i recommend it..

    Quote
    Originally posted by DeReD
    1.3BIOS
    With the 1.3Bios.. no matter what memory timings u set... it does'nt show in CPU-Z and it does'nt make a difference in the memory bandwith scores...
    For example my ram was rated at 2.5-3-3-8 .. i changed it to 2.5-2-3-8 .. it did'nt change and my scores remained the same..
    Going from Slow to Fast to Turbo.. did'nt incrase my scores.. actually.. donno how.. but i got a decrease in scores..
    That´s wrong. RAM-Settings are displayed fine. Turbo does make a BIG difference in scores. About 15% more performance. In Games and in benchmarks like 3dmark and sandra, too.

  • Are Classes better than Function groups and Modules

    Hi,
    Are classes better than Function groups? For example if you want to execute something is back ground or use parallel processing you can't do it using classes. Even inside classes most of the places we use Function modules.
    Then how classes are beneficial?
    Regards,
    Deepak Bhalla

    Yes they are compared in the sense that the class and function group are the containers, and the methods and function modules are the interfaces in which you interact with the encapsulated data. 
    Again if you are developing an application in which you are not forced to push the processing to differenet work processes,  then using classes/methods is preferrable. The reason I say this, is because anything coming from SAP will most likely be implemented as a class as opposed to a function group.  This is not to say that SAP will not create new function modules, because of course there still is a use for them.
    Regards,
    Rich Heilman

  • HT4623 This really ***** that they sent out and update to the iPhone ISO6 and I can't send or receive pics! Being that its apple you would think they would know better than to send out a bad update like this! I'm paying for a service and I can even use it

    This really ***** that they sent out and update to the iPhone ISO6 and I can't send or receive pics! Being that its apple you would think they would know better than to send out a bad update like this! I'm paying for a service and I can even use now!!! I'm very upset! Think about canceling my iPhone 5 order! This is terrible!

    Wahhhhhhhhhh! Wahhhhhhhhhh!
    Are you over your little tantrum now?  Do you want help you would like to continue to act like a toddler?
    If you want help, try telling us what happens when trying to send pics.  Any errors?
    If you want to whine... go somewhere else.

  • IDVD appears to produce better "hi-def to DVD" than DVDSP and Compressor.

    For the last 4 years I have used DVDSP and Compressor to burn DVDs from my HDV and AVCHD/ProRes 422 projects but have always been plagued by the well known less than perfect results.
    For some reason creating DVDs from HD material results in slightly lower quality than when using standard def media.
    Artefacts such as double-lining and aliasing have been discussed at length in the forums and weird and wonderful time-consuming solutions such as the Bonsai technique have been proposed.
    Recently I had reason to go back to iDVD and to my surprise the video quality appeared to be better than DVDSP's.
    Gone were the minor but  irritating artefacts I had become accustomed to.
    Instead I now get sharp smooth images.
    It's still early days and I don't know whether the results are due to the idiosyncracies of my editing/burning setup. The DVDs were played in both a Panasonic BD player together with a Panasonic DVD player and viewed on a Sony 40" HDTV connected with HDMI cables.
    Maybe if anybody has a few spare moments between projects they could test it out.
    Note that I have only tested this with iDVDs "Best Performance" setting which is suitable for DVDs up to 65 minutes long.

    Ian,
    I'm not sure you need another voice in this conversation…but here's my 2 cents.
    While I agree that iDVD can do a very good job of encoding HD to DVD specs, I can't think of any reason why it should be superior to Compressor. In fact, my experience has been the opposite; I get somewhat better (cleaner) results using Compressor and DVDSP. The principal reason is I can start with my saved presets and then  – like Michael mentioned…take a small test section and make adjustments if I see something that I don't like.  
    As for scaling, I do it first, then I make the MPEG as a separate step, (There was a recent thread about this questioning whether this added any value. No mater; it's the way I do it unless I don't have time.)
    Good luck.
    Russ

  • HT201365 the activation screen(set up screen) for ios 5 and 6 kinda looks better than ios 7 and 8

    the activation screen(set up screen) for ios 5 and 6 kinda looks better than ios 7 and 8

    So what? Do you want a prize for posting such an illuminating comment?

Maybe you are looking for

  • Issue with Datasource

    Hello BI Guru's I have standard 3.x data source which is using currently in production system. As per new requirement i have  enhanced the data source with new fieldas and existing data source using most of the fields,but for my requirement i need at

  • I need to move my playlists to a new windows machine

    Hi I have itunes on a windows machine, I have managed to move my apps and songs over to a new windows laptop but the playlists have not come across. How can I get the playtlists to appear in the new itunes? Thanks Chris

  • Dual Monitors HP

    Trying to set-up dual montors using an HDMI cable located under the DVD slot on the right side of the computer.  My computer is an HP ENVY 23se-D394 I am trying to extend the desktop only. thanks This question was solved. View Solution.

  • Wild Blue and iChat - how do you make 'em work?

    My mom has an iMac and has to use Wild Blue as her provider. I have an iMac and use Roadrunner. The error message says video chat won't work due to bandwidth. Wild Blue is no help, of course. Any suggestions - besides the obvious getting more bandwid

  • Another stored procedure problem

    Here is the java: StoredProcedureCall sp = new StoredProcedureCall();                     sp.setProcedureName("QUERY_BAR_PKG.LOOKUP");                     sp.addNamedArgument("p_sessionid_in");                     sp.addNamedArgument("p_ds_id_in");