i was working with the JFrame class and i was trying to create an empty frame,but when i try to use the setSize() method,it shows some API error,something like Usage of API documented as @since 1.6+9 enter image description here
I just want to create an empty frame but the method i need to set the size for the frame is giveing an error related to API
You should use with Dimension class as parameter.