|
XJMenu |
|
1 /* 2 * Copyright (c) 1998-2003, The University of Sheffield. 3 * 4 * This file is part of GATE (see http://gate.ac.uk/), and is free 5 * software, licenced under the GNU Library General Public License, 6 * Version 2, June 1991 (in the distribution as file licence.html, 7 * and also available at http://gate.ac.uk/gate/licence.html). 8 * 9 * Valentin Tablan 20 Feb 2003 10 * 11 * $Id: XJMenu.java,v 1.1 2003/02/20 18:25:46 valyt Exp $ 12 */ 13 14 package gate.swing; 15 16 import javax.swing.*; 17 18 /** 19 * A modified version of JMenu that uses {@link MenuLayout} as its layout. 20 */ 21 public class XJMenu extends JMenu { 22 public XJMenu(){ 23 super(); 24 getPopupMenu().setLayout(new MenuLayout()); 25 } 26 27 public XJMenu(Action a){ 28 super(a); 29 getPopupMenu().setLayout(new MenuLayout()); 30 } 31 32 public XJMenu(String s){ 33 super(s); 34 getPopupMenu().setLayout(new MenuLayout()); 35 } 36 37 public XJMenu(String s, boolean b){ 38 super(s, b); 39 getPopupMenu().setLayout(new MenuLayout()); 40 } 41 }
|
XJMenu |
|