20-CS-694 Advanced Programming Techniques Spring 2012
Applet and JFrame Layouts

Interfaces, Exceptions, Graphics, Animation, Threads, Reflection, Networking, RMI, JDBC, JNI

Previous     Next     All lectures

Layout Options

    1.   blt.java

    BorderLayout - North, South, East, West and Center sections are provided.
 
    2.   blgt.java

    BorderLayout - spacing between sections is determined by the constructor arguments.
 
    3.   blgat.java

    BorderLayout with gaps, a JTextArea and JButtons that do something when clicked.
 
    4.   blgart.java

    BorderLayout with gaps, a JTextArea and JButtons that do something different when clicked.
 
    5.   flgart.java

    FlowLayout with gaps.
 
    6.   glgart.java

    GridLayout with gaps.
 
    7.   slt.java

    SpringLayout.
 
    8.   fst.java

    Set maximum and minimum size.