Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
calculate current window
Joined: Dec 04, 2005
Feb 02, 2006 15:07:00
i need to find the deminsions of half of my current window so i can write my methods for my program.....please help...
Joined: May 25, 2001
Feb 02, 2006 16:23:00
did you try and read the API doc of the window (perhaps its
or so) ?
there is probably something like getDimension(), getWidth()/getHeight(), getSize().
and if you find the size... your halfway there :-)
Joined: Aug 31, 2004
Feb 02, 2006 16:25:00
If you're looking for screen size, try...
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award."
It is sorta covered in the
JavaRanch Style Guide
subject: calculate current window
Hide a print dialog while printing a receipt
Issue with copy pasting the URL
When calling another class, leaving the current class
Display results in a popup window
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013