public static void main(String[] args) {
    JFrame f = new JFrame("Open Frame");
    f.getContentPane().add(new QuaquaJaguarFileChooserPanel());
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.setVisible(true);

    JDialog d = new JDialog(f, "Open Dialog");
    // d.getContentPane().add(new QuaquaJaguarFileChooserPanel());
    JPanel p = new JPanel();
    QuaquaJaguarFileChooserPanel fp;
    p.add(fp = new QuaquaJaguarFileChooserPanel());
    d.getContentPane().add(p);
    d.getRootPane().setDefaultButton(fp.approveButton);
    d.setVisible(true);
  }
  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);
  }