public class MonitorDimension extends Object
| Constructor and Description |
|---|
MonitorDimension() |
| Modifier and Type | Method and Description |
|---|---|
static Dimension |
getPercentualScreenDimension(JFrame frame,
double aPercentage)
This method returns a Dimension with a percentual width and height in relation to the JFrame.
|
static Dimension |
getPercentualScreenDimension(JPanel jpan,
double aPercentage)
This method returns a Dimension with a percentual width and height in realtion to the JPanel.
|
public static Dimension getPercentualScreenDimension(JFrame frame, double aPercentage)
frame - Source dimensionaPercentage - Percentual width and height of the returning dimension.public static Dimension getPercentualScreenDimension(JPanel jpan, double aPercentage)
jpan - Source DimensionaPercentage - Percentual width and height of the returning dimension.Copyright © 2014. All rights reserved.