| Site Map | WizTools.org | jCraze Blog |
![]()
|
Centering JDialog In Relation To Parent JFrameThis code displays the JDialog (jd) in center of the JFrame (jf) object. import javax.swing.*; import java.awt.*; ==================== Point p = jf.getLocation(); jd.setLocation(p.x+(jf.getWidth()-jd.getWidth())/2, p.y+(jf.getHeight()-jd.getHeight())/2); jd.setVisible(true); |
[Quick Stats: Number of main threads: 2, Number of sub-threads: 1]
Sign Guestbook
|
Who is Subhash?
The contents of this site are copyright© 2000-2008, indiWiz.com. All Rights Reserved.