Dear all,
I am using JWindow setBounds constructor. Now how am supposed to know the arguments to pass into the constructor. How do I know what is the pixel of the screen and so on?:confused:
Printable View
Dear all,
I am using JWindow setBounds constructor. Now how am supposed to know the arguments to pass into the constructor. How do I know what is the pixel of the screen and so on?:confused:
setBounds is a method, not a constructor.
java.awt.Toolkit#getScreenSize / getScreenResolution
db
I know it is a method. I am asking how am I supposed to know the pixel values to pass into the setbound(x,y,width,height) constructor?
Can't tell from the way you ask that, but maybe you need to go through this:
Lesson: Laying Out Components Within a Container (The Java™ Tutorials > Creating a GUI with JFC/Swing)
db
edit And if you KNOW it's a method, why do you keep on misusing the word CONSTRUCTOR?