sujitopics
Programmer
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
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