Slick Forums

Discuss the Slick 2D Library
It is currently Mon Sep 28, 2020 1:39 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Feb 16, 2007 5:59 am 
Offline
User avatar

Joined: Thu Feb 15, 2007 8:06 am
Posts: 12
Would it be worth making it possible to set the size of the CanvasGameContainer so that it sizes correctly within a JFrame when pack() is used?

As a temporary solution I'll drop it into a JPanel and size that, but perhaps it would be nice if it obeyed the getPreferredSize etc stuff?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 16, 2007 6:22 am 
Offline
Slick Zombie

Joined: Sat Jan 27, 2007 7:10 pm
Posts: 1482
Keep in mind that CanvasGameContainer extends AWTGLCanvas, which extends Canvas.

So it should already have those methods.


Top
 Profile  
 
PostPosted: Fri Feb 16, 2007 7:11 am 
Offline
User avatar

Joined: Thu Feb 15, 2007 8:06 am
Posts: 12
Sorry about that - I looked through the class and couldn't see anything, and it never occured to me to just try it.

D'oh! :oops:

Thanks,
Tim


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group