Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Re: Let 'A' be an extension of JPanel, 'B' is a JPanel, and 'F' is a JFrame. Suppose B.add(A), and F.add(B). How do I access an ActionEvent, which occurs within 'A', from 'F'?

    The two classes are too tightly connected to be separate, external classes.
    The Strings: changeMode, X and Y should all be defined and used in one class.
    mode is something defined and used in the...
  2. Re: Let 'A' be an extension of JPanel, 'B' is a JPanel, and 'F' is a JFrame. Suppose B.add(A), and F.add(B). How do I access an ActionEvent, which occurs within 'A', from 'F'?

    Can you explain why this is an improper solution?
    I don't see any comments in the code about any problems or anything?
  3. Re: Let 'A' be an extension of JPanel, 'B' is a JPanel, and 'F' is a JFrame. Suppose B.add(A), and F.add(B). How do I access an ActionEvent, which occurs within 'A', from 'F'?

    Can you post some code that shows the problem?
    Are you asking about something like this: 'A'. addActionListener('F')
Results 1 to 3 of 3