本文整理汇总了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();
}
示例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 */
}
示例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());
}
示例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();
}
示例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();
}
}
示例6: register
import javax.swing.UnsupportedLookAndFeelException; //导入方法依赖的package包/类
public static void register() {
try {
UIManager.setLookAndFeel( new NewLookAndFeel() );
} catch (UnsupportedLookAndFeelException e) {
e.printStackTrace();
}
}
示例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);
}