A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
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."
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: calculate current window
Issue with copy pasting the URL
When calling another class, leaving the current class
Display results in a popup window
Hide a print dialog while printing a receipt
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015