Examples of scrollRectToVisible()


Examples of javax.swing.JEditorPane.scrollRectToVisible()

              }

              final Rectangle r = pane.modelToView(pos);
              System.out.println();
              r.y += pane.getVisibleRect().height;
              pane.scrollRectToVisible(r);
              // pane.setCaretPosition(pos);
            } catch (final Throwable t2) {
              this.warnUser("Can't follow link to "
                  + e.getDescription() + ": " + t2);
View Full Code Here

Examples of javax.swing.JEditorPane.scrollRectToVisible()

                    int i, k = eps.length;
                    for (i = 0; i < k; i++) {
                        if (eps[i].getDocument() == doc) {
                            final JEditorPane ep = eps[i];
                            try {
                                ep.scrollRectToVisible(ep.modelToView(offset));
                            } catch (BadLocationException ex) {
                                //      ErrorManager.getDefault ().notify (ex);
                            }
                        }
                    }
View Full Code Here

Examples of javax.swing.JList.scrollRectToVisible()

            if (rect == null) {
                throw new IllegalStateException(
                        "attempting to access index " + lastIndex + " for " + comboBox);
            }
           
            list.scrollRectToVisible(rect);
        }
       
        //setting the selected item should scroll it into the visible region
        comboBox.setSelectedItem(item);
    }
View Full Code Here

Examples of javax.swing.JPanel.scrollRectToVisible()

    final JPanel pluginComponent = pluginLoader.getLastPluginComponent();
    if (pluginComponent != null) {
      SwingUtilities.invokeLater(new Runnable() {
        public void run() {
          pluginComponent.scrollRectToVisible(new Rectangle(0, 0));
        }
      });
    }
  }
View Full Code Here

Examples of javax.swing.JTable.scrollRectToVisible()

        return this.value;
    }

    public void performAction() {
        JTable table = (JTable)this._component;
            table.scrollRectToVisible(table.getCellRect(value, 0, true));
    }
    public static void set(Component comp, int value){
        ActionMgr.addAction(new ArrayTopRow(comp, value));
    }
View Full Code Here

Examples of javax.swing.JTable.scrollRectToVisible()

        return this.value;
    }

    public void performAction() {
        JTable table = (JTable)this._component;
            table.scrollRectToVisible(table.getCellRect(value, 0, true));
    }
    public static void set(Component comp, int value){
        ActionMgr.addAction(new ArrayTopRow(comp, value));
    }
View Full Code Here

Examples of javax.swing.JTable.scrollRectToVisible()

        return this.value;
    }

    public void performAction() {
        JTable table = (JTable)this._component;
            table.scrollRectToVisible(table.getCellRect(value, 0, true));
    }
    public static void set(Component comp, int value){
        ActionMgr.addAction(new ArrayTopRow(comp, value));
    }
View Full Code Here

Examples of javax.swing.JTable.scrollRectToVisible()

        // para poder desplazar la ultima fila a la altura del Header
        tableView.setPreferredSize(size);
        tableView.revalidate();
        Rectangle rectRes = new Rectangle(0, 0, 0, 0);//reset

        tableView.scrollRectToVisible(rectRes);
        Rectangle rect = new Rectangle(0, row * rowHeight, tableWidth, tableHeight * 2);

        tableView.scrollRectToVisible(rect);

        /*int y  = getViewport().getViewPosition().y;
View Full Code Here

Examples of javax.swing.JTable.scrollRectToVisible()

        Rectangle rectRes = new Rectangle(0, 0, 0, 0);//reset

        tableView.scrollRectToVisible(rectRes);
        Rectangle rect = new Rectangle(0, row * rowHeight, tableWidth, tableHeight * 2);

        tableView.scrollRectToVisible(rect);

        /*int y  = getViewport().getViewPosition().y;
         y += getViewport().getExtentSize().getHeight();
         int row = table.rowAtPoint(new Point(0,y));
         return (row > -1) ? row : (
View Full Code Here

Examples of javax.swing.JTable.scrollRectToVisible()

                }
                // 自動選択
                selectionModel.addSelectionInterval(first, last);
                // 選択した行が表示されるようにスクロールする
                Rectangle r = table.getCellRect(first, last, true);
                table.scrollRectToVisible(r);
            }
           
            selectionModel.setValueIsAdjusting(false);

        } else {           
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.