The Vertical FlowLayout that doesn't Exist?

Ok, I've looked through the forum, and checked on a popular search engine, and it seems to me that there is no such thing as a vertically oriented FlowLayout. But why not? Is it difficult/impossible to implement? Please, someone, explain.
Some suggested solutions to this involve using a vertical BoxLayout, but that just seems ugly, what with the way components get stretched to fit the entire height of the window. Of course one can set the maximum sizes of the components and so on, but it seems to me that that's just making things more complicated than (I think) they ought to be. And to make matters worse the components are all crushed together with no gaps in between..
Surely a LayoutManager that stacks components vertically at their preferred sizes by default would be a fundamentally useful thing?
Well anyway... not much of a question (more of a moan), never-the-less, if anyone knows why a vertical FlowLayout doesn't exist as standard please let me know... Then later I'll have a moan about the GridLayout asking why it doesn't keep each row and column only as tall and as wide as it needs to be.
Regards
-- Mick

and it seems to me that there is no such thing as a vertically oriented FlowLayoutCheck out the [Relative Layout|http://www.camick.com/java/blog.html?name=relative-layout]. I know from the name you would never guess it could do a vertical FlowLayout, but it turned out to be far more flexible than I ever imagined it would be. In your case the code would be something like:
RelativeLayout rl = new RelativeLayout(RelativeLayout.Y_AXIS, 5);
//rl.setAlignment(RelativeLayout.LEADING);
rl.setAlignment(RelativeLayout.CENTER);
JPanel panel = new JPanel( rl );
panel.add(component1);
panel.add(component2);
...

Similar Messages

  • The Phone Line that doesn't exist...

    I've just moved into a new property, the day I moved in I phoned o2 to order their internet and line rental package. The guy I spoke to said he had checked with BT openreach and that the line to my address was ceased and that I would have to pay a connection fee of £85.
    I thought this was unusual as the people who owned the house before us had an active phone line, I checked the incoming voltages (I've worked with phone lines before) and there is 50V incoming. I have since got hold of a phone, plugged it into the socket and there is a dial tone. Tried phoning out to see if there is still an active number but after dialing a few digits I get "the number you have called has not been recognised".
    Just got off the phone with both o2 and BT who are both adamant that there is no phone line what-so-ever connected to my property and that I have to pay for an engineer to visit and install a line.
    Clearly I'm not willing to pay for anyone to come and visit when there is a working line! What can I do?!?!

    Sounds as if you have what is known as a soft dial tone on the line.
    I don't think that Openreach stop the lines completely these days.
    I have to admit I'm not 100% clued up on activation charges or terms for lines but would suggest that you would need to shop around for the best order.
    Regardless of what SPs charge for a line they are still charged by Openreach.
    When I had my line activated I was told that the line would have had to have been active in the previous 6 weeks for no charge to be raised and an activation to be completed.  Otherwise it would have been looked at as a provide.

  • Paid with a credit card that doesn't exist :S

    Hello,
    I think I have a problem.
    When I first started with Itunes I didn't liked the idea of filling in my creditcard nummer.
    I just answerd a number like 12345678 now I thought I already had changed the number into my own credit card so I bought a song.
    Later I saw that I bought it with the credit card that doesn't exist...
    How can I pay my song now?
    Melissa

    Romania
    0800 894847
    Contact Apple for support and service
    http://www.apple.com/ro/support/
    Or try by a chat
    https://getsupport.apple.com/Issues.action

  • ICloud has my old Apple ID and is prompting for a password, but I want to put in the new id, I can't because it is grey and there is no edit option.  I'm prompted for a password to an account that doesn't exist

    iCloud has my old Apple ID and is prompting for a password, but I want to put in the new id, I can't because it is grey and there is no edit option.  I'm prompted for a password to an account that doesn't exist.  Anyone know what I can do to fix this or why this is happening.?  I had no issue putting in my new Apple ID everywhere else, I could sign out of the old and inactive account and then sign back in using my new and proper one.  However, after the update to 7.3 it did a whole welcome to yr iPad and a set up thing and it went to set up iCloud and had my old Apple ID in grey where I can't change or edit it, it wants the password, when I put in the old password, it say yr Apple ID is incorrect but yet it won't let me change it??????? Anyone???

    Sign out and back into your apple id from Settings>iTunes and App stores>(Your apple ID)>Sign Out and then sign in again with the new address. Close app store from running in the background (or restart the phone if your unsure how to do this). If when trying to update any apps they are still asking for the old apple ID, delete and re-install those apps.

  • When I set up my iPhone, I accidentally put in an apple ID that doesn't exist. Therefor, I don't know the password and can't delete my account from iCloud. Can anybody help?

    When I set up my iPhone, I accidentally put in an apple ID that doesn't exist. Therefor, I don't know the password and can't delete my account from iCloud. I was trying to sync my contacts to my iPad and now it's not possible without iCloud on my phone. Can anybody help?

    Have you tried changing the admin password in System Preferences > Users & Groups > Password   ??
    The Apple ID that is associated with your admin password is noted there.
    message edited by:  cs

  • Hello, I got a new computer with the old harddisk. Can't play my itunes music because not authorised. Apple ID is very old e-mail adress that doesn't exist anymore. When chose for secret question brth date seems wrong. Can't reach anyone!!!

    Hello, I got a new computer with the old harddisk. Can't play my itunes music because not authorised. Apple ID is very old e-mail adress that doesn't exist anymore and I forgot the password (5 years old??). When chose for secret question birth date seems wrong. Tried everything. I need to make a new apple-id but cannot connect the music that I bought under my old name to my new name. Can't reach anyone!!! Automatic FAQ system is of no help. What to do?

    That doesn't help me. For itunes it brings me to the express lane which doesn't help because my case is not in it. It's all standard procedure things. I understand those but my situation is different. The combination of a passport forgotten and an non-existing email adress (and birth dates that are not correct or not accepted). What I need is my password emailed to another email adress than the original one because that no longer exists.

  • How do I update apps under an old apple id email that doesn't exist anymore and have forgotten the password?

    I want to update some apps on my iphone but can't because it's asking for an old apple id email that doesn't exist anymore and I have forgotten the password for it!
    Help!!!

    The apple id login is never deleted. The emaill address itself can be disabled or not in use any longer. The apple id login will still be available to you. If you will go to the website My Apple Id
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
    and use the listed apple id login that your apps are asking for to update - once you have changed the password at the lsted website you then will be able to update using the old apple id once you have logged into the device using the old apple id and password.
    Good luck.

  • How to deauthorize a computer , that doesn't exist anymore?

    I unisnstalled windows , and for some reason when i inserted my ipod to the freshly installed windows+itunes , and logged on my account , iTunes said , that its a new computer and asked me to authorize it , and so i did.
    My question is: how can i deauthorize my old version of windows , that doesn't exist anymore?
    I also have another question in this topic : When i want to buy items from itunes from a new device , it asks for my bank card number , and takes 1-2 dollars from it. Is this ok?

    Take a look at this Apple support article; it may help:
    One computer using multiple iTunes Store authorizations
    When i want to buy items from itunes from a new device , it asks for my bank card number , and takes 1-2 dollars from it. Is this ok?
    I'm not sure what you mean by this. What "items"? If you are referring to music, videos or movies, you get only one download per purchase, so if you buy the items again, whether from another device or the same one, yes, you will be charged again. Only apps allow redownloading without additional charge.
    Regards.

  • How to I get rid of an "Open With..." option that doesn't exist?

    I've tried to find out how to remove an element of the "Open With..." options but don't seem to be getting much traction. I have an old application listed in the "Open With..." pull down menu that doesn't exist anymore, but when I select the file, using command-i, to change which application opens the file, it works for that file. I want to change association using the "Change All" button, but when I do that, the "dead" application becomes the default application again and I'm back to square one. Is this fixable? How do I get rid of the useless option? Will I have do do this for each file?

    your link gave me a good starting place...
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -R -all -domain local -domain system -domain user
    this seemed to do the trick... I would have never have solved this without your suggestion.
    thanks.

  • IPhone 5 shows data in Photos that doesn't exist.

    iPhone 5 shows data in Photos that doesn't exist.
    iPhone 5, 16GB running iOS 8.1.2.  Service through Verizon. iCloud Photo Library (Beta) is off. My Photo Stream is off. iCloud photo sharing is off.
    Under "About" in settings it says there are 32 Videos and 429 Photos on the device with a capacity of 12.6GB and 7.0GB available.
    Normally, I used to import photos and videos from Preview and manually delete them on the phone, until I realized this could also be done in Image Capture with the ability to delete all of them with one click, which is what I did this time (I have done it through Image Capture at least once before).
    I've tried in this order:  Creating an empty folder and syncing to it through iTunes.  That didn't work, so I created a backup on iTunes, completed the "Erase All Content and Settings" option on the phone and then I restored from that backup.  Still no luck but I'm wondering if I just saved the issue in the backup and restored back to it.  I really don't want to do a complete erase and start over, but if there are no other options I will try it.
    Ideas? Thanks in advance.
    EDIT: Photo shows iPhone in iTunes after restore.

    I tried this and it did work for me! It was on a separate posting.
    Good luck!
    scabthepoetMar 15, 2015 2:00 PM Re: My iPhone 5 camera roll is empty, but under usage says 3.1GB - how can I delete?
    Re: My iPhone 5 camera roll is empty, but under usage says 3.1GB - how can I delete?in response to armccoyHelpful
    I've been searching for an answer to this very problem for a solid day. Here is what I did that worked for me. No reset. No need to upgrade to more Cloud storage or anything else. I had already deleted out every picture from my phone, including "Messages" and the "recently deleted" album, etc. There really are phantom pictures in there, but the only way to see them and delete them is to:
    Go to Settings
    Date & Time
    Untoggle "Set Automatically"
    Manually change the date back. For example, if today is March 15, 2015, choose August 1, 2014. (You can change it back once we're done)
    Close out of that
    Open "Photos"
    Select "Albums"
    If, like me, you had already cleared out everything from the Camera Roll and "Recently Deleted" folder, you'll smile to see that your "Recently Deleted" folder now has thousands of images back. Those are your phantom photos
    Open it, "Select" and start deleting
    Now, go back into Settings - General - Usage - Storage - Manage Storage - and you'll notice your Photo & Camera is empty if you deleted everything
    I hope this works for everyone and that I saved you all the time I wasted searching for an answer myself -- only to never find one. Now you have the answer.
    I went from barely having any room left on my phone to almost brand new again.
    Take care.

  • Itunes authorization for an account that doesn't exist?

    My new MacBook is asking for an Itunes store authorization for a particular song under an account name that doesn't exist. My apple ID is an old e-mail address; I've already successfully authorized the computer to play songs from that account, into which I can log in with no difficultly. The account name that is supposedly attached to this song is a newer e-mail address (maybe I unsuccessfully tried to change the Apple ID at some point?), but when I click on "forgot password" in the authorization window, it says that the account for which it had prompted me to authorize doesn't exist. Suggestions?

    Click here and fill out the form for assistance.
    (34501)

  • ISync Error Message "you can't modify a record that doesn't exist...."

    "[ISyncConcreteSession pushChange:]: you can't modify a record that doesn't exist: <ISyncChange 0x3215870>{ modify record id 'BE86E203-EC1F-4F3E-A2F2-180EC5FA5210'
    set com.apple.ical.type = local
    set title = Unfiled }"
    I have 2 macs connected to the .mac sync and until recently the flow of info between them (mostly iCal) has been smooth. Now it appears to not be working.
    thoughts? thanks.
    --Kevin

    wrong forum, sorry.

  • Album that appears in my Web Gallery that doesn't exist in my iPhoto 08?

    I posted an Album then tried to delete it and it's still there. Now I have two Albums with the same name. How can I delete it when I can't even see it in iPhoto? URL: http://gallery.mac.com/rickvargas123#gallery
    The Tokyo Album with 82 photos is the one that doesn't exist in my iPhoto. The Tokyo Album 112 photos is the one that does exist and is editable.
    Anyone know?
    Rick

    Rick:
    Mount your iDisk and go to the Web/Sites/-gallery folder. See how many folders are located in there. You might have to delete them all via the Finder and republish your galleries again.
    By the way, your 112 Tokyo gallery is listed at 101 photos when I visit. Wonderful pictures.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • TypeError: Error #1010 on code that doesn't exist.

    Hello all,
    I have a drop down menu with 7 options. The menu is a movie clip with a mask that reveals each of the buttons when a person mouse_overs the menu button. Each menu option does the same thing, it will call a function based on the button clicked. The function for each button does the same thing:
    function INDEX_Safety (e:MouseEvent):void
              play();
              INDEX_SAFETY=true;
              Sound_Stopper ();
    Each of the functions will change the value of its respecive boolean variable. One for each button. Sound Stopper is a function that stops any FLV Sound that is currently playing.
    When it goes through play() it will come to a particular frame that has:
    Index_Jumper ();
    this function determines which boolean has been set to true, and does a gotoAndPlay("Label Name") based on the boolean that has been set to true. Then sets the boolean back to false.
    function Index_Jumper ():void
              if (INDEX_SAFETY==true){gotoAndPlay("Safety"); INDEX_SAFETY=false;}
              if (INDEX_TOOLS==true){gotoAndPlay("Tools and Positions"); INDEX_TOOLS=false;}
              if (INDEX_METHODS==true){gotoAndPlay("The Methods"); INDEX_METHODS=false;}
              if (INDEX_METHOD1==true){gotoAndPlay("Method 1"); INDEX_METHOD1=false;}
              if (INDEX_METHOD2==true){gotoAndPlay("Method 2"); INDEX_METHOD2=false;}
              if (INDEX_TDBL==true){gotoAndPlay("Installing TDBL"); INDEX_TDBL=false;}
              if (INDEX_RAISING==true){gotoAndPlay("Raising the Stand"); INDEX_RAISING=false;}
    The issue i am having: When i click on the 6th option, TDBL, i get the error:
    TypeError: Error #1010: A term is undefined and has no properties.
              at RaisingtheOperatorsPlatform_fla::MainTimeline/frame147()[RaisingtheOperatorsPlatform_fla. MainTimeline::frame147:10]
    It says frame 147:10
    From my understanding this means the 10th line on Frame 147.
    This is my frame 147:
    1. stop ();
    2. Caption ();
    3. IndexMC.Safety_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Safety);
    4. IndexMC.Tools_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Tools);
    5. IndexMC.Methods_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Methods);
    6. IndexMC.Method1_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Method1);
    7. IndexMC.Method2_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Method2);
    8. IndexMC.TBDL_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Tdbl);
    9. IndexMC.Raising_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Raising);
    I dont have a 10th line.
    also, when i click the 7th option, nothing happens. However, options 1 - 5 on the drop down menu work just fine.
    Thanks for any insight.

    Right after posting that, I got an idea to try adding the following to frame 1:
    addEventListener(Event.ENTER_FRAME, Frame_147);
    function Frame_147 (event:Event):void
              if (currentFrame==147)
                        stop ();
              Caption ();
              IndexMC.Safety_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Safety);
              IndexMC.Tools_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Tools);
              IndexMC.Methods_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Methods);
              IndexMC.Method1_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Method1);
              IndexMC.Method2_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Method2);
              IndexMC.TDBL_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Tdbl);
              IndexMC.Raising_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Raising);
    I then commented-out frame 147.
    the error i got pointed to line 36 of frame 1, which is:
      IndexMC.TDBL_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Tdbl);
    Being able to focus on this, i see that i have IndexMC.TBDL instead of IndexMC.TDBL, i think this was one of those "been looking at this thing for too long" errors. Thank you for looking into this, the problem is now solved. As for the error pointing to a line that doesn't exist:
    I still have no idea why it would say the issue was frame 147:10

  • TS1398 Network asking for username that doesn't exist

    I'm trying to use a coffee house wifi with my new iPad 4 mini.  It's asking for a username that doesn't exist. Thoughts?

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased.
     Cheers, Tom

Maybe you are looking for