home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2001 October / PCpro_2001_10.ISO / xml / xmlpro / data1.cab / Program_Executable_FILES / xmlpro.jar / JMenuItemLeft.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-09-15  |  615 b   |  16 lines

  1. import javax.swing.AbstractButton;
  2. import javax.swing.DefaultButtonModel;
  3. import javax.swing.Icon;
  4. import javax.swing.JMenuItem;
  5.  
  6. public class JMenuItemLeft extends JMenuItem {
  7.    public JMenuItemLeft(String var1, Icon var2) {
  8.       ((AbstractButton)this).setModel(new DefaultButtonModel());
  9.       ((JMenuItem)this).init(var1, var2);
  10.       ((AbstractButton)this).setBorderPainted(false);
  11.       ((AbstractButton)this).setFocusPainted(false);
  12.       ((AbstractButton)this).setHorizontalTextPosition(4);
  13.       ((JMenuItem)this).updateUI();
  14.    }
  15. }
  16.