开发者

how to validate only show me geometric shapes smaller than a JFrame

开发者 https://www.devze.com 2023-04-09 21:12 出处:网络
I can make a program to enter a series of values ​​of geometric figures to show me开发者_Go百科 in a JFrame.

I can make a program to enter a series of values ​​of geometric figures to show me开发者_Go百科 in a JFrame. It happens all the figures showing they want to see in the JFrame, but I have to validate that these figures appear to me entirely in the JFrame is not the case when the coordinates are very large. I was looking online and found nothing. I thought that "if" but never finished, because each number and the radio that I have to enter a validation. I wondered if there was a reserved word in java that allows me to display only the data that is smaller than the JFrame.

Thank you for your response.


There are many methods you can use in the Shape class. E.g. getBounds() and contains(double x, double y)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号