Results 1 to 3 of 3
  1. #1
    Splat is offline Member
    Join Date
    Oct 2009
    Posts
    21
    Rep Power
    0

    Default Why use layout managers in applet?

    Hi,

    I am a bit green with Java and don't really understand its philosophy yet. I was wondering if anyone could tell me why layout managers are used in applets rather than just physically laying out with setBounds(...) method. It seems to me that Java applets have fixed dimensions anyway and resizing them is not going to take advantage of auto-re layout as a result of resizing.

    Anyway, just wondered what people thought about using setBounds(...) in a applet of fixed dimensions?

    Regards
    Glenn.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    I'm not an expert in this, far from it, but can't the user resize the applet if desired? That can surely uglify a null-layout gui. Also, will running the applet on different OS's or different screen resolutions change the "beauty" of the GUI if null layout is used? Just some thoughts of mine.

  3. #3
    Splat is offline Member
    Join Date
    Oct 2009
    Posts
    21
    Rep Power
    0

    Default

    ok, I'm not sure I know what I'm talking about but I have not succeeded in resizing an applet in Google Chrome. Maybe there is a way to pop out an applet from the browser window? or not without programming it that way?

    I was thinking that if the setBounds(...) method was used it would display in exactly the same way in every single browser, every single OS, except maybe for the font (possibly). It would however make it inflexible when it came to resizing but I am thinking an embedded applet can't be resized anyway?

    Am I making sense?

Similar Threads

  1. Download managers
    By islamfunny in forum CLDC and MIDP
    Replies: 4
    Last Post: 08-15-2008, 02:19 AM
  2. Java GUI layout
    By nick2price in forum New To Java
    Replies: 2
    Last Post: 05-27-2008, 10:42 PM
  3. Multiple Layout Managers
    By AJG in forum New To Java
    Replies: 0
    Last Post: 04-06-2008, 02:43 AM
  4. Layout Managers
    By gmioannou in forum AWT / Swing
    Replies: 1
    Last Post: 12-24-2007, 05:12 AM

Tags for this Thread

Posting Permissions

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