not able to set JFrame size , developing using Eclipse
I hope some one can tell me what i am doing wrong
here is what i am doing
i am getting the screen size, using the defaultToolkit,
and setting my JFrame size to the same size as that returned by that method(defaulttoolkit.getscreensize)
but my frame takes on a fixed size that is very small
i changed its size to double the screen size, but still it had the same original size,
i need help urgetnly please!!!
I am using Eclipse IDE. and i not at all familiar with it either!!!!
Please i would really appreciate someones help!!!!!!!!!!!!
Where are you setting the screensize?
Cause I had a similar problem when developing in NetBeans, so I have overridden the setVisible method and put it in there.
This solved the problem for me.
public void setVisible(boolean state)
thanks for ur reply
i did that but still it keeps showing the frame at a small size,
i have overridden the set visible method and written teh screen size, but still the same thing happens
and this is a problem when runnign the application or when working with it in Eclipse itself?
That is what i dont know,
becasue i have developed swing applcations before and never had this problem,
is there something in eclipse that causes this to happen??
if i create a panel and add it to the frame and set the preferered size for the panel then it is showing at the size that i give,
but if i set the size for the frame it is not reflected at runtime!!!!
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL