Package view.layout

Examples of view.layout.VerticalLayout


 
  public SearchResultView(int panelNumber, SearchController controller, SearchableObjectArray results) {
    super(panelNumber);
    setLayout(new SpringLayout());

    container = new JPanel(new VerticalLayout());
    scroll = new JScrollPane(container);
    scroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
    scroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
   
    for (SearchableObject r : results) {
View Full Code Here


   
    runtimePanel = new JLabel("<html><h3>Runtime: N/A</h3></html>");
    yearPanel = new JLabel("<html><h3>Released: N/A</h3></html>");
    starringPanel = new JLabel("<html><h3>Starring: N/A</h3></html>");

    container = new JPanel(new VerticalLayout());
    container.add(titlePanel);
    container.add(absScroll);
    container.add(runtimePanel);
    container.add(yearPanel);
    container.add(starringPanel);
View Full Code Here

    absScroll.setPreferredSize(new Dimension(500, 300));
    absScroll.getHorizontalScrollBar().setEnabled(false);

    birthDatePanel = new JLabel("<html><h2>Birth date: N/A</h2></html>");

    container = new JPanel(new VerticalLayout());
    container.add(nameLabel, BorderLayout.NORTH);
    container.add(absScroll, BorderLayout.CENTER);
    container.add(birthDatePanel, BorderLayout.SOUTH);

    scroll = new JScrollPane(container);
View Full Code Here

TOP

Related Classes of view.layout.VerticalLayout

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.