Examples of BorderPanel


Examples of com.alee.extended.panel.BorderPanel

        WebToolBar ut = new WebToolBar ( WebToolBar.HORIZONTAL );
        ut.setFloatable ( false );
        setupToolBar ( ut );

        return new GroupPanel ( 0, false, new BorderPanel ( ft ), new BorderPanel ( ut ) );
    }
View Full Code Here

Examples of com.alee.extended.panel.BorderPanel

        aut.setFloatable ( false );
        aut.setToolbarStyle ( ToolbarStyle.attached );
        aut.setComponentOrientation ( ComponentOrientation.RIGHT_TO_LEFT );
        setupToolBar ( aut );

        return new GroupPanel ( 3, true, new BorderPanel ( ft ), new BorderPanel ( ut ), new BorderPanel ( aft ), new BorderPanel ( aut ) );
    }
View Full Code Here

Examples of com.alee.extended.panel.BorderPanel

        aut.setFloatable ( false );
        aut.setToolbarStyle ( ToolbarStyle.attached );
        aut.setComponentOrientation ( ComponentOrientation.RIGHT_TO_LEFT );
        setupToolBar ( aut );

        return new GroupPanel ( 3, false, new BorderPanel ( aft ), new BorderPanel ( aut ) );
    }
View Full Code Here

Examples of com.alee.extended.panel.BorderPanel

                }
            } );
            setJMenuBar ( menuBar );

            // Options panel
            add ( new BorderPanel ( new WebPanel ( new VerticalFlowLayout ( 10, 10 ) )
            {
                {
                    setMargin ( 15 );

                    final TitledBorderPainter titledBorderPainter = new TitledBorderPainter ( "Window settings" );
View Full Code Here

Examples of com.alee.extended.panel.BorderPanel

    }

    @Override
    protected void addSubComponents ()
    {
        add ( new BorderPanel ( new WebLabel ( frame.getTitle (), new Icon ()
        {
            @Override
            public void paintIcon ( final Component c, final Graphics g, final int x, final int y )
            {
                if ( frame.getFrameIcon () != null )
                {
                    frame.getFrameIcon ().paintIcon ( c, g, x, y );
                }
            }

            @Override
            public int getIconWidth ()
            {
                return frame.getFrameIcon () != null ? frame.getFrameIcon ().getIconWidth () : 16;
            }

            @Override
            public int getIconHeight ()
            {
                return frame.getFrameIcon () != null ? frame.getFrameIcon ().getIconHeight () : 16;
            }
        }, WebLabel.LEFT )
        {
            {
                setOpaque ( false );
                setForeground ( Color.WHITE );
                setFont ( WebFonts.getSystemTitleFont () );
            }
        }, isFrameTitle () ? 3 : 1, 3, 0, 3 ), BorderLayout.CENTER );

        final int buttons = ( frame.isIconifiable () ? 1 : 0 ) + ( frame.isMaximizable () ? 1 : 0 ) +
                ( frame.isClosable () ? 1 : 0 );
        final JPanel buttonsPanel = new JPanel ( new GridLayout ( 1, buttons ) );
        buttonsPanel.setOpaque ( false );
        if ( frame.isIconifiable () )
        {
            buttonsPanel.add ( iconButton );
        }
        if ( frame.isMaximizable () )
        {
            buttonsPanel.add ( maxButton );
        }
        if ( frame.isClosable () )
        {
            buttonsPanel.add ( closeButton );
        }
        add ( new BorderPanel ( buttonsPanel, 0, 0, 0, 0 ), BorderLayout.EAST );
    }
View Full Code Here

Examples of com.alee.extended.panel.BorderPanel

        setLayout ( new BorderLayout () );

        container = new WebPanel ( layout );
        if ( margin != null )
        {
            final BorderPanel borderPanel = new BorderPanel ( component, margin );
            borderPanel.setOpaque ( false );
            if ( constraints != null )
            {
                container.add ( borderPanel, constraints );
            }
            else
View Full Code Here

Examples of org.w3c.tools.widgets.BorderPanel

  fb.setHorizontalScrollbar(sh);
  fbrowser.add("Center", fb);
  fbrowser.add("East", sv);
  fbrowser.add("South", sh);

  BorderPanel border = new BorderPanel(BorderPanel.LOWERED);
  border.setLayout(new BorderLayout());
  border.add(fbrowser);

  widget.add("South", border);

    }
View Full Code Here

Examples of org.w3c.tools.widgets.BorderPanel

      //Menu Bar
      EditorMenu menu = new EditorMenu(this);
      setMenuBar(menu);

      //rules list
      BorderPanel plrules = new BorderPanel(BorderPanel.OUT, 5);
      plrules.setLayout(new BorderLayout());
      plrules.add(lrules);

     
      thost = new TextField(20);
      trule = new TextField(15);
      trule.setEditable(false);

      BorderPanel ptrule = new BorderPanel(BorderPanel.IN, 2);
      ptrule.setLayout(new GridLayout(1,1));
      ptrule.add(trule);

      targs = new TextField(30);

      // BAR 0
      Panel plabel = new Panel();
      plabel.add(new Label("Host: "));
      Panel pcrule = new Panel(new BorderLayout());
      pcrule.add(new Label("Rule: "), "West");
      pcrule.add(crule, "Center");
      Panel pcargs = new Panel(new BorderLayout());
      pcargs.add(new Label("Args: "), "West");
      pcargs.add(cargs, "Center");

      BorderPanel phost = new BorderPanel(BorderPanel.IN,2);
      phost.setLayout(new GridLayout(2,1));
      phost.add(plabel);
      phost.add(thost);

      BorderPanel prule = new BorderPanel(BorderPanel.IN,2);
      prule.setLayout(new GridLayout(2,1));
      prule.add(pcrule);
      prule.add(trule);

      BorderPanel pargs = new BorderPanel(BorderPanel.IN,2);
      pargs.setLayout(new GridLayout(2,1));
      pargs.add(pcargs);
      pargs.add(targs);

      BorderPanel bar0 = new BorderPanel(BorderPanel.OUT,5);
      bar0.setLayout(new GridLayout(1,3));
      bar0.add(phost);
      bar0.add(prule);
      bar0.add(pargs);

      // BAR 2
      addB     = new Button("Add Rule");
      addB.setActionCommand("add");
      addB.addActionListener(this);

      replaceB = new Button("Replace Rule");
      replaceB.setActionCommand("replace");
      replaceB.addActionListener(this);

      removeB  = new Button("Remove Rule");
      removeB.setActionCommand("remove");
      removeB.addActionListener(this);

      Panel bar2 = new Panel(new GridLayout(1,3));
      bar2.add(addB);
      bar2.add(replaceB);
      bar2.add(removeB);

      //Label location
      location = new Label("Rules location: "+
         editor.component.getRulesLocation());
      BorderPanel ploc = new BorderPanel(BorderPanel.RAISED, 1);
      ploc.setLayout(new FlowLayout());
      ploc.add(location);

      //Bar 2 & 3
      BorderPanel bar2_3 = new BorderPanel(BorderPanel.OUT, 5);
      bar2_3.setLayout(new GridLayout(2,1));
       bar2_3.add(bar2);
       bar2_3.add(ploc);
     
      //subpanel
      Panel subPanel = new Panel(new BorderLayout());
      subPanel.add(plrules,"Center");
      subPanel.add(bar0, "South");
View Full Code Here

Examples of org.w3c.tools.widgets.BorderPanel

    public void setMessage(String msg) {
  controlLabel.setText(msg);
    }

    public ControlHelper() {
  widget = new BorderPanel(BorderPanel.LOWERED,2);
  widget.setLayout(new BorderLayout());
    }
View Full Code Here

Examples of org.w3c.tools.widgets.BorderPanel

  ControlPanel.add("Center", fspp);
  widget.add("Center", ControlPanel);
  controlLabel = new Label("", Label.CENTER);
  controlLabel.setBackground(Color.gray);
  controlLabel.setForeground(Color.white);
  BorderPanel bpcl = new BorderPanel(BorderPanel.IN,2);
  bpcl.setLayout(new BorderLayout());
  bpcl.add(controlLabel, "Center");
  widget.add("South", bpcl);
  widget.validate();
  widget.setVisible(true);
    }
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.