Java JScrollPane Create getScrollPaneViewComponent(JComponent component)

Here you can find the source of getScrollPaneViewComponent(JComponent component)

Description

get Scroll Pane View Component

License

Open Source License

Declaration

public static Component getScrollPaneViewComponent(JComponent component) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.swing.*;

import java.awt.*;

public class Main {
    public static Component getScrollPaneViewComponent(JComponent component) {
        if (component instanceof JScrollPane) {
            return ((JScrollPane) component).getViewport().getView();
        }// w w w . j  a v a 2  s. c  o m
        return null;
    }
}

Related

  1. getScrollPane(Component component)
  2. getScrollPane(Component component)
  3. getScrollPane(Component innerComponent)
  4. getScrollPane(final Component component)
  5. getScrollPaneAncestor(Component c)
  6. makeScrollable(JComponent c)
  7. makeScrollPane(Component c, int xdim, int ydim)
  8. makeScrollPane(Component comp)
  9. makeScrollPane(Component comp)