Fri Jun 15, 2007 4:55 pm
Fri Jun 15, 2007 5:32 pm
Mohamed Alzahar wrote:Hi sami and all of codemiles members,
Is there a standard way to move between frames within a single application, if there exist please give me an example?
thank you
Fri Jun 15, 2007 6:30 pm
Fri Jun 15, 2007 7:16 pm
next.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
setVisible(false); // for the current frame
if(nextframe!=null)
nextframe.setVisible(true); // for the next frame
}
}
});
public class Main{
private myFrame f1;
private myFrame f2;
private myFrame f3;
private myFrame f4;
public static void main(String [] args)
{
f4=new myFrame(null);
f3=new myFrame(f4);
f2=new myFrame(f3);
f1=new myFrame(f2);
f1.show();
}
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.