a continuous layout?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 8 of 8

Thread: a continuous layout?

  1. #1
    Join Date
    Mar 2004
    Posts
    635

    a continuous layout?

    Is it possible to set a continuous layout for a jframe? I thought there was, but I'm not finding anything in the docs. JSplitPane allows it, but that's all I've found.

  2. #2
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    Please explain what a JSpitPane is capable of that qualifies as "continuous layout" ?
    eschew obfuscation

  3. #3
    Join Date
    Mar 2004
    Posts
    635
    when resizing a window, the contents resize to match continuously.

  4. #4
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    GridLayout & BorderLayout does that. The gridlayout gives each component the same space, for BorderLayout the resizing "favours" the component in the center and
    the four others components are treated according to their preferredSize settings.
    GridBagLayout also gives you resizing, with a some nitty gritty constraints coding.
    eschew obfuscation

  5. #5
    Join Date
    Mar 2004
    Posts
    635
    I think maybe you're still misunderstanding, here's a picture.

    example here

    When resizing, the frame will match its size with how you draw the mouse, but the contents of that frame will not adjust until you release the mouse button from resizing it.

  6. #6
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    Ok, that requires one of two things....

    1: a listener interface for the frame that is called continously during frame resizing
    so that you can invoke a validate/repaint for the frame, providing that the frame will
    accept that during resize.

    2: a frame setting that will do that for free

    I have failed in finding anything like this
    eschew obfuscation

  7. #7
    Join Date
    Mar 2004
    Posts
    635
    guess i'll just have to use the listener, thanks for trying though.

  8. #8
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    If you go for option 1 then please let me know if you crack it.
    eschew obfuscation

Similar Threads

  1. changing report layout help
    By ksuwanto8ksd in forum VB Classic
    Replies: 0
    Last Post: 05-18-2005, 03:47 AM
  2. Replies: 1
    Last Post: 11-18-2002, 02:23 PM
  3. swing Null layout
    By satish in forum Java
    Replies: 6
    Last Post: 10-16-2001, 09:06 PM
  4. swing null layout
    By satish in forum Java
    Replies: 3
    Last Post: 10-05-2001, 01:11 PM
  5. XY Layout with resize
    By Nils Myklebust in forum Java
    Replies: 1
    Last Post: 09-05-2000, 05:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center