Exemple #1
0
 static {
   // SoyLatte doesn't properly support document modal dialogs yet.
   isDocumentModalitySupported =
       !System.getProperty("os.name").equals("Darwin")
           && System.getProperty("java.version").compareTo("1.6") >= 0;
   isNativeSheetSupported =
       QuaquaManager.isOSX() && System.getProperty("java.version").compareTo("1.6") >= 0;
 }
  public static void main(String args[]) {
    // UIManager.put("PopupMenu.border", new BorderUIResource.EmptyBorderUIResource(4,0,4,0));

    try {
      UIManager.setLookAndFeel(QuaquaManager.getLookAndFeelClassName());
      //   UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
    } catch (Exception e) {
      e.printStackTrace();
    }
    JFrame f = new JFrame("PopupMenuTest: " + UIManager.getLookAndFeel().getName());
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().add(new PopupMenuTest());
    f.pack();
    f.setVisible(true);
  }