Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.10 seconds.

  1. Replies
    10
    Views
    3,454

    Re: My Custom Layout (VERY EASY TO USE)

    Well, for the addComponent(Component,int,int) method, the user will have to compute those manually because how else will the layout know where to put the components? For the addCenter(Component,int)...
  2. Replies
    10
    Views
    3,454

    Re: My Custom Layout (VERY EASY TO USE)

    Ok, I made a main and updated the code, and I found a small change I had to make with one of the methods (clearly didnt extensively test it enough), so its a good thing I did.
  3. Replies
    10
    Views
    3,454

    Re: My Custom Layout (VERY EASY TO USE)

    Ok, so continuing with this, I have made some changes that might make it more usable. I could use some suggestions and some feedback.


    import javax.swing.SpringLayout;
    import java.awt.Container;...
  4. Replies
    10
    Views
    3,454

    Re: My Custom Layout (VERY EASY TO USE)

    Cant get those to work. They just return 0... Thats the reason I couldnt get the addCenter method going...

    I believe those methods only work if you give the components preferred sizes, which i...
  5. Replies
    10
    Views
    3,454

    Re: My Custom Layout (VERY EASY TO USE)

    Well, since my layout uses SpringLayout, the other elements can be offset relative to the other elements.

    Now if the problem is inserting a row on components on the top, I'm sure I could put in a...
  6. Replies
    10
    Views
    3,454

    Re: My Custom Layout (VERY EASY TO USE)

    Back when I made it, I was going to add a method to do that, but I couldn't figure out how to get the width/height of the components.

    I've found manually computing them isn't much of problem...
  7. Replies
    10
    Views
    3,454

    My Custom Layout (VERY EASY TO USE)

    NOTE: UPDATED CODE A FEW POSTS DOWN

    So a few months ago I got really annoyed with the stupidity of all of the layouts Java supplies for organizing components. I said to myself, why cant I just...
Results 1 to 7 of 7