Results 1 to 6 of 6

Thread: Border Layout

  1. #1
    mark-mlt is offline Member
    Join Date
    Apr 2008
    Posts
    15
    Rep Power
    0

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    You are talking about two different things. In simple word border layout is swing/awt design technic/mechanism used for GUI design. Applet is a Java program which included in HTML.

  3. #3
    Java Tip's Avatar
    Java Tip is offline Moderator
    Join Date
    Nov 2007
    Posts
    1,694
    Blog Entries
    430
    Rep Power
    9

    Default

    Can i use border layout in an applet??!!
    Yes you can use it. Applet is part of AWT and JApplet is part of Swing.

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Write a simple application and see. As I said earlier in an applet you can embedded a Java application:)

  5. #5
    naiara is offline Member
    Join Date
    May 2008
    Posts
    3
    Rep Power
    0

    Default

    Yah, You can use the border layout in an applets.
    This is the way to use the border layout in an applets
    :)
    setLayout(new BorderLayout());
    setFont(new Font("Helvetica", Font.PLAIN, 14));
    add("North", new Button("North"));
    add("South", new Button("South"));
    add("East", new Button("East"));
    add("West", new Button("West"));
    add("Center", new Button("Center"));

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. Help with JButton and layout
    By adlb1300 in forum AWT / Swing
    Replies: 1
    Last Post: 12-25-2007, 08:33 AM
  2. Layout Managers
    By gmioannou in forum AWT / Swing
    Replies: 1
    Last Post: 12-24-2007, 04:12 AM
  3. Help with Grid Layout
    By coco in forum AWT / Swing
    Replies: 1
    Last Post: 08-06-2007, 08:03 PM
  4. MiG Layout Manager 2.4
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-16-2007, 05:11 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
  •