Hi!
I have a solution ;-)
We need further methods.
1. addNotify();
2. validate();
import java.awt.*;
public class WidthTest
{
public static void main(String args[])
{
Frame f = new Frame();
f.addNotify(); // You must call this method
f.setSize(200, 100)...
Hi!
Could you tell me please, how can I use the method
getSize() before I call the method setVisible(true)??
If I call the method getSize() before setVisible(true)
then return getSize() only 0 !!!!!
I must call getSize() before setVisible(true).
I tried to call the methods addNotify() and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.