Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Kentaro

[java] Frame Size Problems

This topic is 5771 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I created a frame and set its size to 200 by 400 but when I drew a 20x20 "block" to the screen at yPos 380 or xPos 180, it got cut off. I was thinking this had to do with the Insets but I tried adding them to the dimensions for the frame and it didn''t work. Is there any way that I can fix this problem? This isn''''t life in the fast lane, it''''s life in the oncoming traffic. -- Terry Pratchett

Share this post


Link to post
Share on other sites
Advertisement
Hi,

you can always set the size of your component (some Canvas or JPanel) and then call "pack()" on the Frame/JFrame it''s inside.

maybe this helps

have a nice day ...

Share this post


Link to post
Share on other sites
You''ll have to post some code, or link to the code to see what the problem is.



Make it work, then
make it fast.

"I’m happy to share what I can, because I’m in it for the love of programming. The Ferraris are just gravy, honest!" --John Carmack: Forward to Graphics Programming Black Book

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!