Results 1 to 9 of 9
Like Tree1Likes
  • 1 Post By camickr

Thread: Complex Multilayer Component Layout

  1. #1
    alan93 is offline Member
    Join Date
    Dec 2011
    Posts
    4
    Rep Power
    0

    Default Complex Multilayer Component Layout

    i have a window that has splitters in it (splitterpane?)
    in one splitter window is a Jpanel with two tabs
    On that JPanel tab is a JScrollerPane and more, see below:
    JPanel
    - JXContainerPane
    -JXTaskPane (multiple)(collapsable)(Vertical Layout)
    -JXScrollPane
    - List of Items (multiple)(set to viewport of JXScrollPane parent)

    I'm trying to find a way so that when the entire window is resized smaller by dragging lower right hand corner the expanded JXTaskPanes are not covered up but slide up to stay visible within the JPanel.
    I have tried new BorderLayout() for the JPanel but no arrangement of layouts for all these seem to get the desired results.

    I am also doing a setPreferredSize on the ScrollPanes if the client is resized.

  2. #2
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,227
    Rep Power
    6

    Default Re: Complex Multilayer Component Layout

    What is a splitterpane? What is a JScrollerPane? I've never heard of those classes.
    PhQ likes this.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default Re: Complex Multilayer Component Layout

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    alan93 is offline Member
    Join Date
    Dec 2011
    Posts
    4
    Rep Power
    0

    Default Re: Complex Multilayer Component Layout

    the JScrollerPane is in javax.swing.*
    I don't think I explained it very well. I really need to resize the JScrollPane when the entire window (client?) is resized.
    This should take care of the problem I mentioned.
    Do I need to loop down through the controlls on each component to do this?
    Are there any examples of traversing a lot of component layers to modify the size of the ones added on the top of the others?

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default Re: Complex Multilayer Component Layout

    You've been given a link to a tutorial. Did you even glance through the page, let alone navigate to linked pages that would answer your question?


    Or are you waiting for spoonfeeding? It won't happen.

    Oh, and
    the JScrollerPane is in javax.swing.*
    No it isn't.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  6. #6
    alan93 is offline Member
    Join Date
    Dec 2011
    Posts
    4
    Rep Power
    0

    Default Re: Complex Multilayer Component Layout

    Quote Originally Posted by DarrylBurke View Post
    You've been given a link to a tutorial.
    This is incorrect. I was give a link to about 10 links which in turn referred to 10 more links thereby equating to about 100 links of irrelevant off-topic subject matter which failed to specifically address the request of the OP.
    Any dork can post a link to a book. Sorry I wasn't impressed ...k?

    Quote Originally Posted by DarrylBurke View Post
    Or are you waiting for spoonfeeding? It won't happen.
    Are you here to insult or help people? Never mind, I think I have my answer.

    Quote Originally Posted by DarrylBurke View Post
    Oh, and

    No it isn't.

    db
    Evidently you are the type that likes to argue rather than help. If you really wanted to help you would explain why
    import javax.swing.JScrollPane;

    ISN'T

    So that others could learn at the feet of your condescending tutelage..

  7. #7
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,227
    Rep Power
    6

    Default Re: Complex Multilayer Component Layout

    We help those who make an effort. You can't even ask a proper question specifying the proper names of the compnents you are trying to use.

    I have no idea what "multi layer component layout" means. To me multi-layer is 3-dimensional, not 2-dimension, since Swing has a JLayeredPane that does this.

    You where given ONE link to a tutorial. Yes, the pressure was on you to read the appropriate section from the tutual and ask a followup question if you had a problem. You posted no code showing what you have done. You gave no indication that you read the tutorial, so no, we are not going to jump and write code for you.

    One question and you've already alienated forum regulars.

    By the way for your next question you should be posting an Short, Self Contained, Correct Example so we can see what you have tried and better understand what you are tying to do.

  8. #8
    alan93 is offline Member
    Join Date
    Dec 2011
    Posts
    4
    Rep Power
    0

    Default Re: Complex Multilayer Component Layout

    and guess who won't be hanging around here to patronize the ads on this site. Way to go you won the battle dude. Good luck with your war.

  9. #9
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default Re: Complex Multilayer Component Layout

    Good luck with finding a forum where sloppiness and rudeness are entertained.

    Closing this thread.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. How complex is too complex for a single class?
    By manji51 in forum AWT / Swing
    Replies: 7
    Last Post: 07-08-2011, 07:20 PM
  2. Complex file input
    By JMaste in forum Advanced Java
    Replies: 4
    Last Post: 12-08-2010, 03:55 AM
  3. Replies: 13
    Last Post: 12-06-2010, 05:57 AM
  4. Component Layout method help!!!
    By brandnew956 in forum New To Java
    Replies: 5
    Last Post: 04-14-2010, 08:19 PM
  5. Creating a complex toolbar in SWT
    By Java Tip in forum SWT
    Replies: 0
    Last Post: 07-02-2008, 08:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •