当前位置: 首页>>代码示例>>Java>>正文


Java UnsupportedLookAndFeelException.printStackTrace方法代码示例

本文整理汇总了Java中javax.swing.UnsupportedLookAndFeelException.printStackTrace方法的典型用法代码示例。如果您正苦于以下问题:Java UnsupportedLookAndFeelException.printStackTrace方法的具体用法?Java UnsupportedLookAndFeelException.printStackTrace怎么用?Java UnsupportedLookAndFeelException.printStackTrace使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javax.swing.UnsupportedLookAndFeelException的用法示例。


在下文中一共展示了UnsupportedLookAndFeelException.printStackTrace方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: main

import javax.swing.UnsupportedLookAndFeelException; //导入方法依赖的package包/类
public static void main(String[] args) {
	JFrame.setDefaultLookAndFeelDecorated(true);
	JDialog.setDefaultLookAndFeelDecorated(true);
	try {
		UIManager.setLookAndFeel(new SubstanceOfficeBlue2007LookAndFeel());
	} catch (UnsupportedLookAndFeelException e) {
		e.printStackTrace();
	}
       System.out.println(111);
	initSetting();
	MenuFrame.open();
}
 
开发者ID:zhangjikai,项目名称:LinkGame,代码行数:13,代码来源:Main.java

示例2: main

import javax.swing.UnsupportedLookAndFeelException; //导入方法依赖的package包/类
public static void main(String[] args) {
	try {
		UIManager.setLookAndFeel(new com.jgoodies.looks.plastic.Plastic3DLookAndFeel());

	} catch (UnsupportedLookAndFeelException e) {
		e.printStackTrace();
	}
	Locale.setDefault(Locale.ENGLISH);
	/* EDITED by Abhimanyu Chugh */
	new ExactWizard();
	//new ExactWizard(new ExactModel());
	/* END */
}
 
开发者ID:max6cn,项目名称:jmt,代码行数:14,代码来源:ExactWizard.java

示例3: main

import javax.swing.UnsupportedLookAndFeelException; //导入方法依赖的package包/类
public static void main(String[] args) {
	try {
		UIManager.setLookAndFeel(new com.jgoodies.looks.plastic.Plastic3DLookAndFeel());

	} catch (UnsupportedLookAndFeelException e) {
		e.printStackTrace();
	}
	Locale.setDefault(Locale.ENGLISH);
	new ExactWizard(new ExactModel());
}
 
开发者ID:HOMlab,项目名称:QN-ACTR-Release,代码行数:11,代码来源:ExactWizard.java

示例4: main

import javax.swing.UnsupportedLookAndFeelException; //导入方法依赖的package包/类
public static void main(String[] args) {	
	try
	    {
	
	      UIManager.setLookAndFeel(new SmartLookAndFeel());
	    }
	    catch (UnsupportedLookAndFeelException e)
	    {
	      e.printStackTrace();
	    }
	new VirtualKeyboard();
}
 
开发者ID:alireza6677,项目名称:JeyBoard,代码行数:13,代码来源:VirtualKeyboard.java

示例5: setLAF

import javax.swing.UnsupportedLookAndFeelException; //导入方法依赖的package包/类
private void setLAF(final LookAndFeel laf) {
	try {
		UIManager.setLookAndFeel(laf);
		SwingUtilities.updateComponentTreeUI(this);
	} catch (UnsupportedLookAndFeelException e) {
		e.printStackTrace();
	}
}
 
开发者ID:alireza6677,项目名称:JeyBoard,代码行数:9,代码来源:Main.java

示例6: register

import javax.swing.UnsupportedLookAndFeelException; //导入方法依赖的package包/类
public static void register() {
	try {
		UIManager.setLookAndFeel( new NewLookAndFeel() );
	} catch (UnsupportedLookAndFeelException e) {
		e.printStackTrace();
	}
}
 
开发者ID:qerio,项目名称:goib,代码行数:8,代码来源:NewLookAndFeel.java

示例7: main

import javax.swing.UnsupportedLookAndFeelException; //导入方法依赖的package包/类
public static void main (String[] args) {
	try {
		UIManager.setLookAndFeel (new MaterialLookAndFeel ());
	}
	catch (UnsupportedLookAndFeelException e) {
		e.printStackTrace ();
	}

	// basic instantiation of JFrame with various components, including a
	// JMenuBar with some menus and items, as well as a button
	JFrame frame = new JFrame ("Material Design UI for Swing by atharva washimkar");
	frame.setMinimumSize (new Dimension (600, 400));

	// configuring the JMenuBar as well as its menus and items
	JMenuBar bar = new JMenuBar ();
	JMenu menu1 = new JMenu ("Option 1 (Animated)");
	JMenu menu2 = new JMenu ("Option 2 (Not animated)");

	JMenuItem item1 = new JMenuItem ("Item 1 (Animated)");
	JMenuItem item2 = new JMenuItem ("Item 2 (Not animated)");

	menu1.add (item1);
	menu2.add (item2);

	bar.add (menu1);
	bar.add (menu2);

	// configuring a simple JButton
	JButton button = new JButton ("PRESS ME");
	button.setMaximumSize (new Dimension (200, 200));

	JPanel content = new JPanel ();
	content.add (button);

	// add everything to the frame
	frame.add (bar, BorderLayout.PAGE_START);
	frame.add (content, BorderLayout.CENTER);

	// start animating!
	// in the first example, new Color (230, 230, 230) is the color that the JComponent will transition to when the user hovers over it
	// there will be 5 intermediate colors displayed in the transition from the original component color to the new one specified
	// the "frame rate" of the transition will be 1000 / 30, or 30 FPS
	// the animation will take 5 * 1000 / 30 = 166.666... milliseconds to complete
	MaterialUIMovement animate = new MaterialUIMovement (new Color (230, 230, 230), 5, 1000 / 30);
	animate.add (menu1);
	animate.add (item1);

	// you can probably figure out what this does based on the explanation above
	// note that we used the same MaterialUIMovement object for menu1 and item1, but a different one for the button,
	// as it fades to a different color
	MaterialUIMovement animate2 = new MaterialUIMovement (new Color (34, 167, 240), 5, 1000 / 30);
	animate2.add (button);

	// make everything visible to the world
	frame.pack ();
	frame.setVisible (true);
}
 
开发者ID:atarw,项目名称:material-ui-swing,代码行数:58,代码来源:MaterialUISwingDemo.java


注:本文中的javax.swing.UnsupportedLookAndFeelException.printStackTrace方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。