XJPopupMenu.java |
1 /* 2 * Copyright (c) 1998-2005, 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: XJPopupMenu.java,v 1.3 2005/01/11 13:51:37 ian Exp $ 12 */ 13 14 package gate.swing; 15 16 17 import javax.swing.JPopupMenu; 18 19 /** 20 * A modified version of JPopupMenu that uses {@link MenuLayout} as its layout. 21 */ 22 public class XJPopupMenu extends JPopupMenu { 23 public XJPopupMenu() { 24 super(); 25 setLayout(new MenuLayout()); 26 } 27 28 public XJPopupMenu(String label){ 29 super(label); 30 setLayout(new MenuLayout()); 31 } 32 }