facebook

matisse two most annoying problems

  1. MyEclipse Archived
  2.  > 
  3. Matisse/Swing UI Development
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #274738 Reply

    paulmol
    Member

    1 I have a form consisting of mutiply JPanels put vertically
    When I move some panels up or down they have tendency
    to suddenly expand horizontaly to a very large size, several times larger than my screen.

    Is this a bug or a feature?

    2. within each panel, when I move elements ( e.g JTextFields) they sometimes
    cause other elements to change size or location in unpredicatable way.

    Same applies by the way to a movement of one JPanel affecting other JPanels.

    Is there any way to tell Matisse “just move this element, don’t touch
    any other elements ?”
    and “move this element where I put it, don’t snap to any grid etc ”

    Paul

    #274771 Reply

    Riyad Kalla
    Member

    Paul,
    It depends entirely on the layout manager you are using. If you are using the default layout manager (the one that allows you to snap your elements to guides) then no unfortunately this is the expected behavior. That particular layout manager works off of references to sides of containers, other components, anchors and height/width rules… so you cannot just freely move things around.. they are effected by, and related to every other component around them.

    If you just want to layout components completely freely, set the layout manager for the container you are laying out to Null Layout, that lets you drag things around and absolutely position them at x/y coordinates and with specific sizes.

    #274785 Reply

    paulmol
    Member

    Riyad,
    Thank you for answer.

    I wanted to use the default manager.

    I wish someone described it’s rules and alghoritms one day so we would
    know when acts as expected and when it is a bug.

    Working with it for several weeks with many forms I can say a lot of positioning it is doing does not make any sense.

    Good that at least “undo” works most of the time.

    -Paul

    #274789 Reply

    Riyad Kalla
    Member

    Paul,
    It’s definately one of those layout managers you learn to work with, but when you do, it’s so frigging fantastic it’s hard to stay mad at it 😉

    #276291 Reply

    dip jahid
    Member

    This message has not been recovered.

    #276336 Reply

    Riyad Kalla
    Member

    This message has not been recovered.

    #276480 Reply

    Greg
    Member

    Just wanted to post a quick note that we have indeed fixed this in the 6.0.1 development stream.

    #278992 Reply

    Douglas M Hurst
    Participant

    This message has not been recovered.

    #278993 Reply

    Douglas M Hurst
    Participant

    This message has not been recovered.

    #279001 Reply

    Riyad Kalla
    Member

    This message has not been recovered.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: matisse two most annoying problems

You must be logged in to post in the forum log in