Package javax.swing

Examples of javax.swing.JToolBar$AccessibleJToolBar


        tfZoom.setMaximumSize(new Dimension(120, 20));
        tfZoom.setMinimumSize(new Dimension(120, 20));
        tfZoom.addActionListener(this);

        // Zoom tool bar               
        JToolBar  zoomToolbar = new JToolBar();
        zoomToolbar.setRollover(true);
        zoomToolbar.setFloatable(false);
        zoomToolbar.add(aZoomIn);
        zoomToolbar.add(aZoomOut);

        zoomPane.add(zoomToolbar);


        zoomPane.add(new JPanel());
View Full Code Here


    /**
     * Default implementation to create tool bar
     */
    public void createToolBar() {
        toolbar = new JToolBar();
        toolbar.setRollover(true);
        toolbar.setFloatable(false);
        addFileButtons(toolbar);
        toolbar.addSeparator();
        addEditButtons(toolbar);
View Full Code Here

                    public void keyTyped(KeyEvent keyEvent) {}
                }
        );

        // buttons
        JToolBar  toolbar = new JToolBar();
        toolbar.setRollover(true);
        toolbar.setFloatable(false);
       
        clearFilterButton = resources.getBox("clearFilter", this);
        clearFilterButton.setEnabled(false);
        toolbar.add(clearFilterButton);

       
        collapseAllButton = resources.getBox("collapseAll", this);
        toolbar.add(collapseAllButton);
       
        expandAllButton = resources.getBox("expandAll", this);
        toolbar.add(expandAllButton);
        addOnCurrentRow(new JLabel(resources.getString("filter")));
        addOnCurrentRow(sourceFilter,3,true, false, false);
        addOnCurrentRow(toolbar,1,false, false, true);
        addOnCurrentRow(sourceTreeScrollPane,5,true, true, true);  
View Full Code Here

   *  
   * @return javax.swing.JToolBar 
   */
  private JToolBar getPlayerToolBar() {
    if (playerToolBar == null) {
      playerToolBar = new JToolBar();
      playerToolBar.setFloatable(false);
      playerToolBar.add(getOpenButton());
      playerToolBar.add(getOpenCaptureDeviceButton());
      playerToolBar.add(getAddressPanel());
      playerToolBar.add(getLoadButton());
View Full Code Here

  {
  }

  private void initializeToolBar()
  {
    mainToolBar = new JToolBar();
    //mainToolBar.setBorderPainted(false);
    //mainToolBar.setRollover(true);
    getContentPane().add(mainToolBar, BorderLayout.NORTH);
   
    mainToolBar.add(Builder.createToolBarButton(newAction));
View Full Code Here

    }
    System.exit(0);
  }

  private void initializeToolBar() {
    mainToolBar = new JToolBar();
    //mainToolBar.setBorderPainted(false);
    //mainToolBar.setRollover(true);
    getContentPane().add(mainToolBar, BorderLayout.NORTH);
   
    mainToolBar.add(Builder.createToolBarButton(sendAction));
View Full Code Here

    }

    private void setupToolBar() {
        JPanel leftPan = new JPanel();
        leftPan.setLayout(new BorderLayout());
        tlb = new JToolBar(JToolBar.VERTICAL);
        //tlb.putClientProperty(Options.HEADER_STYLE_KEY, HeaderStyle.BOTH);
        tlb.setBorder(null);
        tlb.setRollover(true);

        tlb.setMargin(new Insets(0, 0, 0, 2));
View Full Code Here

  public SidePaneComponent(SidePaneManager manager, URL icon, String title) {
    super(new ImageIcon(icon), title);
    this.manager = manager;
    setSelected(true);
    JToolBar tlb = new JToolBar();
    close.setMargin(new Insets(0, 0, 0, 0));
    // tlb.setOpaque(false);
    close.setBorder(null);
    tlb.add(close);
    close.addActionListener(new CloseButtonListener());
    setToolBar(tlb);
    // setBorder(BorderFactory.createEtchedBorder());

    // setBorder(BorderFactory.createMatteBorder(1,1,1,1,java.awt.Color.green));
View Full Code Here

    public GanttDialogCalendar(JFrame parent) {
        super(parent, GanttProject.correctLabel(GanttLanguage.getInstance()
                .getText("editCalendars")), true);
        setResizable(false);

        JToolBar top = new JToolBar();
        top.setFloatable(false);
        bNew = new TestGanttRolloverButton(new ImageIcon(getClass()
                .getResource("/icons/new_16.gif")));
        bDelete = new TestGanttRolloverButton(new ImageIcon(getClass()
                .getResource("/icons/delete_16.gif")));
        bImport = new TestGanttRolloverButton(new ImageIcon(getClass()
                .getResource("/icons/open_16.gif")));
        bSelectDays = new TestGanttRolloverButton(new ImageIcon(getClass()
                .getResource("/icons/calendar_16.gif")));

        top.add(bNew);
        top.add(bDelete);
        top.add(bImport);
        top.addSeparator();
        top.add(bSelectDays);

        bNew.addActionListener(this);
        bDelete.addActionListener(this);
        bImport.addActionListener(this);
        bSelectDays.addActionListener(this);
View Full Code Here

            final JPanel panelMain = new JPanel(new BorderLayout()); // Main Panel

            final JPanel panelHeader = new JPanel(new BorderLayout()); // header (toolbar and textfields)
            final JPanel panelTextfields = new JPanel(new GridBagLayout());

            final JToolBar panelToolbar = new JToolBar(); // toolbar
            panelToolbar.setRollover(true);
            panelToolbar.setFloatable(false);

            final JScrollPane bodyScrollPane = new JScrollPane(messageTextArea); // Textscrollpane
            bodyScrollPane.setWheelScrollingEnabled(true);
            bodyScrollPane.setMinimumSize(new Dimension(100, 50));

            // FIXME: add a smiley chooser right beside the subject textfield!

            // text fields
            final GridBagConstraints constraints = new GridBagConstraints();
            final Insets insets = new Insets(0, 3, 0, 3);
            final Insets insets0 = new Insets(0, 0, 0, 0);
            constraints.fill = GridBagConstraints.NONE;
            constraints.anchor = GridBagConstraints.WEST;
            constraints.weighty = 0.0;
            constraints.weightx = 0.0;

            constraints.insets = insets;

            constraints.gridx = 0;
            constraints.gridy = 0;

            constraints.fill = GridBagConstraints.NONE;
            constraints.gridwidth = 1;
            constraints.insets = insets;
            constraints.weightx = 0.0;
            panelTextfields.add(Lboard, constraints);

            constraints.gridx = 1;

            constraints.fill = GridBagConstraints.HORIZONTAL;
            constraints.gridwidth = 2;
            constraints.insets = insets0;
            constraints.weightx = 1.0;
            panelTextfields.add(TFboard, constraints);

            constraints.gridx = 0;
            constraints.gridy++;

            constraints.fill = GridBagConstraints.NONE;
            constraints.gridwidth = 1;
            constraints.insets = insets;
            constraints.weightx = 0.0;
            panelTextfields.add(Lfrom, constraints);

            constraints.gridx = 1;

            constraints.fill = GridBagConstraints.HORIZONTAL;
            constraints.gridwidth = 2;
            constraints.insets = insets0;
            constraints.weightx = 1.0;
            panelTextfields.add(getOwnIdentitiesComboBox(), constraints);

            constraints.gridx = 0;
            constraints.gridy++;

            constraints.fill = GridBagConstraints.NONE;
            constraints.gridwidth = 1;
            constraints.insets = insets;
            constraints.weightx = 0.0;
            panelTextfields.add(Lsubject, constraints);

            constraints.gridx = 1;

            constraints.fill = GridBagConstraints.HORIZONTAL;
            constraints.gridwidth = 1;
            constraints.insets = insets0;
            constraints.weightx = 1.0;
            panelTextfields.add(subjectTextField, constraints);

            constraints.gridx = 2;

            constraints.fill = GridBagConstraints.NONE;
            constraints.gridwidth = 1;
            constraints.insets = insets;
            constraints.weightx = 0.0;
            panelTextfields.add(BchooseSmiley, constraints);

            // toolbar
            panelToolbar.add(Bsend);
            panelToolbar.add(Bcancel);
            panelToolbar.addSeparator();
            panelToolbar.add(BattachFile);
            panelToolbar.add(BattachBoard);
            panelToolbar.addSeparator();
            panelToolbar.add(sign);
            panelToolbar.addSeparator();
            panelToolbar.add(encrypt);
            panelToolbar.add(buddies);
//            panelButtons.add(addAttachedFilesToUploadTable);

            final ScrollableBar panelButtonsScrollable = new ScrollableBar(panelToolbar);

            panelHeader.add(panelButtonsScrollable, BorderLayout.PAGE_START);
View Full Code Here

TOP

Related Classes of javax.swing.JToolBar$AccessibleJToolBar

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.