Here you can find the source of getMaxVisibleY(JComponent comp)
Parameter | Description |
---|---|
comp | a parameter |
public static int getMaxVisibleY(JComponent comp)
//package com.java2s; //it under the terms of the GNU Affero General Public License as published by import java.awt.Rectangle; import javax.swing.JComponent; public class Main { /**// w w w .j a v a 2 s .c om * @param comp * @return the maximum visible y-value in the component. */ public static int getMaxVisibleY(JComponent comp) { final Rectangle rect = comp.getVisibleRect(); return rect.y + rect.height - 1; } }