public static void main(String args[]) { SwingUtilities.invokeLater( new Runnable() { public void run() { UIManager.put("swing.boldMetal", Boolean.FALSE); new TextFieldDemo().setVisible(true); } }); }
public static void main(String args[]) { // Schedule a job for the event dispatch thread: // creating and showing this application's GUI. SwingUtilities.invokeLater( new Runnable() { public void run() { // Turn off metal's use of bold fonts UIManager.put("swing.boldMetal", Boolean.FALSE); new TextFieldDemo().setVisible(true); } }); }