| | |
Getting window size
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
To top up what JamesCherrill already said about getting size, to set position you can use methods inherited from Component setLocation(int x,int y) or setLocation(Point p)
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
•
•
Join Date: May 2008
Posts: 13
Reputation:
Solved Threads: 0
thanks for the response....
but i really need a solution to align the window borders so tat the newly opened windows will not overlap the current window that is running instead their borders have to be aligned so tat i can view both the windows as in Google Desktop Gadgets.Gotta!!!
I need a help in this .
but i really need a solution to align the window borders so tat the newly opened windows will not overlap the current window that is running instead their borders have to be aligned so tat i can view both the windows as in Google Desktop Gadgets.Gotta!!!
I need a help in this .
Last edited by Kishorey; Apr 30th, 2009 at 8:06 am. Reason: mistake
•
•
Join Date: May 2008
Posts: 13
Reputation:
Solved Threads: 0
hi james,
setLocation gives the location of the window which i'm executing ,so i need the location of the other windows say netbeans i ve opened now so that the netbeans shouldnt overlap the frame or vice versa .,instead it shld align with the frame borders n i shld b able to view both the windows ...
hence i 'm asking how 2 get the location of the netbeans .
setLocation gives the location of the window which i'm executing ,so i need the location of the other windows say netbeans i ve opened now so that the netbeans shouldnt overlap the frame or vice versa .,instead it shld align with the frame borders n i shld b able to view both the windows ...
hence i 'm asking how 2 get the location of the netbeans .
![]() |
Similar Threads
- "Open new window" Window Size - how to change? (Web Browsers)
- How do I make my window the size of the Image? (JavaScript / DHTML / AJAX)
- Prompt window size (C++)
- gnome window size (Window and Desktop Managers)
- IE Problem??......window size (Web Browsers)
- Opening a Web Page in a New Window (Windows tips 'n' tweaks)
Other Threads in the Java Forum
- Previous Thread: help with methods
- Next Thread: Learning Java, need some help with ATM program
| Thread Tools | Search this Thread |
-xlint android api applet application array arrays automation bi binary blackberry block bluetooth chat class classes client code compile compiler component database developmenthelp eclipse error event exception fractal freeze game gameprogramming givemetehcodez graphics gui health html ide image input integer j2me j2seprojects java javac javaprojects jetbrains jni jpanel jtable julia learningresources lego linux list login loop loops mac map method methods mobile netbeans newbie notdisplaying number online oracle page print problem program programming project qt recursion scanner screen server set singleton size sms sort sql string swing system template textfields threads time title tree tutorial-sample update variablebinding windows working xor






