Package javax.swing.plaf.basic

Examples of javax.swing.plaf.basic.BasicArrowButton


  protected JViewport viewport;
  protected int incr = 48;
 
  public ScrollingPanel(Component component) {
    setLayout(new BorderLayout());
    north = new BasicArrowButton(BasicArrowButton.NORTH);
    south = new BasicArrowButton(BasicArrowButton.SOUTH);
    viewport = new JViewport();
    add(north, BorderLayout.NORTH);
    add(viewport, BorderLayout.CENTER);
    add(south, BorderLayout.SOUTH);
    viewport.setView(component);
View Full Code Here


      public Insets getInsets() {
        return new Insets(0, 0, 0, 0);
      }
    };

    m_btnCombo = new BasicArrowButton(SwingConstants.SOUTH);
    m_btnCombo.setFocusable(false);
    m_txtInput = new JFormattedTextField(m_objDateFormat);
    m_chkSelectable = new JCheckBox("");
    m_chkSelectable.setSelected(true);
    m_menuPopup = new JPopupMenu() {
View Full Code Here

   * @author : aniruddha<br>
   * @date : Aug 31, 2006, 6:01:28 PM<br>
   */
  private void initComponents() {
    m_pnlCal = new JPanel();
    m_btnNext = new BasicArrowButton(SwingConstants.EAST);
    m_btnPrev = new BasicArrowButton(SwingConstants.WEST);

    m_lblMonth = new JLabel("", SwingConstants.CENTER);
    m_lblYear = new JLabel();
    m_lblToDay = new JLabel("Today: " + m_strMonths[m_calCurrent.get(Calendar.MONTH)] + " " + m_calCurrent.get(Calendar.DATE) + ", " + m_calCurrent.get(Calendar.YEAR), SwingConstants.CENTER);
    m_lblToDay.setFont(m_lblToDay.getFont().deriveFont(Font.BOLD, m_lblToDay.getFont().getSize() - 2));
View Full Code Here

   *
   * @param harness the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness)
  {
    BasicArrowButton b = new BasicArrowButton(0);
    harness.check(b.isFocusable(), false);
  }
View Full Code Here

   *
   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness
  {
    BasicArrowButton b = new BasicArrowButton(SwingConstants.NORTH);
    harness.check(b.getMaximumSize(), new Dimension(Integer.MAX_VALUE,
            Integer.MAX_VALUE))
   
    // setting the maximum size explicitly has no effect
    b.setMaximumSize(new Dimension(12, 34));
    harness.check(b.getMaximumSize(), new Dimension(Integer.MAX_VALUE,
            Integer.MAX_VALUE));
   
    // modifying the returned value should not affect the button
    Dimension m = b.getMaximumSize();
    m.setSize(1, 2);
    harness.check(b.getMaximumSize(), new Dimension(Integer.MAX_VALUE,
            Integer.MAX_VALUE));   
  }
View Full Code Here

   *
   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness
  {
    BasicArrowButton b = new BasicArrowButton(SwingConstants.NORTH);
    harness.check(b.getMinimumSize(), new Dimension(5, 5));
   
    // setting the minimum size explicitly has no effect
    b.setMinimumSize(new Dimension(12, 34));
    harness.check(b.getMinimumSize(), new Dimension(5, 5));

    // modifying the returned value should not affect the button
    Dimension m = b.getMinimumSize();
    m.setSize(1, 2);
    harness.check(b.getMinimumSize(), new Dimension(5, 5));   
  }
View Full Code Here

   *
   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness
  {
    BasicArrowButton b = new BasicArrowButton(SwingConstants.NORTH);
    harness.check(b.getPreferredSize(), new Dimension(16, 16));
   
    // setting the preferred size explicitly has no effect
    b.setPreferredSize(new Dimension(12, 34));
    harness.check(b.getPreferredSize(), new Dimension(16, 16));
   
    // modifying the returned value should not affect the button
    Dimension p = b.getPreferredSize();
    p.setSize(1, 2);
    harness.check(b.getPreferredSize(), new Dimension(16, 16));   
  }
View Full Code Here

   *
   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness
  {
    BasicArrowButton b = new BasicArrowButton(SwingConstants.NORTH);
    harness.check(b.isFocusTraversable(), false);
  }
View Full Code Here

        jToolBar2.setFloatable(false);
        jToolBar2.add(toolbarNewButton);

        jPanel2.add(jToolBar2, java.awt.BorderLayout.CENTER);

        toolbarNewArrowButton = new BasicArrowButton(SwingConstants.SOUTH);
        toolbarNewArrowButton.setToolTipText(
            getResourceConverter().getString(
                "workbench.toolbar.newArrow", "New"));
        toolbarNewArrowButton.setBorderPainted(false);
        toolbarNewArrowButton.addActionListener(
View Full Code Here

                "schemaExplorer.targetLabel.title", "Schema"));
        targetLabel.setBorder(new EtchedBorder());
        // up arrow button for property table heading
        jPanel3 = new JPanel();
        jPanel3.setLayout(new BorderLayout());
        BasicArrowButton arrowButtonUp =
            new BasicArrowButton(SwingConstants.NORTH);
        BasicArrowButton arrowButtonDown =
            new BasicArrowButton(SwingConstants.SOUTH);
        arrowButtonUp.setToolTipText(
            getResourceConverter().getString(
                "schemaExplorer.arrowButtonUp.toolTip",
                "move to parent element"));
        arrowButtonDown.setToolTipText(
            getResourceConverter().getString(
                "schemaExplorer.arrowButtonDown.toolTip",
                "move to child element"));
        arrowButtonUpAction = new AbstractAction(
            getResourceConverter().getString(
                "schemaExplorer.arrowButtonUp.title", "Arrow button up"))
        {
            public void actionPerformed(ActionEvent e) {
                arrowButtonUpAction(e);
            }
        };
        arrowButtonDownAction = new AbstractAction(
            getResourceConverter().getString(
                "schemaExplorer.arrowButtonDown.title", "Arrow button down"))
        {
            public void actionPerformed(ActionEvent e) {
                arrowButtonDownAction(e);
            }
        };
        arrowButtonUp.addActionListener(arrowButtonUpAction);
        arrowButtonDown.addActionListener(arrowButtonDownAction);
        jPanel3.add(arrowButtonDown, java.awt.BorderLayout.EAST);
        jPanel3.add(arrowButtonUp, java.awt.BorderLayout.WEST);
        jPanel3.add(targetLabel, java.awt.BorderLayout.CENTER);

        jPanel1.add(jPanel3, java.awt.BorderLayout.NORTH);
View Full Code Here

TOP

Related Classes of javax.swing.plaf.basic.BasicArrowButton

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.