i m making a java swing application .
my issue is ,
i have a J frame class A , which has n number of swing components on it like buttons and tabbed-pane etc. i have written several functions too in that class to check that any of the fields to be entered by the user is not blank or in some cases the field entered is a numeric quantity etc.
now , i have an other J frame class B , which is invoked by a an action listener of a button in class A. i have extended class A to B ( CLASS B extends CLASS A) because i wanted to use those functions written in class A to check same things.
the problem is whenever i press the button on J frame A , it invokes n displays my J frame B too but MY J FRAME B is showing the contents of J frame too , is it because i have extended the class ?? :(
can anyone help me why ??
i cant directly post the images , as i need some reputation 10 so m putting a link which has images.
the link i have put shows images of the frames. 1st image shows the frame A second image shows the defected frame B and image 3 shows the original frame B i want. thanks in advance.
please help me.