-
BasicArrowButton
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
-
This seems a rather strange question as it COMPLETELY depends upon the framework that you've written around this class!
ArchAngel.
O:-)
-
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
-
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?
ArchAngel.
O:-)
-
yes, above code works with JButton.
-
So what happens now? Exception?
ArchAngel.
O:-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks