Examples of RiverLayout


Examples of se.datadosen.component.RiverLayout

    public SkeletonChooser()
    {
  //  PanelLayout pl = new PanelLayout();
  //  setLayout(pl);
  setLayout(new RiverLayout());
  m_skelcombo.addItem("<none>");
  for (Iterator i=Main.SKELETONS.getIteratorNoDebugName(); i.hasNext(); )
      {
    m_skelcombo.addItem(i.next().toString());
      }
View Full Code Here

Examples of se.datadosen.component.RiverLayout

      sprops = m_skel.getSkeletonProperties();
  else
      sprops = new SkeletonProperty[0];

  m_panel.removeAll();
  m_panel.setLayout(new RiverLayout());
  m_editors.clear();

  for (int i=0; i<sprops.length; i++)
      {
    SkelPropEditor spe = null;
View Full Code Here

Examples of se.datadosen.component.RiverLayout

   JScrollPane scp = new JScrollPane(m_mainpanel);
   m_mainpanelVBar = scp.getVerticalScrollBar();
  add(BorderLayout.CENTER, scp);
  scp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
  //  add(BorderLayout.CENTER, m_mainpanel);
  m_mainpanel.setLayout(new RiverLayout());

  addAction("Welcome", "/icons/stock_form-properties.png", m_jsInfo);
  addAction("Skeleton", "/icons/stock_new-template.png", m_skelElements);
  addAction("Executable", "/icons/stock_autopilot-24.png", m_execElements);
  addAction("Application", "/icons/stock_form-image-control.png", m_appElements);
View Full Code Here

Examples of se.datadosen.component.RiverLayout

          }

      if (pgroup == null)
          {
        pgroup = new JPanel();
        pgroup.setLayout(new RiverLayout());
        javax.swing.border.TitledBorder title = BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.LOWERED), "");
          }

      if (ed.needsFullSpace())
          {
        pgroup.add("left hfill vfill", ed);
        String gc = "br hfill vfill";
        m_mainpanel.add(gc, ed);
        ed.setMaximumSize(new java.awt.Dimension(300,300));
        m_mainpanel.add("tab", new JLabel("..."));
        pgroup = null;
        // m_scrollpane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);
        //m_scrollpane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
          }
      else if (ed.needsBigSpace())
          {
        javax.swing.border.TitledBorder title = BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.LOWERED), getLocaleText(ed.getLabel()));
        pgroup.setBorder(title);
        pgroup.add("left vtop", new HelpButton(getLocaleText(ed.getDescription())));
        pgroup.add("tab left hfill", ed);
        String gc = "br hfill";
         if (i+1>=els.length)
             gc = "p hfill vfill";
        m_mainpanel.add(gc, pgroup);
        pgroup = null;
          }
      else
          {
        if (ed.useDescription())
            {
          pgroup.add("br left", new JLabel(getLocaleText(ed.getLabel())));
          pgroup.add("tab", new HelpButton(getLocaleText(ed.getDescription())));
          pgroup.add("tab hfill", ed);
            }
        else
            {
          pgroup.add("left hfill", ed);
            }
          }

      m_displayedElements.add(ed);
        }
    else if (els[i] instanceof String)
        {
      //      System.out.println("TITLE: " + els[i]);
      if (pgroup != null)
          {
        m_mainpanel.add("br hfill", pgroup);
        pgroup = null;
          }

      pgroup = new JPanel();
      pgroup.setLayout(new RiverLayout());

      javax.swing.border.TitledBorder title = BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.LOWERED), getLocaleText((String)els[i]));
      pgroup.setBorder(title);
        }
View Full Code Here

Examples of se.datadosen.component.RiverLayout

      { return "TEST"; }
    }

    public SkelPanel()
    {
  setLayout(new RiverLayout());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.