BasicArrowButton


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: BasicArrowButton

  1. #1
    Join Date
    Nov 2003
    Posts
    8

    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

  2. #2
    Join Date
    Mar 2003
    Posts
    834
    This seems a rather strange question as it COMPLETELY depends upon the framework that you've written around this class!
    ArchAngel.
    O:-)

  3. #3
    Join Date
    Nov 2003
    Posts
    8
    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

  4. #4
    Join Date
    Mar 2003
    Posts
    834
    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:-)

  5. #5
    Join Date
    Nov 2003
    Posts
    8
    yes, above code works with JButton.

  6. #6
    Join Date
    Mar 2003
    Posts
    834
    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center