how do use this class to go back from the current JDialog to previous JDialog screen.
here what i have so far...
BasicArrowButton lArrow, rArrow; // declare
private class pageDirection implements ActionListener{
public void actionPerformed( ActionEvent pDir )
{
if (pDir.getSource() == lArrow)
{
toBack();
}
}
}
////
pageDirection pageDir = new pageDirection();
leftArrow.addActionlistener(pageDir);
thanx
11-07-2003, 04:37 AM
ArchAngel
This seems a rather strange question as it COMPLETELY depends upon the framework that you've written around this class!
11-07-2003, 08:00 AM
karz
what i mean is that normally to go back to previous from frame/applet, i type in toBack(); I tried the same approach but don't work. I have a feeling that BasicArrowButton might have different function, or maybe not.
toBack() works fine with JButton.
thanx
11-07-2003, 11:05 AM
ArchAngel
Since BasicArrowButton is a subclass of JButton, you should be able to replace an instance of JButton with BasicArrayButton and everything should remain the same.
Are you saying that you've had the above code working with a JButton?