本文整理汇总了Java中com.jgoodies.looks.plastic.Plastic3DLookAndFeel类的典型用法代码示例。如果您正苦于以下问题:Java Plastic3DLookAndFeel类的具体用法?Java Plastic3DLookAndFeel怎么用?Java Plastic3DLookAndFeel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Plastic3DLookAndFeel类属于com.jgoodies.looks.plastic包,在下文中一共展示了Plastic3DLookAndFeel类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: setLookAndFeel
import com.jgoodies.looks.plastic.Plastic3DLookAndFeel; //导入依赖的package包/类
public void setLookAndFeel() {
// PlasticXPLookAndFeel.setPlasticTheme(new DesertRed());
// PlasticLookAndFeel.setTabStyle(PlasticLookAndFeel.TAB_STYLE_METAL_VALUE);
// PlasticLookAndFeel.setTabStyle("Metal");
// PlasticLookAndFeel.setHighContrastFocusColorsEnabled(true);
// PlasticLookAndFeel.setPlasticTheme(new PlasticTheme(){});
// Plastic3DLookAndFeel.setCurrentTheme(new ExperienceRoyale());
try{
UIManager.setLookAndFeel(new Plastic3DLookAndFeel());//using jgoodies look
// UIManager.setLookAndFeel(new PlasticXPLookAndFeel());//using jgoodies look
// UIManager.setLookAndFeel(new WindowsLookAndFeel());//using jgoodies look
// UIManager.setLookAndFeel(new PlasticLookAndFeel());//using jgoodies look
// UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
SwingUtilities.updateComponentTreeUI(this);
} catch (Exception e) {
System.out.println(e.getMessage());
}
}
开发者ID:uestc-lsu,项目名称:LPCM,代码行数:23,代码来源:LoginDialog.java
示例2: setLookAndFeel
import com.jgoodies.looks.plastic.Plastic3DLookAndFeel; //导入依赖的package包/类
private void setLookAndFeel() {
try {
if ((Utilities.getOperatingSystem() & Utilities.OS_LINUX) != 0) {
Plastic3DLookAndFeel.setPlasticTheme(new LightGray());
UIManager.setLookAndFeel(new Plastic3DLookAndFeel());
}
} catch (UnsupportedLookAndFeelException ex) {
Exceptions.printStackTrace(ex);
}
}
开发者ID:dbunibas,项目名称:spicy,代码行数:11,代码来源:Installer.java
示例3: main
import com.jgoodies.looks.plastic.Plastic3DLookAndFeel; //导入依赖的package包/类
public static void main(String args[]) {
// set look and feel
PlasticLookAndFeel laf = new Plastic3DLookAndFeel();
PlasticLookAndFeel.setCurrentTheme(new ExperienceBlue());
try {
UIManager.setLookAndFeel(laf);
} catch (UnsupportedLookAndFeelException e) {
e.printStackTrace();
}
JFrame frame = new JFrame("Wizard Demo");
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
Wizard wizard = new Wizard(new WelcomeWizardPanel());
wizard.addWizardListener(new WizardDemo());
frame.setContentPane(wizard);
// frame.pack();
frame.setSize(450, 400);
frame.setLocationRelativeTo(null);
frame.setVisible(true);
}
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:21,代码来源:WizardDemo.java
示例4: installLnfs
import com.jgoodies.looks.plastic.Plastic3DLookAndFeel; //导入依赖的package包/类
/**
* Install L&Fs.
*/
public static void installLnfs() {
UIManager.installLookAndFeel("JGoodies Plastic 3D", Plastic3DLookAndFeel.class.getName());
if (OperatingSystem.isWindows() && JavaVersion.getJreVersion().isBelow(JavaVersion.JRE_VERSION_9)) {
UIManager.installLookAndFeel("JGoodies Windows",
com.jgoodies.looks.windows.WindowsLookAndFeel.class.getName());
}
// Darcula is optional
if (isDarculaAvailable()) {
UIManager.installLookAndFeel("Darcula", DARCULA_LAF_CLASS);
}
}
开发者ID:kaikramer,项目名称:keystore-explorer,代码行数:17,代码来源:LnfUtil.java
示例5: useLnfForPlatform
import com.jgoodies.looks.plastic.Plastic3DLookAndFeel; //导入依赖的package包/类
/**
* Use the appropriate look and feel for the current platform.
*
* @return Look and feel class name used
*/
public static String useLnfForPlatform() {
String lnfClassName = null;
if (OperatingSystem.isMacOs() || OperatingSystem.isWindows()) {
lnfClassName = UIManager.getSystemLookAndFeelClassName();
} else {
String xdgCurrentDesktop = System.getenv("XDG_CURRENT_DESKTOP");
if ("Unity".equalsIgnoreCase(xdgCurrentDesktop)
|| "XFCE".equalsIgnoreCase(xdgCurrentDesktop)
|| "GNOME".equalsIgnoreCase(xdgCurrentDesktop)
|| "X-Cinnamon".equalsIgnoreCase(xdgCurrentDesktop)
|| "LXDE".equalsIgnoreCase(xdgCurrentDesktop)
) {
lnfClassName = UIManager.getSystemLookAndFeelClassName();
} else {
lnfClassName = Plastic3DLookAndFeel.class.getName();
}
}
useLnf(lnfClassName);
return lnfClassName;
}
开发者ID:kaikramer,项目名称:keystore-explorer,代码行数:29,代码来源:LnfUtil.java
示例6: getUIDefaults
import com.jgoodies.looks.plastic.Plastic3DLookAndFeel; //导入依赖的package包/类
public static UIDefaults getUIDefaults() {
//Uncomment to see possible key values
//listUIDefaults();
UIDefaults defaults = new UIDefaults();
// The defauls are specified for each look n feel and color theme
if(UIManager.getLookAndFeel() instanceof Plastic3DLookAndFeel
&& Plastic3DLookAndFeel.getPlasticTheme() instanceof ExperienceBlue){
BorderUIResource emptyBorder = new BorderUIResource(BorderFactory.createEmptyBorder());
// Removes borders from menubar
defaults.put("MenuBar.border", emptyBorder);
defaults.put("SplitPaneDivider.border", emptyBorder);
defaults.put("SplitPane.border", emptyBorder);
defaults.put(Options.HEADER_STYLE_KEY, HeaderStyle.SINGLE);
defaults.put("TaskPane.titleBackgroundGradientStart",
UIManager.getColor("Panel.background"));
defaults.put("TaskPane.titleBackgroundGradientEnd",
UIManager.getColor("Panel.background"));
defaults.put("TaskPaneContainer.background", Color.white);
defaults.put("SimpleInternalFrame.activeTitleForeground", Color.white);
// Adds textarea background to white. This affects for example
// help textarea on the top right corner and affymetrix wizard
defaults.put("TextArea.background", Color.WHITE);
TEXTAREA_UNEDITABLE_BACKGROUND = UIManager.getColor("Panel.background");
} else {
// There is no specified look and feel options for this LAF. Use defaults.
}
return defaults;
}
开发者ID:chipster,项目名称:chipster,代码行数:41,代码来源:VisualConstants.java
示例7: setPlasticLookAndFeel
import com.jgoodies.looks.plastic.Plastic3DLookAndFeel; //导入依赖的package包/类
public static void setPlasticLookAndFeel() {
try {
UIManager.setLookAndFeel(new Plastic3DLookAndFeel());
UIManager.put("Table.gridColor", new ColorUIResource(Color.GRAY));
UIManager.put("TableHeader.background", new ColorUIResource(220, 220, 220));
} catch (UnsupportedLookAndFeelException e) {
log.error(e);
}
}
开发者ID:chelu,项目名称:jdal,代码行数:11,代码来源:ApplicationContextGuiFactory.java
示例8: getLookAndFeels
import com.jgoodies.looks.plastic.Plastic3DLookAndFeel; //导入依赖的package包/类
private UIManager.LookAndFeelInfo[] getLookAndFeels() {
final List<UIManager.LookAndFeelInfo> installed = Arrays.asList(UIManager.getInstalledLookAndFeels());
final List<BasicLookAndFeel> plastic = Arrays.asList(new PlasticXPLookAndFeel(),
new Plastic3DLookAndFeel(),
new PlasticLookAndFeel(),
new PgsLookAndFeel());
final List<BasicLookAndFeel> substance = Arrays.asList(
new SubstanceAutumnLookAndFeel(),
new SubstanceBusinessBlackSteelLookAndFeel(),
new SubstanceBusinessBlueSteelLookAndFeel(),
new SubstanceBusinessLookAndFeel(),
new SubstanceCeruleanLookAndFeel(),
new SubstanceChallengerDeepLookAndFeel(),
new SubstanceCremeCoffeeLookAndFeel(),
new SubstanceCremeLookAndFeel(),
new SubstanceDustCoffeeLookAndFeel(),
new SubstanceDustLookAndFeel(),
new SubstanceEmeraldDuskLookAndFeel(),
new SubstanceGeminiLookAndFeel(),
new SubstanceGraphiteAquaLookAndFeel(),
new SubstanceGraphiteGlassLookAndFeel(),
new SubstanceGraphiteLookAndFeel(),
new SubstanceMagellanLookAndFeel(),
new SubstanceMarinerLookAndFeel(),
new SubstanceMistAquaLookAndFeel(),
new SubstanceMistSilverLookAndFeel(),
new SubstanceModerateLookAndFeel(),
new SubstanceNebulaBrickWallLookAndFeel(),
new SubstanceNebulaLookAndFeel(),
new SubstanceOfficeBlack2007LookAndFeel(),
new SubstanceOfficeBlue2007LookAndFeel(),
new SubstanceOfficeSilver2007LookAndFeel(),
new SubstanceRavenLookAndFeel(),
new SubstanceSaharaLookAndFeel(),
new SubstanceTwilightLookAndFeel()
);
final List<UIManager.LookAndFeelInfo> extraLf = Stream.concat(plastic.stream(), substance.stream())
.map(l -> new UIManager.LookAndFeelInfo(l.getName(), l.getClass().getName()))
.collect(Collectors.toList());
final ArrayList<UIManager.LookAndFeelInfo> result = new ArrayList<>();
result.addAll(installed);
result.addAll(extraLf);
return result.toArray(new UIManager.LookAndFeelInfo[result.size()]);
}
开发者ID:otros-systems,项目名称:otroslogviewer,代码行数:47,代码来源:Appearance.java
示例9: usingPlastic3DLnf
import com.jgoodies.looks.plastic.Plastic3DLookAndFeel; //导入依赖的package包/类
/**
* Is the JGoodies Plastic 3D l&f currently being used?
*
* @return True if it is
*/
public static boolean usingPlastic3DLnf() {
return usingLnf(Plastic3DLookAndFeel.class.getName());
}
开发者ID:kaikramer,项目名称:keystore-explorer,代码行数:9,代码来源:LnfUtil.java
注:本文中的com.jgoodies.looks.plastic.Plastic3DLookAndFeel类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论