Package javax.swing

Examples of javax.swing.JComponent$AccessibleJComponent$AccessibleFocusHandler


    boolean doPaintCloseIcon = true;
    try {
      // JComponent.putClientProperty("isClosable", new Boolean(false));
      JTabbedPane tabbedpane = (JTabbedPane) c;
      int tabNumber = tabbedpane.getUI().tabForCoordinate(tabbedpane, x, y);
      JComponent curPanel = (JComponent) tabbedpane.getComponentAt(tabNumber);
      Object prop = null;
      if ((prop = curPanel.getClientProperty("isClosable")) != null) {
        doPaintCloseIcon = (Boolean) prop;
      }
    } catch (Exception ignored) {/*Could probably be a ClassCastException*/}
    if (doPaintCloseIcon) {
      x_pos = x;
View Full Code Here


    lowerContent.add(createDoublevalueMapperEditionPane());
    lowerContent.add(createLowerContent());
    add(lowerContent,BorderLayout.SOUTH);
   
    dstree=null;
    JComponent c=createSourcePanel();
    if(c!=null) add(c,BorderLayout.EAST);
    dialog=null;
  }
View Full Code Here

        if (newContentPane != null) {
            add(BorderLayout.CENTER, newContentPane);
        }
        validate();
        for (int i = 0; i < _components.size(); i++) {
            JComponent d = (JComponent) _components.elementAt(i);
            _desktopCardPanelMode.removeComponent(d);
            newMode.addComponent(d);
        }

        _desktopCardPanelMode = newMode;
View Full Code Here

     *            the component
     * @return the component index or -1 if it doesn't exist
     */
    public int indexOfComponent(JComponent d) {
        for (int i = 0; i < _components.size(); i++) {
            JComponent c = (JComponent) _components.elementAt(i);
            if (c == d) {
                return i;
            }
        }
        return -1;
View Full Code Here

     * Removes all components
     */
    public void removeAllComponents() {
      Object[] components = _components.toArray();
       for (int i = 0; i < components.length; i++){
         JComponent d = (JComponent) components[i];
         removeComponent(d);
       }
        repaint();
    }
View Full Code Here

     * Removes all components
     */
    public void removeOtherComponents(JComponent jc) {
      Object[] components = _components.toArray();
      for (int i = 0; i < components.length; i++){
        JComponent d = (JComponent) components[i];
        if (!d.equals(jc))
          removeComponent(d);
      }

      repaint();
    }
View Full Code Here

    }
      
    protected void back(){
      if (backwardStack.size()>=2){
        forwardStack.push((JComponent)backwardStack.pop());
        JComponent prevComp = (JComponent)backwardStack.pop();
        selectComponent(prevComp);
      }
    }
View Full Code Here

      }
    }
 
  protected void next(){
    if (!forwardStack.isEmpty()){
      JComponent nextComp = (JComponent)forwardStack.pop();
      //backwardStack.push(nextComp);
      selectComponent(nextComp);
    }
  }
View Full Code Here

    public void stateChanged(ChangeEvent e) {
        int index = _namesPane.getSelectedIndex();
        if ((index < 0) || (index > _components.size())) {
            return;
        }
        JComponent d = (JComponent) _components.elementAt(index);
        backwardStack.push(d);
        selectComponent(d);
    }
View Full Code Here

    @SuppressWarnings("unchecked")
    public <E> void add(PropertyEdit<T, E> p, boolean useLabel) {
        if (useLabel)
            addOnCurrentRow(new JLabel(p.getPresentationName()));
        String cname = p.getDisplayClassName();
        JComponent o = null;
        try {
            Class<?> c = (Class<?>) Class.forName(cname);
            o = (JComponent) c.newInstance();
        } catch (ClassNotFoundException e) {
        } catch (InstantiationException e) {
View Full Code Here

TOP

Related Classes of javax.swing.JComponent$AccessibleJComponent$AccessibleFocusHandler

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.