Skip to content

Commit

Permalink
Updated L&F
Browse files Browse the repository at this point in the history
Use default font instead of making it small.  Might fix #115.
  • Loading branch information
matthewhorridge committed Mar 8, 2015
1 parent 0424ff5 commit 079ad7f
Showing 1 changed file with 5 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
import java.net.URISyntaxException;
import java.util.*;

import javax.swing.JOptionPane;
import javax.swing.LookAndFeel;
import javax.swing.PopupFactory;
import javax.swing.UIManager;
import javax.swing.*;

import com.jgoodies.looks.FontPolicy;
import com.jgoodies.looks.FontSet;
import org.apache.log4j.Logger;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleActivator;
Expand All @@ -36,10 +35,6 @@
import org.protege.editor.core.ui.workspace.Workspace;
import org.protege.editor.core.update.PluginManager;

import com.jgoodies.looks.FontPolicies;
import com.jgoodies.looks.FontPolicy;
import com.jgoodies.looks.FontSet;
import com.jgoodies.looks.FontSets;
import com.jgoodies.looks.plastic.PlasticLookAndFeel;

/*
Expand Down Expand Up @@ -284,14 +279,9 @@ private static void setProtegeDefaultLookAndFeel(String lafName) {
try {
LookAndFeel lookAndFeel = (LookAndFeel) Class.forName(lafName).newInstance();

PopupFactory.setSharedInstance(new PopupFactory());
// PopupFactory.setSharedInstance(new PopupFactory());
PlasticLookAndFeel.setCurrentTheme(new ProtegePlasticTheme());
PlasticLookAndFeel.setTabStyle(PlasticLookAndFeel.TAB_STYLE_METAL_VALUE);

FontSet fontSet = FontSets.createDefaultFontSet(ProtegePlasticTheme.DEFAULT_FONT);
FontPolicy fixedPolicy = FontPolicies.createFixedPolicy(fontSet);
PlasticLookAndFeel.setFontPolicy(fixedPolicy);

// PlasticLookAndFeel.setTabStyle(PlasticLookAndFeel.TAB_STYLE_METAL_VALUE);
UIManager.put("ClassLoader", lookAndFeel.getClass().getClassLoader());
UIManager.setLookAndFeel(lookAndFeel);
}
Expand Down

0 comments on commit 079ad7f

Please sign in to comment.