NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

jframe size can be set to screensize but the buttons and other things in jframe dont get modified according to the screensize

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
a1n1n1a1



Joined: 27 Jul 2009
Posts: 1

PostPosted: Mon Jul 27, 2009 4:11 am    Post subject: jframe size can be set to screensize but the buttons and other things in jframe dont get modified according to the screensize Reply with quote

i want to set the size of my jframe equal to the screensize of the monitor being used.I have thus used this:

Toolkit kit = Toolkit.getDefaultToolkit();
Dimension screenSize = kit.getScreenSize();
frame.setSize(screenSize);

the size of jframe fits the screen but the inner things of jframe e.g the buttons and textarea they are not modified according to the size and therefore some of my button appear half in the jframe and half are cut...Please help Crying or Very sad ...that the jframe should b such that when it is opened in any pc it should b of screensize with normal location of buttons and other things in it..
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo