Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frame

Status
Not open for further replies.

sujitopics

Programmer
Oct 9, 2001
69
KR
Dear Friends,
I am new to java

I have a Frame class called "AFrame". in this there is a button "Show"
and another Frame class called "BFrame".
When i press the Show button from "AFrame" the BFrame should have to appear in "center" of that "AFrame"

AFrame size of the Frame is setSize(600,600);
BFrame size of the Frame is setSize(100,100);

What shall i do to appear BFrame.. in the center of AFrame
What code shall i include in show button action listener

I think setLocation will not be the solution for this.

If anyone knows about this., please share ur ideas
Thanks in advance
Yours
Suji
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top