< prev index next >

src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifPopupMenuUI.java

Print this page




  30 import javax.swing.event.*;
  31 import javax.swing.border.*;
  32 import java.awt.Color;
  33 import java.awt.Component;
  34 import java.awt.Container;
  35 import java.awt.Dimension;
  36 import java.awt.Font;
  37 import java.awt.FontMetrics;
  38 import java.awt.Frame;
  39 import java.awt.Graphics;
  40 import java.awt.Insets;
  41 import java.awt.LayoutManager;
  42 import java.awt.Point;
  43 import java.awt.Rectangle;
  44 import java.awt.event.*;
  45 import javax.swing.plaf.*;
  46 import javax.swing.plaf.basic.BasicPopupMenuUI;
  47 
  48 
  49 /**
  50  * A Motif L&F implementation of PopupMenuUI.
  51  * <p>
  52  * <strong>Warning:</strong>
  53  * Serialized objects of this class will not be compatible with
  54  * future Swing releases.  The current serialization support is appropriate
  55  * for short term storage or RMI between applications running the same
  56  * version of Swing.  A future release of Swing will provide support for
  57  * long term persistence.
  58  *
  59  * @author Georges Saab
  60  * @author Rich Schiavi
  61  */
  62 public class MotifPopupMenuUI extends BasicPopupMenuUI {
  63     private static Border border = null;
  64     private Font titleFont = null;
  65 
  66     public static ComponentUI createUI(JComponent x) {
  67         return new MotifPopupMenuUI();
  68     }
  69 
  70     /* This has to deal with the fact that the title may be wider than




  30 import javax.swing.event.*;
  31 import javax.swing.border.*;
  32 import java.awt.Color;
  33 import java.awt.Component;
  34 import java.awt.Container;
  35 import java.awt.Dimension;
  36 import java.awt.Font;
  37 import java.awt.FontMetrics;
  38 import java.awt.Frame;
  39 import java.awt.Graphics;
  40 import java.awt.Insets;
  41 import java.awt.LayoutManager;
  42 import java.awt.Point;
  43 import java.awt.Rectangle;
  44 import java.awt.event.*;
  45 import javax.swing.plaf.*;
  46 import javax.swing.plaf.basic.BasicPopupMenuUI;
  47 
  48 
  49 /**
  50  * A Motif {@literal L&F} implementation of PopupMenuUI.
  51  * <p>
  52  * <strong>Warning:</strong>
  53  * Serialized objects of this class will not be compatible with
  54  * future Swing releases.  The current serialization support is appropriate
  55  * for short term storage or RMI between applications running the same
  56  * version of Swing.  A future release of Swing will provide support for
  57  * long term persistence.
  58  *
  59  * @author Georges Saab
  60  * @author Rich Schiavi
  61  */
  62 public class MotifPopupMenuUI extends BasicPopupMenuUI {
  63     private static Border border = null;
  64     private Font titleFont = null;
  65 
  66     public static ComponentUI createUI(JComponent x) {
  67         return new MotifPopupMenuUI();
  68     }
  69 
  70     /* This has to deal with the fact that the title may be wider than


< prev index next >