Package edu.cmu.relativelayout

Examples of edu.cmu.relativelayout.RelativeLayout


    area = new JTextArea();
    users = new JTextArea();
    area.setEditable(false);
    area.setBackground(new Color(255, 255, 153));
    frame = new JFrame("Discussion Room");
    panel = new JPanel(new RelativeLayout());
    chatPane = new JScrollPane(area);
    userList = new JScrollPane(users);
    paintCanvas = new MyCanvas();
    inputField = new JTextField();
    sendButton = new JButton("Send");
View Full Code Here


    // testSanityChecking();
  }

  public static void testCentering() {
    JFrame frame = new JFrame();
    frame.setLayout(new RelativeLayout());

    JPanel corner = new JPanel();
    corner.setPreferredSize(new Dimension(96, 96));
    Border b = BorderFactory.createBevelBorder(BevelBorder.RAISED);
    corner.setBorder(b);
View Full Code Here

    frame.setVisible(true);
  }

  public static void testDialog() {
    JFrame frame = new JFrame();
    frame.setLayout(new RelativeLayout());

    JLabel label =
        new JLabel("RelativeLayout is much easier to use.  Are you sure you want to go on using other layouts?");
    JTextArea area = new JTextArea("Some text here.");
    area.setBorder(new BevelBorder(BevelBorder.LOWERED));
View Full Code Here

  }

  public static void testSanityChecking() {
    JFrame frame = new JFrame();
    frame.setLayout(new RelativeLayout());

    JButton one = new JButton("One");
    JButton two = new JButton("Two");
    JButton three = new JButton("Three");
View Full Code Here

    frame.setVisible(true);
  }

  public static void testStaticLayout() {
    JFrame frame = new JFrame();
    frame.setLayout(new RelativeLayout());

    JButton one = new JButton("One");
    JButton two = new JButton("Two");
    JButton three = new JButton("Three");
View Full Code Here

   *
   */
  @SuppressWarnings("unused")
  private static void testCorners() {
    JFrame frame = new JFrame();
    frame.setLayout(new RelativeLayout());

    JButton one = new JButton("One");
    JButton two = new JButton("Two");
    JButton three = new JButton("Three");
    JButton four = new JButton("Four");
View Full Code Here

  /**
   *
   */
  private static void testMailInterface() {
    JFrame frame = new JFrame();
    frame.setLayout(new RelativeLayout());

    JScrollPane folderView =
        new JScrollPane(new JTree(new Object[] { "Inbox", "Drafts", "Sent Mail", "Spam", "Trash" }));
    JScrollPane mailList =
        new JScrollPane(new JList(new Object[] { "Get rich quick!", "Dr. Mkele Mbogo from Nigeria",
View Full Code Here

    TestUI.test();
  }

  public static void test() {
    JFrame frame = new JFrame();
    frame.setLayout(new RelativeLayout());

    JTextArea area = new JTextArea("Some text here.");
    JLabel okLabel = new JLabel("OK");
    JButton addButton = new JButton("Add");
    JButton editButton = new JButton("Edit");
View Full Code Here

TOP

Related Classes of edu.cmu.relativelayout.RelativeLayout

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.