本文整理匯總了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);
}