Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about Toolkit

 
mao lao
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can I use Toolkit?
I saw someone who has passed just use 600x800 as size of the JFrame, but not use Toolkit.
Is there any reason not to use Toolkit? although we have to use components only in swing.
Thanks
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't think of any reason why you need to use the Toolkit?
Mark
 
mao lao
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for reply
like Toolkit.getDefaultToollkit().getScreenSize();
then setLocation in the center of the screen;
anyway I can just set the size like 800x600 to avoid using Toolkit;
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To center the screen, I think that is fine.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic