File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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."
I agree. Here's the link:
subject: calculate current window
Display results in a popup window
Issue with copy pasting the URL
Hide a print dialog while printing a receipt
When calling another class, leaving the current class
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014