<classpathentry kind="lib" path="lib/log4j-to-slf4j-2.0-rc2.jar"/>
<classpathentry kind="lib" path="lib/slf4j-log4j12-1.7.7.jar"/>
<classpathentry kind="lib" path="lib/VARNAv3-91.jar"/>
-
<classpathentry kind="lib" path="lib/jfreesvg-2.1.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/plugin.jar"/>
<classpathentry kind="lib" path="lib/xml-apis.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Plugin.jar"/>
+ <classpathentry kind="lib" path="lib/quaqua-filechooser-only.jar"/>
<classpathentry kind="output" path="classes"/>
</classpath>
import java.util.Vector;
import javax.swing.UIManager;
+import javax.swing.UnsupportedLookAndFeelException;
/**
* Main class for Jalview Application <br>
System.out.println(System.getProperty("os.arch") + " "
+ System.getProperty("os.name") + " "
+ System.getProperty("os.version"));
- if (new Platform().isAMac())
- {
- System.setProperty("com.apple.mrj.application.apple.menu.about.name",
- "Jalview");
- System.setProperty("apple.laf.useScreenMenuBar", "true");
- }
+ // if (new Platform().isAMac())
+ // {
+ // // System.setProperty("com.apple.mrj.application.apple.menu.about.name",
+ // // "Jalview");
+ // // System.setProperty("apple.laf.useScreenMenuBar", "true");
+ // try
+ // {
+ // UIManager.setLookAndFeel(ch.randelshofer.quaqua.QuaquaManager
+ // .getLookAndFeel());
+ // System.out
+ // .println("--------------------------------------------> in here");
+ // } catch (UnsupportedLookAndFeelException e)
+ // {
+ // // TODO Auto-generated catch block
+ // e.printStackTrace();
+ // }
+ // }
ArgsParser aparser = new ArgsParser(args);
boolean headless = false;
} catch (Exception ex)
{
}
+ if (new Platform().isAMac())
+ {
+ System.setProperty("com.apple.mrj.application.apple.menu.about.name",
+ "Jalview");
+ System.setProperty("apple.laf.useScreenMenuBar", "true");
+ try
+ {
+ UIManager.setLookAndFeel(ch.randelshofer.quaqua.QuaquaManager
+ .getLookAndFeel());
+ } catch (UnsupportedLookAndFeelException e)
+ {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
if (!headless)
{
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
+import javax.swing.SpringLayout;
/**
* Enhanced file chooser dialog box.
public RecentlyOpened()
{
+
String historyItems = jalview.bin.Cache.getProperty("RECENT_FILE");
StringTokenizer st;
Vector recent = new Vector();
this.setBorder(new javax.swing.border.TitledBorder(MessageManager.getString("label.recently_opened")));
final JScrollPane scroller = new JScrollPane(list);
- scroller.setPreferredSize(new Dimension(130, 200));
+
+ SpringLayout layout = new SpringLayout();
+ layout.putConstraint(SpringLayout.WEST, scroller, 5,
+ SpringLayout.WEST, this);
+ layout.putConstraint(SpringLayout.NORTH, scroller, 5,
+ SpringLayout.NORTH, this);
+
+ // scroller.setPreferredSize(new Dimension(130, 200));
+
+
+ scroller.setPreferredSize(new Dimension(500, 100));
this.add(scroller);
javax.swing.SwingUtilities.invokeLater(new Runnable()