當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。