Logo Search packages:      
Sourcecode: wims version File versions


package rene.gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

A MenuItem with modifyable font.
This it to be used in DoActionListener interfaces.

00012 class MenuItemActionTranslator implements ActionListener
{     String S;
      DoActionListener C;
      public MenuItemActionTranslator (DoActionListener c, String s)
      {     S=s; C=c;
      public void actionPerformed (ActionEvent e)
      {     C.doAction(S);

public class MenuItemAction extends MyMenuItem
{   MenuItemActionTranslator MIT;
      public MenuItemAction (DoActionListener c, String s, String st)
    {   super(s);
        addActionListener(MIT=new MenuItemActionTranslator(c,st));
      public MenuItemAction (DoActionListener c, String s)
      {     this(c,s,s);
      public void setString (String s)
      {     MIT.S=s;

Generated by  Doxygen 1.6.0   Back to index