Results 1 to 3 of 3

Thread: Actions

  1. #1
    alley is offline Member
    Join Date
    Nov 2007
    Posts
    8
    Rep Power
    0

    Default Actions

    Good afternoon,

    I have a query about a frame with 2 panels.

    I want to put some buttons inside the bottom panel, but I need the actions (ActionListener) to occur inside the top panel.

    Can you guide me how to connect the panels to be able to do this?

    Thanks for your help!

  2. #2
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Posts
    1,576
    Rep Power
    9

    Default

    Have the top panel implement ActionListener or contain an Action and pass this listener or action to the buttons that are in the south panel. The buttons will generate the events, notify the actions/actionListeners and these will receive the events in the top panel.

  3. #3
    alley is offline Member
    Join Date
    Nov 2007
    Posts
    8
    Rep Power
    0

Similar Threads

  1. Help using Buttons/Actions with Drawings
    By Deathmonger in forum New To Java
    Replies: 0
    Last Post: 04-08-2008, 04:11 PM
  2. Bean related actions in JSP
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-24-2007, 11:04 AM
  3. Replies: 2
    Last Post: 07-03-2007, 05:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •